tomcat-dev mailing list archives

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

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
built.

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.

Cheers
Conor

Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-tools/ant/build.xml,v
retrieving revision 1.12
diff -r1.12 build.xml
7c7,8
<   <property name="dist.dir" value="${user.home}/opt"/>
---
>   <property name="dist.dir" value="dist"/>
>   <property name="install.dir" value="${user.home}/opt"/>
35,36c36,42
<      <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
conor@m64.com
M64 Pty Limited


Mime
View raw message