Hi guys,
The java class that I wan't to run (with java task) requires a
commandline parameter : a single String character.
I know that in the build.xml I can specify attributes...but It's not
possible to let the user choose...
How do I let the user insert a command line parameter???
Thanks a lot!!!
actual target
<target name="initiator" depends="compile"
description="execute app.initiator,requires config parameter">
<java classname="app.Initiator" fork="true" classpath="classes"/>
Mark Jeffcoat - 01 Mar 2007 16:44 GMT
> Hi guys,
> The java class that I wan't to run (with java task) requires a
[quoted text clipped - 8 lines]
> description="execute app.initiator,requires config parameter">
> <java classname="app.Initiator" fork="true" classpath="classes"/>
How about:
<target name="example">
<echo>${set.me}</echo>
</target>
Then on the command line
ant -Dset.me="Whatever you like" example

Signature
Mark Jeffcoat
Austin, TX