Ortius, Helga wrote:
I am trying to read the command line arguments with which the build
file is called in order to process it during the excecution of nant
(Logging/Reporting reasons).
I try to do it using the following code:
<property name="test" value="Release"
unless="${property::exists('test')}" />
<echo message="debug: ${test}"/>
If I call the build file like this "<my.build -D:test=Test>" I get the
following error:
Property 'property::exists('h_test')' has not been set.
Which version of NAnt are you using? Also, did you cut and paste from
the actual build file into the mail message? If not, please do so. I
don't think it's possible to get that particular wording in the error
message from NAnt, at least not any recent version, from what you've
provided.
I'm not sure what you mean by calling the build file with "<my.build
-D:test=Test>". Did you mean a command line that looks like "nant
-f:my.build -D:test=Test"? I don't know what tool might expect the
string you provided with angle brackets; NAnt doesn't, CC.Net doesn't,
and the DOS shell doesn't (at least I don't think NAnt would try to read
the build file from stdin, which is how that would be interpreted by the
shell).
Gary
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users