pressmanjp
IS-IT--Management
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 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.