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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]