• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deploying remotely thru sshexec ???

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Has anyone succeded in deploying with ANT using the ssh protocol? I added the sshexec command in my script but ANT could not see the jsch.jar file in the lib directory, so I copy the .jar file to the ANT root directory, still did not see it. What am I doing wrong. See below for the statement used:

<sshexec host="hostserver.com" userid="${node.userid}" password="${node.userpass}" command=" touch index.html">

fyi: don't want to display the real host server name used...
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I haven't used sshexec, but have used a number of optional tasks. Are you saying you put the jsch.jar in ant's lib directory? That is generally the easiest way to get optional tasks to work.

What version of ant and jsch.jar are you using? (check the documentation for compatible versions of each, especially if you are using an old version of ant the dependency might be totally different).

If you're still not getting it to work, what errors are you getting?
 
Chuck Hanson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thx for your reply, Carol. Yes, I have the jsch.jar file in lib (It actually came with it since the ANT version I'm running is 1.6.5).

The error I get is 'can not find sshexec...' something like that. I do believe there's gotta be more to the command line arguments than I am using but I don't know what they are.

Chuck
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic