wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Changing name of a file located on remote server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Changing name of a file located on remote server" Watch "Changing name of a file located on remote server" New topic
Author

Changing name of a file located on remote server

Yogendra Singh Butola
Greenhorn

Joined: Sep 28, 2011
Posts: 13
I'm trying to automate the build process on my dev environment. For which I've to do the following steps:
1. Dowload the EAR from AntHillPro.
2. Rename the existing ear with a new name on my Remote server. For backup use only.
3. Uploaed the downloaded ear in step 1.

I'm not facing any issue with steps 1 and 3. However with step 2, I'm not able to rename the ear file located on the remote server.

I searched the net and didn't found a way to do this.

For uploading I'm using SCP task.

Any kind of help will be highly appreciated.

Thanks
Yogi
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Use ssh to run a remote rename command.


JBoss In Action
Yogendra Singh Butola
Greenhorn

Joined: Sep 28, 2011
Posts: 13
Thanks I got it done !!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing name of a file located on remote server
 
Similar Threads
Webspere 345 exam questions
Deployment on Server + Automation + Servlet
Spring Batch Job seems to be starting one step before last one finishes?
trigger a method without using client.
Axis2 (1.5) - Use App Server's Admin console to deploy EAR, WAR, JAR|| Message service in Axis2