Gerry wrote:
> <cc>
> <sources>
> <includes name="cmn/*.cpp"/>
> <includes name="xbox/*.cpp" if="${platform} == xbox"/>
> <includes name="ps2/*.cpp" if="${platform} == ps2"/>
> </sources>
> </cc>
I have to admit, this is a nice simple way to handle conditional execution
of tasks. How about just limiting the expression evaluation to the
if/unless attributes, and only permitting expressions similar to those in
the C# preprocessor (!, ==, !=, &&, || and parentheses).
> <include buildfile="UserSettings.xml"
> if="${FileExists(UserSettings.xml)}"/>
You could use the failonerror attribute? Or ask the 'user' to pass in a
property that determines if usersettings.xml should be used:
e.g. nant -D:usersettings=true
Mark
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers