Hi,
1.
Following code returns a error:
An empty string is not a valid value for attribute 'output' of <exec ... />.
<property name="test.outputfile" value="" overwrite="false"/>
<exec
program="${expected.output}"
commandline="${test.cmdline}"
workingdir="${test.workingdir}"
output="${test.outputfile}"
unless ="${property::get-value('test.outputfile')==''}"/>
The workaround would be
<property name="test.outputfile" value="deadbeaf" overwrite="false"/>
<exec
program="${expected.output}"
commandline="${test.cmdline}"
workingdir="${test.workingdir}"
output="${test.outputfile}"
unless
="${property::get-value('test.outputfile')=='deadbeaf'}"/>
Is it a supposed behavior and if yes, then what is the recommended approach
to avoid the execution of test.outputfile="".
2.
Sometimes I use targets to accomplish a repeating tasks. If I need to pass
arguments to this target then I define a property. But may be there is a way
to define target arguments?
i.e.
Now I do following:
...
<property name="myarg1" value="1" />
<property name="myarg2" value="2" />
<call target="doSomething>
< target name="doSomething">
Work with myarg1 and myarg2
</target>
I would prefer something like:
<call target="doSomething myarg1="1" myarg2="2">
< target name="doSomething" arguments="myarg1,myarg2">
Work with myarg1 and myarg2
</target>
Does it make sense? If not, how do you pass arguments to targets? Thru
properties too?
Thanks,
Boni
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users