ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Is it possible to use <arg> property of <java> to specify cla ss on cmd line?
Date Thu, 25 Sep 2003 13:54:31 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message