Dave Fennell created MANTRUN-174:
------------------------------------

             Summary: @ Symbols in path name confusing host resolution.
                 Key: MANTRUN-174
                 URL: https://jira.codehaus.org/browse/MANTRUN-174
             Project: Maven 2.x Antrun Plugin
          Issue Type: Bug
    Affects Versions: 1.7
         Environment: Linux Ubuntu
            Reporter: Dave Fennell


I want to use an SCP target directory that has an "@" in it, like this : 
2011-12-12@15:26:11.

the scp command from effective-pom looks like this (users and passwords 
replaced):

<scp 
todir="user:password@hostname:/project/releases/2011-12-12@15:26:11/mule-3.2.0/apps/"
 file="/usr/local/src/project/mule/myapp/target/myapp-1.0-SNAPSHOT.zip" 
trust="true" failonerror="true" />

This results in this slightly odd error:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: com.jcraft.jsch.JSchException: 
java.net.SocketException: Invalid argument or cannot assign requested address
around Ant part ...<scp 
todir="user:password@hostname:/project/releases/2011-12-12@15:26:11/mule-3.2.0/apps/"
 file="/usr/local/src/project/mule/myapp/target/myapp-1.0-SNAPSHOT.zip" 
trust="true" failonerror="true"/>... @ 13:242 in 
/usr/local/src/whitelabel/mule/boot-config/target/antrun/build-main.xml

Before that it says:

   [scp] Connecting to 15:22

This should actually say 


   [scp] Connecting to hostname:22

This is a problem with the plugin and not scp itself because if I use those 
paths directly with SCP on the command line it is fine.  from testing it seems 
to looks for the LAST match in the line that looks something like "@[a-z0-8]+:" 
i.e. between an "@" and a ":" however if there is more than one match it's 
probably going to be the first one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to