Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.7
-
Fix Version/s: None
-
Labels:None
-
Environment:Linux Ubuntu
Description
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.