ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25151] New: - PathConvert does not convert all the instances of dir sep when targetos="unix"
Date Tue, 02 Dec 2003 22:01:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25151>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25151

PathConvert does not convert all the instances of dir sep when targetos="unix"

           Summary: PathConvert does not convert all the instances of dir
                    sep when targetos="unix"
           Product: Ant
           Version: 1.5.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: nilesh.junnarkar@oracle.com


PathConvert does not convert all the instances of directory seperator when 
targetos="unix". It converts only the first instance of windows directory 
seperator.

For example.

If I have a property 
<property name="my.home"  value="c:\myProjects\MyServer\myApplication"/>
or I get my.home property from environment
And I want to use pathConvert to convert this windows style path to unix.

<echo message="My current home path = ${my.home}"/>
<pathconvert targetos="unix" property="my.home.unix">
    <path location="${my.home}"/>
</pathconvert>
<echo message="My newly converted home path = ${my.home.unix}"/>

This results in 
My newly converted home path = c:/myProjectsMyServermyApplication

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message