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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

editing ${basedir} from ANT

Status
Not open for further replies.

pressmanjp

IS-IT--Management
Nov 24, 2009
3
US
Hi

I have below requirement in ANT:-


variable1 = ${basedir}

now let us say from above statement "variable1" got the value C:\one\two\three\four

now i want to cut two levels from above path (so "C:\one\two" will be the result after cut) and i want to reassign the value to varibale1.

So, if i give echo ${variable1} it should give the path C:\one\two

Could someone please help me on how to get it.
 
I found solution to this problem with ANT "dirname" task. Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top