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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


With <scp file="user:[EMAIL PROTECTED]:/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to