E
Eric Farraro
I've been looking for a way to pass arguments to ANT, but have so far
been unsuccessful. I figured out how to pass them from the command
line:
ant -buildfile -Dmyarg=abc
.... but what I'd like to do, is have an ANT script call a different
ANT script, and pass the arguments along. So far, I have not figured
out how to pass arguments to an ANT script, from within another ANT
script. What I have is something like this:
(Inside build.xml):
<ant dir="${ant.exec.directory}" antfile="${ant.script.name}"
target="main" inheritAll="true"/>
I'd like to pass any arguments to 'ant.script.name' that 'build.xml'
receives. For instance, if there was a 'parameter' attribute, I could
use something like that.
Any suggestions?
been unsuccessful. I figured out how to pass them from the command
line:
ant -buildfile -Dmyarg=abc
.... but what I'd like to do, is have an ANT script call a different
ANT script, and pass the arguments along. So far, I have not figured
out how to pass arguments to an ANT script, from within another ANT
script. What I have is something like this:
(Inside build.xml):
<ant dir="${ant.exec.directory}" antfile="${ant.script.name}"
target="main" inheritAll="true"/>
I'd like to pass any arguments to 'ant.script.name' that 'build.xml'
receives. For instance, if there was a 'parameter' attribute, I could
use something like that.
Any suggestions?