Try the <pathconvert> task. Then you don't have to remember to put the right separator in when defining properties.
/mike > -----Original Message----- > From: Stephenson, Martin [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 03, 2002 6:27 AM > To: '[EMAIL PROTECTED]' > Subject: Path question > > > Hi all > > I have a property called "buildDir" setup as follows: > > <property name="buildDir" value="${basedir}/${BuildNumber}"/> > > And I also have a property "InstallShieldComponentsDir" > > <property name="InstallShieldComponentsDir" > value="${buildDir}/ISComponents"/> > > Now, I'm calling a batch file, which in turn calls a program > with takes the > Path stored in "InstallShieldComponentsDir" > > My problem is that "InstallShieldComponentsDir" has the > following as an > actual value: > > F:\Development/Builds/1.0.0.0/ISComponents > > But the program I'm calling doesn't like the forward-slash - it want's > Backslashes, ie.: > > F:\Development\Builds\1.0.0.0\ISComponents > > Is there some way I can search and replace the \ with a / in > the property ? > > Thanks > > Martin > > > > ________________ > > Martin Stephenson > > Senior Java Engineer > > DAON > > > > Direct Tel No: +353 1 8181668 > > Daon Tel No: +353 1 6117660 > > Email: [EMAIL PROTECTED] > > Web: www.daon.com > > > > > ************************************************************** > ********************************************* > "The email and any files transmitted with it are confidential > and privileged and intended solely for the use of the > individual or entity to whom they are addressed. Any > unauthorised direct or indirect dissemination, distribution > or copying of this message and any attachments is strictly > prohibited." > ************************************************************** > ********************************************** > <<This E-mail has been scanned for malicious code>> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
