ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: ant trgjava 12
Date Sat, 24 May 2003 09:28:06 GMT
Let me get this straight.... you want to pass an _argument_ to your 
Java program, but you don't want to use _<arg>_?

May I ask why that constraint?

To pass a parameter from the command-line of ant:

	ant trgjava -Darg=12

Then use:

	<arg line="${arg}"/>

nested within <java>.

What's wrong with that?

	Erik

On Saturday, May 24, 2003, at 05:00  AM, D Bamud wrote:
> I want to give argument values to java task in one of my target. In 
> nutshell I want to fire "ant
> trgjava 12" at DOS prompt. 12 will go as the first argument to my 
> program executed by the java task
> in trgjava target. How to do this. (Note I do not want to use <arg> 
> attribute).
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>


Mime
View raw message