Referencing command line args?

View: New views
1 Messages — Rating Filter:   Alert me  

Referencing command line args?

by Roman Kennke-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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/


signature.asc (196 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price