ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject Re: pass command-lines through to class
Date Mon, 06 Dec 2004 23:04:41 GMT
--- Kendall Shaw <> wrote:
[blank lines removed]
> I have to use main(String[] args) in a class,
> instead of using properties.
> Is there a way to pass through arguments to the
> class?
> I've read an example such as:
> ant target -- a b c
> But, ant complains that -- is an unknown argument.

This is an incomplete representation of one of
Dominique's proposals, IIRC.  You probably want to
define properties and pass them as nested <arg>
elements to the <java> task.


Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message