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 23987] New: - scp task doesn't complain if remote directory is not specified
Date Wed, 22 Oct 2003 01:45:05 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=23987>.
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=23987

scp task doesn't complain if remote directory is not specified

           Summary: scp task doesn't complain if remote directory is not
                    specified
           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


(the summary could also read: scp task doesn't make a sensible default for the
remote directory).

When using scp from the commandline, it is possible to omit a remote directory
and have scp place files in the home directory of the user. i.e.
scp /etc/passwd user@remotehost:
will successfully place the passwd file in user's home directory on remotehost

If I run this task:
<target name="scptest">
    <scp file="C:\winnt\notepad.exe" todir="user@remotehost:" password="pwd"/>
</target>

I get:

scptest:
      [scp] Connecting to remotehost:22
      [scp] java.io.FileNotFoundException: C:\Documents and
Settings\user\.ssh\known_hosts (The system cannot find the path specified)

BUILD FAILED
file:H:/Projects/Construction/deploy.xml:1703: java.io.IOException: Pipe closed

I would either expect the build to fail because a remote directory wasn't
specified or (better) the scp task to work with the same amount of information
that the commandline scp does and make assumptions.

This is reasonably closely related to bug 23986.

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


Mime
View raw message