[EMAIL PROTECTED] wrote:
Greetings. I've only been 'using' for a couple of weeks, so apologies if there is a better way to do this.
<copy todir="${deploy.server}/${deploy.prefix}Phoenix" > <fileset basedir="${srcdir}/myDevPhoenix" >
<includesfile name="asp.patternset" />
</fileset> </copy>
How about this:
<target name="copyAll"> <copy todir="${todir}"> <fileset basedir="${basedir}"> <include name="**/*.as?x"/> <include ... </fileset> </copy> </target>
<target name="someTarget">
...
<property name="todir" value="${deploy.server}/${deploy.prefix}Phoenix" />
<property name="basedir" value="${srcdir}/myDevPhoenix" />
<call target="copyAll" />
...
</target>
I'm guessing that you can probably optimize or simplify the property naming.
The trick here is that if you use depends to invoke the copyAll target, it will only be invoked once, but by using the <call> task, it's invoked every time one of the containing targets is invoked, and the fileset is reevaluated each time.
Gary
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users