Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tokenize or modify a property value

Status
Not open for further replies.

Yodzilla

Programmer
Aug 2, 2004
1
US
Is is possible using Ant to somehow modify the value of a given property? More specifically, if there is a property "Name" with value 'ABCDE', is there any way to create a new property based on the first three characters of "Name"? (Ex: "Name" = 'Bobby' creates "Name_2" = 'Bob')

I know string manipulation is simple in Java, but I'm trying to avoid writing a new Ant extension. Any help would be much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top