|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Create a task to deploy in a remote serverHi,
How can I create a task to deploy in a remote machine? Thank you in advance :) This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. |
|
|
RE: Create a task to deploy in a remote serverHello, you can use :
FTP : http://ant.apache.org/manual/OptionalTasks/ftp.html Or SCP : http://ant.apache.org/manual/OptionalTasks/scp.html (copy by sftp possible with ant1.7) Antoine -----Message d'origine----- De : Dubois, Fabien [mailto:fabien.dubois@...] Envoyé : jeudi 17 avril 2008 10:33 À : user@... Objet : Create a task to deploy in a remote server Hi, How can I create a task to deploy in a remote machine? Thank you in advance :) This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Create a task to deploy in a remote serverDubois, Fabien wrote:
> Hi, > > > > How can I create a task to deploy in a remote machine? > > > > Thank you in advance :) what do you mean by "deploy" ? -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
RE: Create a task to deploy in a remote serverWe use scp. Works well. Here's an example:
<input message="Remote Server User Id:" addproperty="remoteUserId" /> <input message="Remote Server User Password:" addproperty="remoteUserPassword" /> <scp todir="${remoteUserId}:${remoteUserPassword}@${serverName}:${remoteDeployDir}" trust="true" verbose="true"> <fileset>...</fileset> </scp> And then we run a deployment script on the remote server as follows: <sshexec host="${serverName}" username="${remoteUserId}" password="${remoteUserPassword}" command="${remoteDeployDir}/InstallStuff.ksh ${buildTag}" trust="true" verbose="true"> </sshexec> ------------------------- Original Message: From: Antoine POURCHEZ <antoine.pourchez@...> To: 'Ant Users List' <user@...> Cc: Date: Thursday, April 17 2008 09:51 Subject: RE: Create a task to deploy in a remote server Hello, you can use : FTP : http://ant.apache.org/manual/OptionalTasks/ftp.html Or SCP : http://ant.apache.org/manual/OptionalTasks/scp.html (copy by sftp possible with ant1.7) Antoine -----Message d'origine----- De : Dubois, Fabien [mailto:fabien.dubois@...] Envoyé : jeudi 17 avril 2008 10:33 À : user@... Objet : Create a task to deploy in a remote server Hi, How can I create a task to deploy in a remote machine? Thank you in advance :) This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
RE: Create a task to deploy in a remote serverTo copy a war to the good folder (tomcat/webapps).
Now a trying to use : sshexec. But I have problem to include the optional jar jsch-0.1.37. Thank you for your help -----Message d'origine----- De : Steve Loughran [mailto:stevel@...] Envoyé : jeudi 17 avril 2008 11:02 À : Ant Users List Objet : Re: Create a task to deploy in a remote server Dubois, Fabien wrote: > Hi, > > > > How can I create a task to deploy in a remote machine? > > > > Thank you in advance :) what do you mean by "deploy" ? -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
RE: Create a task to deploy in a remote serverOkay Thank you, I m trying to use scp
-----Message d'origine----- De : Tom Drynda [mailto:tad@...] Envoyé : jeudi 17 avril 2008 11:06 À : Ant Users List Objet : RE: Create a task to deploy in a remote server We use scp. Works well. Here's an example: <input message="Remote Server User Id:" addproperty="remoteUserId" /> <input message="Remote Server User Password:" addproperty="remoteUserPassword" /> <scp todir="${remoteUserId}:${remoteUserPassword}@${serverName}:${remoteDeployDir}" trust="true" verbose="true"> <fileset>...</fileset> </scp> And then we run a deployment script on the remote server as follows: <sshexec host="${serverName}" username="${remoteUserId}" password="${remoteUserPassword}" command="${remoteDeployDir}/InstallStuff.ksh ${buildTag}" trust="true" verbose="true"> </sshexec> ------------------------- Original Message: From: Antoine POURCHEZ <antoine.pourchez@...> To: 'Ant Users List' <user@...> Cc: Date: Thursday, April 17 2008 09:51 Subject: RE: Create a task to deploy in a remote server Hello, you can use : FTP : http://ant.apache.org/manual/OptionalTasks/ftp.html Or SCP : http://ant.apache.org/manual/OptionalTasks/scp.html (copy by sftp possible with ant1.7) Antoine -----Message d'origine----- De : Dubois, Fabien [mailto:fabien.dubois@...] Envoyé : jeudi 17 avril 2008 10:33 À : user@... Objet : Create a task to deploy in a remote server Hi, How can I create a task to deploy in a remote machine? Thank you in advance :) This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
RE: Create a task to deploy in a remote serverWhy don't you use " antcontrib " for remote deployment,
Your main build.xml file: <!-- ================================================================ --> <!-- Executing the build file on remote machine --> <!-- ================================================================ --> <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> <!-- depends="move-icp" --> <target name="remote-exe" description="Run the remote master build file"> <remoteant machine="${remote.mc.name}" port="${remote.mc.port}"> <runtarget target="main-tar"/> </remoteant> </target> Your remote ant xml file: <?xml version="1.0" encoding="iso-8859-1"?> <project name="RunAntServer" default="start-ser" basedir="."> <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> <!-- ================================================================ --> <!-- This will start the ANT RMI server --> <!-- ================================================================ --> <target name="start-ser" description="Start ANT server"> <echo>Running ANT server.....</echo> <antserver port="34567"/> </target> <!-- ================================================================ --> <!-- Give a call to clean target of master build file --> <!-- ================================================================ --> <target name="remote-clean" description="Delete icp folder"> <ant target="clean-icp" antfile="/usr/local/build.xml" /> </target> <!-- ================================================================ --> <!-- Give a call to main target of master build file --> <!-- ================================================================ --> <target name="main-tar"> <ant target="build-all" antfile="/usr/local/build.xml"/> </target> </project> --Pritesh -----Original Message----- From: Dubois, Fabien [mailto:fabien.dubois@...] Sent: Thursday, April 17, 2008 2:36 PM To: Ant Users List Subject: RE: Create a task to deploy in a remote server To copy a war to the good folder (tomcat/webapps). Now a trying to use : sshexec. But I have problem to include the optional jar jsch-0.1.37. Thank you for your help -----Message d'origine----- De : Steve Loughran [mailto:stevel@...] Envoyé : jeudi 17 avril 2008 11:02 À : Ant Users List Objet : Re: Create a task to deploy in a remote server Dubois, Fabien wrote: > Hi, > > > > How can I create a task to deploy in a remote machine? > > > > Thank you in advance :) what do you mean by "deploy" ? -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Create a task to deploy in a remote serverDubois, Fabien wrote:
> To copy a war to the good folder (tomcat/webapps). > Now a trying to use : sshexec. > But I have problem to include the optional jar jsch-0.1.37. > > Thank you for your help > If all your are trying to do is copy-by-deploy then yes, <scp> is the way to go. You need that jsch library...I think Ant 1.7.0 works best with an earlier version, like 0.1.27... try that release if 0.1.37 is causing problems. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
| Free Forum Powered by Nabble | Forum Help |