Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » SSHExec ant task bug
SSHExec ant task bug [message #71039] Fri, 27 May 2005 21:23 Go to previous message
Bill Winspur is currently offline Bill WinspurFriend
Messages: 180
Registered: July 2009
Senior Member
I am experimenting with use of ant on a new install of
Eclipse 3.0.2, specifically trying to use the sshexec
task. I'm getting the following error from my test build

========
Buildfile: /path-to/build.xml
dossh:
[echo] ant invoked from eclipse
BUILD FAILED: /path-to/build.xml:9: Could not create task or type of type:
sshexec. Ant could not find the task or a class this task relies upon.
....
========

Since sshexec is an optional task, and its jar (ant-jsch.jar) is in
/usr/local/share/eclipse/plugins/org.apache.ant_1.6.2/lib, which is
on the external tools classpath:

I added a taskdef to make it available to ant:

<taskdef
name="sshexec"
classname="org.apache.tools.ant.taskdefs.optional.ssh.SSHExec "/>

which produced the following error in the ant editor and External Tools
dialog:

taskdef A class needed by
org.apache.tools.ant.taskdefs.optional.ssh.SSHExecx cannot be found:
com.jcraft.jsch.UserInfo.

There is, incidentally a UserInfo in
ant-jsch.jar, but it is in the ant package - org.apache.ant.tools....)

This could be a buggy migration of jsch into ant
packaging, from jcraft packaging.
have any other eclipse users found a workaround for this yet?
Should I post it as a bug?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:java.lang.NoClassDefFoundError­: javax/mail/Session Runtime error
Next Topic:3.1 together with 3.0.2
Goto Forum:
  


Current Time: Fri Apr 26 09:23:35 GMT 2024

Powered by FUDForum. Page generated in 0.08635 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top