On 3/20/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ... I have ant scripts that build everything for me including WAR files for deployment. In my source repo, I have different configuration directories for each of dev, demo, and prod. In fact, I can make as many of those as I'd like, since I just set "release-type" in my build.properties file to a string, and ant pulls the configuration and properties files that match that directory, so I could potentially create a "foo" release-type if I wanted.
in fact you can even specify the system type as parameter to the build script, without need to edit it in the properties file: <target name="war"> ... <!-- test is default --> <property name="config.file" location="etc/config/test-config.properties"/> <copy tofile="${config.file.target}" file="${config.file}" overwrite="true"/> ... </target> <target name="prod"> <property name="config.file" location="etc/config/prod-config.properties"/> </target> <target name="test"> <property name="config.file" location="etc/config/test-config.properties"/> </target> ant test war - builds the war file for the testsystem, prod war - the production system. ant war build test or whatever you want to have as default. regards Leon
So, instead of the application detecting where it is and configuring itself appropriately, I tell the application what it /will be/ and configure it at build time. Just my $0.02 - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF//kT9CaO5/Lv0PARAgJZAJ4r2l8nkM/fbQWl62nTeR1TsKgQOACfYIXr wWE/VnGrYVqHxl5mUpbPt1U= =qyrv -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]