• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Copying files from Windows to Unix (In could)

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

I have the jar files from the project build in the windows machine. and this has to be copied to Unix machine(in cloud for deployment)

Even though we can perform this using Putty/WinScp. (i,e copying the files from windows machine to UNIX server ) can it be automated ?

presently we cannot access the shared path of unix machine in windows machine. so can any one please provide a suggestion for automation the copy operation
using ant/maven/ by jenkins.

Thanks
Gokul
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSch is a Java library that can be used to automate SSH and SCP: http://seancode.blogspot.de/2008/02/jsch-scp-file-in-java.html
 
gokul.r ramamurthy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf Dittmer for the reply.
But we are not suppose to use java/c# or any programming language. we can user only ant/maven or jenkin actions,
so can you provide suggestion on this please.
 
Ulf Dittmer
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ant has an SCP task. And Ant is written in Java itself, so you can add new tasks to it that you wrote in Java (if the SCP taks doesn't do what you need done) :-)
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!