ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avery Marvin R <Marvin.R.Av...@irs.gov>
Subject RE: Is there a way?
Date Fri, 25 Jul 2003 14:15:27 GMT
Stephen,
I downloaded the latest 1.6alpha build, and tried a fairly
simple target as follows -

	<target name="sshtest">

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

		<SSHExec host="aus0010cisdev1"
		username="blah"
		password="xxxx"
		command="dir"/>
	
	</target>

and I get the following error

sshtest:
     [taskdef] BUILD FAILED:
D:\view_roots\MRAver18_view\cisprod\codebase\j2ee\workflow\build.xml:244:
taskdef A class needed by class
org.apache.tools.ant.taskdefs.optional.ssh.SSHExec cannot be found:
com/jcraft/jsch/UserInfo
Total time: 2 seconds

I looked thru the archives and saw where several people had the same
problem, but I saw no clear
answer (some references to Sun JCE, etc). Isn't everything that's needed to
make this work packaged in 1.6 (there's an ant-jsch.jar file with a
SSHUserInfo.class file in the release; is this what's needed?)?

Again, bear with me, as I am just learning Ant and Java.

Thanks for the help..

MRA


-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Friday, July 25, 2003 1:22 AM
To: user@ant.apache.org
Subject: Re: Is there a way?


On Thu, 24 Jul 2003, Avery Marvin R. <Marvin.R.Avery@irs.gov> wrote:

> Is there a way, in an ant script, to execute a command on another
> computer (like rexec or rsh in the unix world) on the network?

Ant's nightly builds: In addition to <sshexec>, there also is an
<rexec> (that requires Jakarta's commons-net component).

Ant 1.5.3 and earlier at least have a <telnet> task you may find
useful.

Stefan

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message