You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David Weintraub <qa...@gmail.com> on 2010/04/27 17:52:10 UTC

SCP Task

Does the SCP task work? We use Ant 1.7 and recently tried the <scp>
task. We included the jsch.jar, but we got the following error:

BUILD FAILED
/Users/david/test/build.xml:5: Problem: failed to create task or type scp
Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not found.
        This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
        -/usr/share/ant/lib
        -/Users/david/.ant/lib
        -a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

This is not a bug; it is a configuration problem


It appears that none of the jars in the $ANT_HOME/lib directory
contains the class org.apache.tools.ant.taskdefs.optional.ssh.Scp even
though the scp task is defined in the ant.jar.

Is this a bug in Ant 1.7? Am I suppose to include another JAR file
that includes this classsfile?

Never used the scp task before.

-- 
David Weintraub
qazwart@gmail.com

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


Re: SCP Task

Posted by David Weintraub <qa...@gmail.com>.
Ah! There's no ant-jsch.jar in my $ANT_HOME/lib on my Mac (although it
is suppose to be at 1.7.1!). I do have it on my Linux box (Ant 1.7.1),
but we used Ant 1.7 on Windows, and there's no ant-jsch.jar there
either.

I'll download Ant 1.8 and make sure that works. We'll just tell
everyone they have to use Ant 1.8 if they want to use the remote
deploy option.


-- 
David Weintraub
qazwart@gmail.com

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


Re: SCP Task

Posted by Greg Roodt <gr...@gmail.com>.
Is that Ant 1.7.1?

I've used it without problems. The task can be found in ant-jsch.jar.




On Tue, Apr 27, 2010 at 4:52 PM, David Weintraub <qa...@gmail.com> wrote:

> Does the SCP task work? We use Ant 1.7 and recently tried the <scp>
> task. We included the jsch.jar, but we got the following error:
>
> BUILD FAILED
> /Users/david/test/build.xml:5: Problem: failed to create task or type scp
> Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not
> found.
>        This looks like one of Ant's optional components.
> Action: Check that the appropriate optional JAR exists in
>        -/usr/share/ant/lib
>        -/Users/david/.ant/lib
>        -a directory added on the command line with the -lib argument
>
> Do not panic, this is a common problem.
> The commonest cause is a missing JAR.
>
> This is not a bug; it is a configuration problem
>
>
> It appears that none of the jars in the $ANT_HOME/lib directory
> contains the class org.apache.tools.ant.taskdefs.optional.ssh.Scp even
> though the scp task is defined in the ant.jar.
>
> Is this a bug in Ant 1.7? Am I suppose to include another JAR file
> that includes this classsfile?
>
> Never used the scp task before.
>
> --
> David Weintraub
> qazwart@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Re: SCP Task

Posted by Borut Hadžialić <bo...@gmail.com>.
Hi, you need jsch.jar from this page http://www.jcraft.com/jsch/ . At
least that is what i use and it works.

On Tue, Apr 27, 2010 at 5:52 PM, David Weintraub <qa...@gmail.com> wrote:
> Does the SCP task work? We use Ant 1.7 and recently tried the <scp>
> task. We included the jsch.jar, but we got the following error:
>
> BUILD FAILED
> /Users/david/test/build.xml:5: Problem: failed to create task or type scp
> Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not found.
>        This looks like one of Ant's optional components.
> Action: Check that the appropriate optional JAR exists in
>        -/usr/share/ant/lib
>        -/Users/david/.ant/lib
>        -a directory added on the command line with the -lib argument
>
> Do not panic, this is a common problem.
> The commonest cause is a missing JAR.
>
> This is not a bug; it is a configuration problem
>
>
> It appears that none of the jars in the $ANT_HOME/lib directory
> contains the class org.apache.tools.ant.taskdefs.optional.ssh.Scp even
> though the scp task is defined in the ant.jar.
>
> Is this a bug in Ant 1.7? Am I suppose to include another JAR file
> that includes this classsfile?
>
> Never used the scp task before.
>
> --
> David Weintraub
> qazwart@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
Why?
Because YES!

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