Once a fileset has been created, I don't think there's any way to
change the contents, as far as I know.
With this in mind, you should be able to do something like what you're
after by creating the fileset as late as possible:
<target name="deploy" depends="compile">
<property name="doDeploy.dir" value="${WebApp1.deploy.dir}" />
<property name="doDeploy.srcDir"
value="${WebApp1.source.dir}/webapp.deploy.files" />
<call target="doDeploy" />
<property name="doDeploy.dir" value="${WebApp2.deploy.dir}" />
<property name="doDeploy.srcDir"
value="${WebApp2.source.dir}/webapp.deploy.files" />
<call target="doDeploy" />
</target>
<target name="doDeploy">
<mkdir dir="${doDeploy.dir}" />
<copy todir="${doDeploy.dir}">
<fileset basedir="${doDeploy.srcDir}">
<include name="something" />
<exclude name="something.else" />
</fileset>
</copy>
</target>
--
Troy
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users