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 15:50:46 GMT
Sure. Everywhere where you type in a string value you can use a property.
(Ok, some tasks dont resolve them when use as tested text).

See http://ant.apache.org/manual/using.html#properties


Jan

> -----Original Message-----
> From: Sören Edzen [mailto:soren@edzen.org]
> Sent: Thursday, September 25, 2003 5:41 PM
> To: Ant Users List
> Subject: Re: Is it possible to use <arg> property of <java> to specify
> cla ss on cmd line?
> 
> 
> Can I use something like that with the <javac> task too, ie 
> specifying a 
> *.java file instead of a class?
> 
> 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
> > 
> 
> -- 
> 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