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: String replacement in a property?
Date Thu, 28 Aug 2003 05:19:02 GMT
Ant-ContribĀ“s <propertyregex/>


Jan


> -----Original Message-----
> From: Robert Simmons [mailto:derisor@arcor.de]
> Sent: Thursday, August 28, 2003 12:32 AM
> To: user@ant.apache.org
> Subject: String replacement in a property?
> 
> 
> Greetings,
> 
> I would like to provide functionality to replace all '.' 
> characters in a
> property with '/' characters.
> 
> Essentially what Im traing to do is allow the user to do two 
> different targes
> the same way.
> 
> > ant -Dexample=org.myorg.myproduct.MyClass run
> > ant -Dexample=org.myorg.myproduct.MyClass compile
> 
> In the second line I need a replacement to pass to the 
> compiler that would give
> me essentially the same result as:
> 
> <property name="foo" value="org/myorg/myproduct/MyClass.java"/>
> 
> Then I can use this in the compile target
> 
> Any ideas?
> 
> TIA
> 
> -Robert
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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