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 26097] New: - scp task truncates directory names with spaces at the space
Date Tue, 13 Jan 2004 14:49:15 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=26097>.
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=26097

scp task truncates directory names with spaces at the space

           Summary: scp task truncates directory names with spaces at the
                    space
           Product: Ant
           Version: 1.6.0
          Platform: All
        OS/Version: MacOS X
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: josh@parreco.com


With <scp file="user:password@somehost:/home/chuck/*" ... /> if the directory chuck
contains 
the directory "another dir" it will be copied as "another". A cursory look at the code in

taskdefs.ssh.ScpFromMessage revealed that the method parseAndCreateDirectory (line 150) is

using a default StringTokenizer to tokenize by spaces. This might be causing the directoryName

variable to be truncated.

(p.s. since this is my first contribution I have to say... ANT ROCKS!!!)

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


Mime
View raw message