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 4045] New: - mapper does not convert slashes to or from ${file.seperator}
Date Tue, 09 Oct 2001 15:03:24 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=4045>.
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=4045

mapper does not convert slashes to or from ${file.seperator}

           Summary: mapper does not convert slashes to or from
                    ${file.seperator}
           Product: Ant
           Version: 1.4.1Beta
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: mkerkhof@jamba-ag.de


We use the following construct to copy some
files during deployment to an ejb-server.

<copy todir="${wlcs.home}/server/public_html" preservelastmodified="true">
    	<fileset dir="${webapp.basedir}" 
includes="${webapp.type}/${webapp.domain}/cgi/**" />
	<mapper 	type="regexp" 
				
from="^${webapp.type}/${webapp.domain}/cgi/(.*)$$" 
				to="cgi-bin/\1"
	/>
</copy>

This works fine on our unix machines but does not
work when we're running the build from a windows 
machine.
The problem is caused from the mapper element, which 
takes '/' or '\' in from and to literally instead of 
converting to the actual file separator. (unlike it 
is done for include, exclude and related attributes).

So, as a workaround, we have to replace every '/' with 
either ${file.seperator} or with . or with [/\\] or 
something similar. 

Although this works fine it, the problem should be 
mentioned in the documentation (if the current
implementation represents the desired behaviour).

Greetings 
Matthias

Mime
View raw message