You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by mindspin311 <co...@gmail.com> on 2008/03/30 19:49:25 UTC

moving from server to server

First let me say, sorry for posting on the dev board. I'll try to delete it
after submitting this post.

This is all being done in Unix for tarring a directory of php files.

The process I'm trying to do is:

given a folder you're either in or are sending as a command line argument,

1. tar it
2. use svn update to get the version number to append to the file name.
3. send it to a different server.

I also have to execute some commands like sudo and possibly exec.

Can I do this all in ant without having to create a temp tar file, then ftp
it to another server, then go back and delete the temp tar file?

Can I use move instead of copy across different servers, so I don't have to
remove the temp file after?

I'm new to ant, so any help would be greatly appreciated. Just trying to get
an idea if this can be done as simply as possible.
-- 
View this message in context: http://www.nabble.com/moving-from-server-to-server-tp16384890p16384890.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


RE: moving from server to server

Posted by Rick Genter <rg...@silverlink.com>.
> From: mindspin311 [mailto:connoc.mindspin@gmail.com] 
> Sent: Sunday, March 30, 2008 10:49 AM
> To: user@ant.apache.org
> Subject: moving from server to server
> 
> 
> Can I do this all in ant without having to create a temp tar 
> file, then ftp
> it to another server, then go back and delete the temp tar file?
> 
> Can I use move instead of copy across different servers, so I 
> don't have to
> remove the temp file after?

You can do from ant pretty much anything you can do from a shell. If you
can write a shell script to do what you describe, you can generally do
the same via an ant build file through a combination of ant tasks and
embedded scripts.

Note that when you say "move instead of copy across different servers,
so I don't have to remove the temp file after", that's what's most
likely going to happen behind the scenes anyway, even if your FTP client
has a "move" command. I guess I just don't understand why it's such a
big deal to have to specify both steps.
--
Rick Genter
Principal Software Engineer
Silverlink Communications
rgenter@silverlink.com
www.silverlink.com
Office (781) 425-5763
Mobile (781) 771-9677

This e-mail, including attachments, may include confidential and/or
proprietary information, and may only be used by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately
 

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