Vincenzo Apuzzo created MANTRUN-230:
---------------------------------------
Summary: scp task - remoteFile and sshConfig
Key: MANTRUN-230
URL: https://issues.apache.org/jira/browse/MANTRUN-230
Project: Maven Antrun Plugin
Issue Type: Bug
Affects Versions: 1.8
Reporter: Vincenzo Apuzzo
I used the remoteFile and sshConfig attributes in this form :
<scp trust="true" remoteFile="host:/fileToDownload" localTodir="localFolder/"
sshConfig="${user.home}/.ssh/config"/>
the build fails with this error:
Caused by: java.lang.NoSuchMethodError:
org.apache.tools.ant.BuildException.<init>(Ljava/lang/String;[Ljava/lang/Object;)V
at org.apache.tools.ant.taskdefs.optional.ssh.Scp.validateRemoteUri
(Scp.java:168)
at org.apache.tools.ant.taskdefs.optional.ssh.Scp.setRemoteFile
(Scp.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.apache.tools.ant.IntrospectionHelper$AttributeSetter.setObject
(IntrospectionHelper.java:1489)
at org.apache.tools.ant.IntrospectionHelper.setAttribute
(IntrospectionHelper.java:411)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure
(RuntimeConfigurable.java:528)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure
(RuntimeConfigurable.java:464)
at org.apache.tools.ant.Task.maybeConfigure (Task.java:202)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)