ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciramella, EJ" <ECirame...@emptoris.com>
Subject RE: Checking the status of a list of machines
Date Thu, 01 May 2003 15:13:09 GMT
But there are tons of things to check, no?  Are you looking to move a
zip/bin/exe/tar file or copy individual files? What OS?  Do you need to test
if the build already there?  Is one file different?  Do you need to see if
an app server is already running (shut it down, deploy, restart)?  

-----Original Message-----
From: mark.russel@pncbank.com [mailto:mark.russel@pncbank.com]
Sent: Thursday, May 01, 2003 11:09 AM
To: Ant Users List
Subject: RE: Checking the status of a list of machines


I need to check if the machine is available to do the deployment to

Thursday, May 01, 2003 11:07 AM
To: "'Ant Users List'" <user@ant.apache.org>
cc:
From: "Ciramella, EJ" <ECiramella@emptoris.com>
Subject: RE: Checking the status of a list of machines



What do you need to check?  If the machine is uptodate with a set of files?
Is an application deployed?

-----Original Message-----
From: peter reilly [mailto:peter.reilly@corvil.com]
Sent: Thursday, May 01, 2003 11:08 AM
To: Ant Users List
Subject: Re: Checking the status of a list of machines


One solution is to use xmlproperty and foreach from
ant-contrib.
http://ant-contrib.sourceforge.net/ant-contrib/manual

<project default="x">
  <property name="machine.file" value="input.xml"/>
  <target name="x">
    <taskdef resource="net/sf/antcontrib/antcontrib.properties" />
    <xmlproperty file="${machine.file}"/>
    <echo message="${pnc.build.config.deploymachines}"/>
    <foreach param="machine" target="template-deploy-machine"
             list="${pnc.build.config.deploymachines}"
             inheritall="yes" inheritRefs="yes"/>
  </target>

  <target name="template-deploy-machine">
    <echo>Check Deploy on machine ${machine}</echo>
  </target>
</project>

Then use 'ant -Dmachine.file="test.xml" '
or 'ant' to use the  default file "input.xml"

Peter

On Thursday 01 May 2003 15:43, mark.russel@pncbank.com wrote:
> I am in the process of building a generic deployment process that uses
ant.
> All of the J2EE developers will use this process to deploy their code to
> test, QA, and production Environments.
> One of my tasks is the ability to check the status of the machines I am
> going to deploy to before I start the process.
> The user is going to give me a list of machines that they are going to
> deploy to and I need to check each machine on that list.  How do I do
this?
>
> user 1 example input:
> <pnc>
>  <build>
>   <config>
>     <deploymachines>test1,test2,webtest1,webtest2</deploymachines>
>   </config>
>  <build>
> <pnc>
>
> user 2 example input:
> <pnc>
>  <build>
>   <config>
>     <deploymachines>ejbt1,ejbt2,webtest1,webtest2</deploymachines>
>   </config>
>  <build>
> <pnc>
>
> What I want to do is run a task that will (Order is not important)
> (with user 1 input)
> check test1
> check test2
> check webtest1
> check webtest2
>
> (with user2 input)
> check ejbt1
> check ejbtt2
> check webtest1
> check webtest2
>
> Any help will be greatly appreciated both in the ant tasks and the way to
> give the input to the ant script.
>
>
> Mark Russell
> PNC Financial Services Group
> 412-768-9603
>
>
> ---------------------------------------------------------------------
> 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



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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message