>From my experience I noticed that the fileset is "executed" at the point of
>declaration.
I also noticed the following:
1. If you do not include a basedir value when creating the fileset id, then it
will assume the current working directory.
2. You can't do something like:
<fileset refid="someid" basedir="${somedir}" />
For anyone that knows .. is this all this by design or a bug? If it's a bug
then let me know and I will submit a bug report. If this is an enhancement
then I'll still submit a feature request.
So .. my workaround for having the fileset generate the list during execution
of a copy/delete task is to put the fileset within a target. So .. using the
example provided earlier I would do:
<target name="processTestFileSet">
<fileset id="test.fileset" basedir="${test.dir}">
<include name="*.*" />
</fileset>
</target>
<target name="test">
<property name="test.dir" value="dir1/dir2/etc" />
<call target="processTestFileSet" />
<delete>
<fileset refid="test.fileset" />
</delete>
</target>
Thanks,
Felice
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Castro,
Edwin Gabriel (Firing Systems Engr.)
Sent: Monday, November 29, 2004 2:50 PM
To: [EMAIL PROTECTED]
Subject: [Nant-users] <fileset> execution
When is a <fileset> "executed"? Suppose I have the following build file:
<project name="test" default="test">
<fileset id="test.fileset">
<include name="*.*" />
</fileset>
<target name="test">
<delete>
<fileset refid="test.fileset" />
</delete>
</target>
</project>
Would the <fileset> generate the file list at the point of declaration
or the point of execution (in the <delete> task)?
-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users