ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Simmons" <>
Subject String replacement in a property?
Date Wed, 27 Aug 2003 22:31:32 GMT

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/"/>

Then I can use this in the compile target

Any ideas?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message