ANT Problem: failed to create task or type scp [message #318330] |
Wed, 25 July 2007 16:56  |
Eclipse User |
|
|
|
I installed a fresh copy of 3.3, the did Run As > Ant build
on a (test case file) having the following content:
==================
<?xml version="1.0" encoding="UTF-8" ?>
<project name="jschtest" default="tryscp" basedir=".">
<target name="tryscp">
<scp file="../index.html"
todir="root@somehost:/opt/scpdest/ password=pwdeh">
</scp>
</target>
</project>
==================
The build failed with the following error:
===================
E:\swd\workspaces\mould-site-wksp\site1.scentable.com\html\b uilds\build.xml:4:
Problem: failed to create task or type scp
Cause: Could not load a dependent class com/jcraft/jsch/UserInfo
It is not enough to have Ant's optional JARs
you need the JAR files that the optional tasks depend upon.
Ant's optional task dependencies are listed in the manual.
Action: Determine what extra JAR files are needed, and place them in one of:
-C:\sop-eclipse\installs\3.3\eclipse\plugins\org.apache.ant_ 1.7.0.v200706080842\lib
-C:\Documents and Settings\Bill Winspear\.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
=====================
I copied jsch-0.1.20.jar into ...org.apache.ant_1.7.0.v200706080842\lib,
as suggested above, booted eclipse and tried again.... with the same result.
Ok, I'm not in a panic, but I am stumped.
How can I get the ANT scp comand to run on 3.3?
Bill.
|
|
|
|
Re: ANT Problem: failed to create task or type scp [message #318360 is a reply to message #318341] |
Thu, 26 July 2007 11:22  |
Eclipse User |
|
|
|
Thanks Darin that worked, Bill.
Darin Swanson wrote:
> Add jsch JAR to the Ant runtime classpath.
>
> Window>Preferences>Ant>Runtime>Classpath
> Select Global Entries and pick Add External JARs
>
> HTH
> Darins
>
> "Bill Winspur" <bwinspur@wynnon.com> wrote in message
> news:f88d7m$396$1@build.eclipse.org...
>
>>I installed a fresh copy of 3.3, the did Run As > Ant build
>>on a (test case file) having the following content:
>>
>>==================
>><?xml version="1.0" encoding="UTF-8" ?>
>><project name="jschtest" default="tryscp" basedir=".">
>><target name="tryscp">
>><scp file="../index.html" todir="root@somehost:/opt/scpdest/
>>password=pwdeh">
>></scp>
>></target>
>></project>
>>==================
>>
>>The build failed with the following error:
>>
>>===================
>> E:\swd\workspaces\mould-site-wksp\site1.scentable.com\html\b uilds\build.xml:4:
>> Problem: failed to create task or type scp
>>
>>Cause: Could not load a dependent class com/jcraft/jsch/UserInfo
>> It is not enough to have Ant's optional JARs
>> you need the JAR files that the optional tasks depend upon.
>> Ant's optional task dependencies are listed in the manual.
>>Action: Determine what extra JAR files are needed, and place them in one
>>of:
>>
>> -C:\sop-eclipse\installs\3.3\eclipse\plugins\org.apache.ant_ 1.7.0.v200706080842\lib
>> -C:\Documents and Settings\Bill Winspear\.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
>>=====================
>>
>>I copied jsch-0.1.20.jar into ...org.apache.ant_1.7.0.v200706080842\lib,
>>as suggested above, booted eclipse and tried again.... with the same
>>result.
>>
>>Ok, I'm not in a panic, but I am stumped.
>>How can I get the ANT scp comand to run on 3.3?
>>
>>Bill.
>>
|
|
|
Powered by
FUDForum. Page generated in 0.06719 seconds