You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Roman Kennke <ro...@kennke.org> on 2008/07/04 11:01:22 UTC

Referencing command line args?

Hi there,

is it possible to define command line args for the exec and apply tasks
elsewhere and reference them, just like is possible with path-like
structures in other commands? This would be very helpful to avoid
duplication in a project that I'm implementing. So far, the only option
is to use properties and put them together into complete command lines,
and then use <arg line="${args}" />, which is ugly and has its
limitations. I'd much prefer to be able to use <arg refid="args" /> and
use a collection of args defined elsewhere. Is this possible somehow? If
not, could this be added to ant?

Cheers, Roman

-- 
http://kennke.org/blog/