ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Robert H - MWT" <Anderson.Rob...@menlolog.com>
Subject RE: Re[2]: moving files in unix from windows
Date Tue, 12 Aug 2003 16:24:16 GMT
Try the sshexec task. I use it all the time for this sort of thing. Here is
a part of my build file that does a series of things to a remote unix box

     <sshexec host="${web.server}"
              username="${web.user}"
              keyfile="${env.HOME}/.ssh/id_dsa"
              knownhosts="${env.HOME}/.ssh/known_hosts"
              passphrase=""
              command="cd ${web.prop.dir}/.. ; rm
${web.backup.dir}/properties ; mv properties ${web.backup.dir} ; tar xf
${web.docroot}/${web.tar} ${cvs.prop.dir} ; mv ${cvs.prop.dir} properties;
rm apps"
     />

-----Original Message-----
From: Pavel Shalashov [mailto:shalashov@nnov.tv] 
Sent: Tuesday, August 12, 2003 1:06 AM
To: Ant Users List
Subject: Re[2]: moving files in unix from windows


Hi Kumar,

You can <telnet> to your Unix box and do anything you want there!


KSS> the task ftp doesnt support the nested "move" element... is there a 
KSS> way to move files in unix by running ant in windows?

KSS> -----Original Message-----
KSS> From: Mike [mailto:szii@sziisoft.com]
KSS> Sent: Monday, August 11, 2003 6:45 PM
KSS> To: Ant Users List
KSS> Subject: Re: moving files in unix from windows


>>     <ftp server="bourne"
>>        remotedir="/p/q/r"
>>        userid=""
>>        password=""
>>        depends="yes"
>>        binary="yes">
>>           <fileset dir="${stubDir}"/>    
>>         </ftp>
>> <!-- this is not working
>> <move todir="/m/n">
>>     <fileset dir="/u03/kbdev/lib">
>>       <include name="**/*"/>
>>     </fileset>
>>     </move>
>>       -->
>> <!-- this is working if I uncomment the previous move task -->
>>       <chmod dir="/u03/kbdev/lib" perm="a+x" includes="**/*.jar"/>       

KSS> You're setting up the ftp section and then closing it...and THEN 
KSS> trying to do the move (which results in a local-machine command.)

KSS> G'Luck.

KSS> -Szii


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








KSS> *******************************************************************
KSS> ***
KSS> The information contained in this communication is
KSS> confidential, is intended only for the use of the recipient
KSS> named above, and may be legally privileged.
KSS> If the reader of this message is not the intended
KSS> recipient, you are hereby notified that any dissemination, 
KSS> distribution, or copying of this communication is strictly
KSS> prohibited.
KSS> If you have received this communication in error,
KSS> please re-send this communication to the sender and
KSS> delete the original message or any copy of it from your
KSS> computer system. Thank You.


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



-- 
Best regards,
 Pavel


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

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


Mime
View raw message