• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Deployment with Eclipse [NEWBIE]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deployment with Eclipse [NEWBIE]


  • Subject: Re: Deployment with Eclipse [NEWBIE]
  • From: Chris Pavicich <email@hidden>
  • Date: Wed, 13 Aug 2003 11:51:39 -0400

Ok:



Here is what we do for deployment, ymmv.

We have a target called distAPP. This will tar and gzip the APP.woa directory and its associated docroot

        <target name="distDLR" depends="init">
                <tstamp/>
                <tar destfile="${dist.dir}/TravelDL-${DSTAMP}.gnutar.gz" longfile="gnu" compression="gzip">
                        <tarfileset dir="${projectRoot.dir}/Scripts"
                                mode="555"
                                prefix="/PATH/TO/YOUR/SCRIPTS"
                                preserveLeadingSlashes="true">
                                <include name="RunAPP"/>
                        </tarfileset>
                        <tarfileset dir="${dist.dir}"
                                prefix="/PATH/WHERE/YOU/WANT/APP/INSTALLED/"
                                preserveLeadingSlashes="true">
                                <include name="APP.woa/**"/>
                        </tarfileset>
                        <tarfileset dir="${projectRoot.dir}/DocumentRoot"
                                prefix="/PATH/WHERE/STATIC/CONTENT/GOES"
                                preserveLeadingSlashes="true">
                                <include name="APP_STATIC_CONTENT/**"/>
                        </tarfileset>
                </tar>
        </target>

Then we run a target called pushAPP. This will move the tarfile to the 'right' box.

        <target name="pushAPP" depends="distAPP">
        <antscp
                remoteHost="www.xxx.yyy.zzz"
                remoteUserName="USER_NAME"
                remotePassword="PASSWORD"
                localFile="${dist.dir}/APP-${DSTAMP}.gnutar.gz"
                remoteFile="/PATH_WHERE_YOU_PUT_TAR_FILES/APP-${DSTAMP}.gnutar.gz"
        />
        </target>

Finally on the box we push to we run this target, which will do all the un-g-zipping and un-tarring for us,
into the correct spot.

        <target name="installAPP" depends="distAPP">
                <delete dir="/pool/Content/WebObjects/DocumentRoot/Disneyland"/>
                <delete dir="/pool/Content/WebObjects/APP.woa"/>
                <untar compression="gzip"
                    src="/PATH_WHERE_YOU_PUT_TAR_FILES/APP-${DSTAMP}.gnutar.gz"
                    dest="/"
                />
        </target>

After the final target completes, we just run our startup/shutdown/restart script (No monitor for us)

I hope this answers your question, or that maybe someone on the list will...

--CMP




On Wednesday, August 13, 2003, at 07:59AM, Goodbye Bill <email@hidden> wrote:

>Is anyone going to reply to this?  It would really be helpful.
>
>
>On 20030812 1508, "Goodbye Bill" <email@hidden> wrote:
>
>> I've recently switched from ProjectBuilder to Eclipse for development
>> purposes.  It is now time to deploy project #1 (only my second one for
>> WebObjects in total).  Could someone please lend a word or two regarding the
>> deployment process using Eclipse?  Is it the same command-line stuff from
>> ProjectBuilder?
>>
>> Thanx,
>> "Bill"
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
>


--cmp
email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: PostgreSQL, EOModeler and join tables
  • Next by Date: Re: Detecting crash and autorestart
  • Previous by thread: Re: Deployment with Eclipse [NEWBIE]
  • Next by thread: Detecting crash and autorestart
  • Index(es):
    • Date
    • Thread