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 23986] New: - scp task hangs indefinitely when target directory doesn't exist
Date Wed, 22 Oct 2003 01:03:55 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=23986>.
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=23986

scp task hangs indefinitely when target directory doesn't exist

           Summary: scp task hangs indefinitely when target directory
                    doesn't exist
           Product: Ant
           Version: 1.6Beta
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: Edwin_STEELE@rta.nsw.gov.au


When trying to copy a file to a non-existant directory, the scp ant task:
a) hangs indefinitely 
b) doesn't give any feedback (like a commandline scp does)

>From a regular shell:

[user@localmachine]$ scp /etc/fstab
user@remotemachine:/home/user/this_dir_does_not_exist/
user@remotemachine's password:
scp: /home/user/this_dir_does_not_exist/: Is a directory

Running ant with this target:
<target name="scptest">
    <scp file="C:\winnt\notepad.exe"
todir="user@remotemachine:/home/user/this_dir_does_not_exist/" password="pwd"/>
</target>

gives
scptest:
      [scp] Connecting to remotemachine:22
      [scp] java.io.FileNotFoundException: C:\Documents and
Settings\user\.ssh\known_hosts (The system cannot find the path specified)
<it just hangs indefinitely at this point>

I'm using 1.6beta1 but there don't appear to have been any changes to the tasks
that would affect this.

I would expect the task to (optionally) fail but most importantly give feedback
like the commandline version does.

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


Mime
View raw message