tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject [PATCH] separate ant dist build and install
Date Sat, 25 Dec 1999 14:00:03 GMT

This patch introduces an "install" target into ant's build.xml. The idea is
to allow a distribution to be built in a local "dist" directory and then, in
a separate step, to have that distribution installed into some standard
place. The use of a local "dist" area is consistent with the way tomcat is

My motivation for this change is that the installation step, in its present
form, is quite Unix specific. Currently on NT the dist build fails when
trying to chmod a file which has been copied into a fairly obscure location
(winnt\profiles\...) By separating this process into two steps a user can
choose not to use the install step. The dist step will give an ant
distribution which can be installed wherever appropriate.

Note that this patch does change the result of calling "ant dist". To
achieve the equivalent result now requires "ant install". I'm not sure if
that would affect any of the nightly build processes.


Index: build.xml
RCS file: /home/cvspublic/jakarta-tools/ant/build.xml,v
retrieving revision 1.12
diff -r1.12 build.xml
<   <property name="dist.dir" value="${user.home}/opt"/>
>   <property name="dist.dir" value="dist"/>
>   <property name="install.dir" value="${user.home}/opt"/>
<      <chmod perm="+x" src="${dist.dir}/ant/bin/ant"/>
<      <chmod perm="+x" src="${dist.dir}/ant/bin/antRun"/>
>   </target>
>   <target name="install" depends="dist">
>      <mkdir dir="${install.dir}"/>
>      <copydir src="${dist.dir}" dest="${install.dir}"/>
>      <chmod perm="+x" src="${install.dir}/ant/bin/ant"/>
>      <chmod perm="+x" src="${install.dir}/ant/bin/antRun"/>

Conor MacNeill
M64 Pty Limited

View raw message