ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raja Nagendra Kumar <Nagendra.R...@tejasoft.com>
Subject Enforce order in copying so that my overiding works correctly
Date Wed, 23 Jul 2008 17:43:13 GMT

Hi I am looking for files to copied to same directory from different
locations as specified by fileset and its includes as below.

<copy todir="${build.wtk.res}" overwrite="true"
		  includeEmptyDirs="false" flatten="true">
		<fileset dir="${resources}">
		    <exclude name="**/Thumbs.db"/>
		    <include name="jad/app.jad"/>
		     <include name="images/deviceid/**/N73/*.jad/>
		</fileset>
	    </copy>

However, I wish includes would be applied in the order they are represented
in the fileset so that my overide would give the desired file.

e.g let us say I have app.jad files in jad directory and also in N73
directory. As N73 includes is last, the final copied file should be the
which existed in N73 directory and not the one which existed in jad
directory.

currently as the order is not clear to me, I am using 3 seperate copies with
one include with jad and other copy with n73 include i.e as below.

<copy todir="${build.wtk.res}" overwrite="true"
		  includeEmptyDirs="false" flatten="true">
		<fileset dir="${resources}">
		    <exclude name="**/Thumbs.db"/>
		    <include name="jad/app.jad"/>
		</fileset>
	    </copy>

<copy todir="${build.wtk.res}" overwrite="true"
		  includeEmptyDirs="false" flatten="true">
		<fileset dir="${resources}">
		    <exclude name="**/Thumbs.db"/>
		     <include name="images/deviceid/**/N73/*.jad/>
		</fileset>
	    </copy>

Though this does solve my issue, however it keeps my ant script bigger and
does not convey things as the first approach. Does any one have any idea how
to enable the first approach work..

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
- Experience Intellect

-- 
View this message in context: http://www.nabble.com/Enforce-order-in-copying-so-that-my-overiding-works-correctly-tp18616470p18616470.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message