Leonardo Quijano Vincenzi wrote:
Is there any way to "reuse" a fileset under different directories in tasks? Something like this:
<!-- Web application deploy fileset --> <fileset id="webapp.deploy.files"> <include name="**/*"/> <exclude name="**/aspnet_client/**/*" /> <exclude name="**/obj/**/*"/> <exclude name="**/doc/**/*"/> <exclude name="**/lib/**/*"/> <exclude name="**/*.cs" /> <exclude name="**/*.dll" /> <exclude name="**/*.snk" /> <exclude name="**/*.build" /> <exclude name="**/*.csproj" /> <exclude name="**/*.resx" /> </fileset>
<!-- Deploys web applications and programs --> <target name="deploy" depends="compile"> <mkdir dir="${WebApp1.deploy.dir}" /> <copy todir="${WebApp1.deploy.dir}"> <fileset refid="webapp.deploy.files" /> </copy>
<mkdir dir="${WebApp2.deploy.dir}" /> <copy todir="${WebApp2.deploy.dir}"> <fileset refid="webapp.deploy.files" /> </copy> </target>
This doesn't seem to work like that.
That should work ok. What errors orunexpected behaviour are you seeing ?
Ian
------------------------------------------------------- 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
