ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <>
Subject RE: Guidance on build.xml to build dev/test/live with no changes
Date Tue, 09 Mar 2004 23:22:12 GMT
If it were me, I would run the three in totally separate instances of tomcat. This will allow
you to control the server configuration, and changes to server configuration, the same way
you handle source code changes. It will also allow you to upgrade the version of tomcat on
your dev environment without affecting production. If you run separate instances of tomcat
you can use the same name for the three war files. You could also use the same context root.
This would make migrating changes easy once the war is build. You could simply move the current
production war out of $TOMCAT_HOME/webapps and move the new war in (and restart).

If separate instances of tomcat are not appealing, or not possible, I think you are on the
right track.

-Rob Anderson

> -----Original Message-----
> From: Wendy Smoak []
> Sent: Tuesday, March 09, 2004 3:05 PM
> To:
> Subject: Guidance on build.xml to build dev/test/live with no changes
> I'm trying to cut down on the amount of editing files before 
> building a
> live version of my project as opposed to a test or 
> development version.
> I learned how to use @token@ in files and then replace them from the
> contents of a .properties file, so that solved most of it (location of
> log files, for example).
> The last thing I'm stuck on is that I have in build.xml:
>    <property name="context" value="coltest" />
> And it gets used for such things as:
>   <target name="war" depends="clean,init,compile,props-war">
>     <zip destfile="${dist}/${context}.war" compress="false">
>       <zipfileset dir="webapp"     prefix=""/>
>     </zip>
>   </target>
> Which in turn controls the name of the context in Tomcat and 
> the URL you
> use to access the web application once the .war file gets deployed
> Do I just end up with three properties (context-test, context-dev,
> context-live) and three matching 'war' targets?  Or is there a better
> way?
> Thanks,
> -- 
> Wendy Smoak
> Application Systems Analyst, Sr.
> ASU IA Information Resources Management 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message