You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jan K <ja...@symbiountech.com> on 2008/09/18 15:59:28 UTC

How to automate Ant deploy?

Can anyone suggest me some ideas how to do this?
-- 
View this message in context: http://www.nabble.com/How-to-automate-Ant-deploy--tp19553582p19553582.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


AW: How to automate Ant deploy?

Posted by Ja...@rzf.fin-nrw.de.
Ant is NOT a deploy/installation tool.
As long as copy, ftp, ssh, sshexec etc are good enough, ok.
But there is no fail over, no recovery, no "transactionality", no easy way of management of installation nodes, ...
 
There are other tools for that. OpenSource like SmartFrog [1] or commercial like NetInstall [2] or Asdis [3].
 
 
Jan
 
[1] http://www.smartfrog.org/
[2] http://www.netinstall.com/
[3] http://www.asdis.com/products/server/

________________________________

Von: John5342 [mailto:john5342@googlemail.com]
Gesendet: Do 18.09.2008 17:27
An: Ant Users List
Betreff: Re: How to automate Ant deploy?



Dont think there is a deploy task for it (certainly not that comes with
ant). I assume you mean something like installing it somewhere and then
running? What you can try and do is recreate the installation instructions
using ant. Probably something along the lines of:

<target name="activemq.install">
  <untar src="${activemq.tarball}" dest=${activeqm.install.dir}"
compression="gzip"/>
  <chmod file="${activeqm.install.dir}/bin/activeqm" perm="755"/>
</target>

<target name="activeqm.run" depends="activeqm.install">
  <exec dir="${activeqm.install.dir}"
executable="${activeqm.install.dir}/bin/activeqm"/>
</target>

Thats only a quick throw together though. Dont expect it to work without
some tweaking for your environment and dont forget to set all the
appropriate properties. This is all based on the getting started guide and a
quick look at the ant tasks available. You should look yourself. Most simple
things can be done using existing tasks.

2008/9/18 Jan K <ja...@symbiountech.com>

>
> ANT deploy to install ActiveMQ .Is this possible?
>
> Scot P. Floess wrote:
> >
> >
> > Deploy of...what?
> >
> > On Thu, 18 Sep 2008, Jan K wrote:
> >
> >>
> >> Can anyone suggest me some ideas how to do this?
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/How-to-automate-Ant-deploy--tp19553582p19553582.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
> >>
> >>
> >
> > Scot P. Floess
> > 27 Lake Royale
> > Louisburg, NC  27549
> >
> > 252-478-8087 (Home)
> > 919-754-4592 (Work)
> >
> > Chief Architect JPlate   http://sourceforge.net/projects/jplate
> > Chief Architect JavaPIM  http://sourceforge.net/projects/javapim
> >
> > Architect Keros          http://sourceforge.net/projects/keros
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-automate-Ant-deploy--tp19553582p19554012.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: How to automate Ant deploy?

Posted by John5342 <jo...@googlemail.com>.
Dont think there is a deploy task for it (certainly not that comes with
ant). I assume you mean something like installing it somewhere and then
running? What you can try and do is recreate the installation instructions
using ant. Probably something along the lines of:

<target name="activemq.install">
  <untar src="${activemq.tarball}" dest=${activeqm.install.dir}"
compression="gzip"/>
  <chmod file="${activeqm.install.dir}/bin/activeqm" perm="755"/>
</target>

<target name="activeqm.run" depends="activeqm.install">
  <exec dir="${activeqm.install.dir}"
executable="${activeqm.install.dir}/bin/activeqm"/>
</target>

Thats only a quick throw together though. Dont expect it to work without
some tweaking for your environment and dont forget to set all the
appropriate properties. This is all based on the getting started guide and a
quick look at the ant tasks available. You should look yourself. Most simple
things can be done using existing tasks.

2008/9/18 Jan K <ja...@symbiountech.com>

>
> ANT deploy to install ActiveMQ .Is this possible?
>
> Scot P. Floess wrote:
> >
> >
> > Deploy of...what?
> >
> > On Thu, 18 Sep 2008, Jan K wrote:
> >
> >>
> >> Can anyone suggest me some ideas how to do this?
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/How-to-automate-Ant-deploy--tp19553582p19553582.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
> >>
> >>
> >
> > Scot P. Floess
> > 27 Lake Royale
> > Louisburg, NC  27549
> >
> > 252-478-8087 (Home)
> > 919-754-4592 (Work)
> >
> > Chief Architect JPlate   http://sourceforge.net/projects/jplate
> > Chief Architect JavaPIM  http://sourceforge.net/projects/javapim
> >
> > Architect Keros          http://sourceforge.net/projects/keros
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-automate-Ant-deploy--tp19553582p19554012.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: How to automate Ant deploy?

Posted by "Scot P. Floess" <fl...@mindspring.com>.
You mean physically to install the app itself?  The app here being 
ActiveMQ?

On Thu, 18 Sep 2008, Jan K wrote:

>
> ANT deploy to install ActiveMQ .Is this possible?
>
> Scot P. Floess wrote:
>>
>>
>> Deploy of...what?
>>
>> On Thu, 18 Sep 2008, Jan K wrote:
>>
>>>
>>> Can anyone suggest me some ideas how to do this?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/How-to-automate-Ant-deploy--tp19553582p19553582.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
>>>
>>>
>>
>> Scot P. Floess
>> 27 Lake Royale
>> Louisburg, NC  27549
>>
>> 252-478-8087 (Home)
>> 919-754-4592 (Work)
>>
>> Chief Architect JPlate   http://sourceforge.net/projects/jplate
>> Chief Architect JavaPIM  http://sourceforge.net/projects/javapim
>>
>> Architect Keros          http://sourceforge.net/projects/keros
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/How-to-automate-Ant-deploy--tp19553582p19554012.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
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

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


Re: How to automate Ant deploy?

Posted by Jan K <ja...@symbiountech.com>.
ANT deploy to install ActiveMQ .Is this possible?

Scot P. Floess wrote:
> 
> 
> Deploy of...what?
> 
> On Thu, 18 Sep 2008, Jan K wrote:
> 
>>
>> Can anyone suggest me some ideas how to do this?
>> -- 
>> View this message in context:
>> http://www.nabble.com/How-to-automate-Ant-deploy--tp19553582p19553582.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
>>
>>
> 
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC  27549
> 
> 252-478-8087 (Home)
> 919-754-4592 (Work)
> 
> Chief Architect JPlate   http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM  http://sourceforge.net/projects/javapim
> 
> Architect Keros          http://sourceforge.net/projects/keros
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-automate-Ant-deploy--tp19553582p19554012.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: How to automate Ant deploy?

Posted by "Scot P. Floess" <fl...@mindspring.com>.
Deploy of...what?

On Thu, 18 Sep 2008, Jan K wrote:

>
> Can anyone suggest me some ideas how to do this?
> -- 
> View this message in context: http://www.nabble.com/How-to-automate-Ant-deploy--tp19553582p19553582.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
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

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