In one of my builds, I have several targets that do exactly the same
thing on different filesets.

Right now I'm duplicating the whole <foreach... <in><items
refid="name"/></in><do>...</do></foreach>, which is getting annoying.

What I'd really like to do is to specify the refid for the fileset in
a property. That way each of the targets can set the property and then
call a common target that takes care of doing all the common stuff.

Even though it seems it should work, I get the following when I try it:

fileset reference '${projectfileset}' not defined.

So it seems it's treating ${projectfileset} as a string literal
instead of as a variable that needs to be expanded. Am I doing
something wrong, or is this a bug? I tried it with RC3 and even the
latest nightly build (from Dec 2005) and I got the same results.

Alternatively, is there a better way to do what I described?
Thanks.


--Noel
Games from Within
http://www.gamesfromwithin.com


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to