ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sören Edzen <so...@edzen.org>
Subject Re: Is it possible to use <arg> property of <java> to specify cla ss on cmd line?
Date Thu, 25 Sep 2003 15:36:09 GMT
Thanks!

Sören
* Jan.Materne@rzf.fin-nrw.de <Jan.Materne@rzf.fin-nrw.de> [2003-09-25 15:55]:
> Sure, with properties.
> 
>     <java classname="${classname}" .../>
> 
> and on command line
> 
>     ant -Dclassname=org.company.MyClass
> 
> 
> 
> Jan
> 
> 
> 
> > -----Original Message-----
> > From: Sören Edzen [mailto:soren@edzen.org]
> > Sent: Thursday, September 25, 2003 3:52 PM
> > To: Ant Users List
> > Subject: Is it possible to use <arg> property of <java> to 
> > specify class
> > on cmd line?
> > 
> > 
> > I would like to name the class to be run by the ant <java> 
> > task on the 
> > command line when executing ant. 
> > ie
> > ant execute [name of class]
> > 
> > where execute is the task that runs java.
> > 
> > Is this possible? If so, how do I set it up in the build.xml? I know 
> > that the <java> task has the <arg> property. Can I use it to specify

> > that the class I name in the above example will be the class 
> > executed by  
> > the <java> task? If so, how?
> > 

-- 
Sören Edzen, Sweden

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message