jQuery in Action, 3rd edition
The moose likes Linux / UNIX and the fly likes Unix Process Execution  Status Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Unix Process Execution  Status " Watch "Unix Process Execution  Status " New topic

Unix Process Execution Status

Ganesh Gowtham
Ranch Hand

Joined: Mar 30, 2005
Posts: 225

Hi Friends ,

I have a scenario to auotmate couple of things like
  • Checkout the Code from CVS
  • build it
  • stop server and deploy the artifact generated by above task
  • start server again

  • My Question is

    I have to make sure "build it" should ONLY happends after the Checout happends ( like dependency)

    and moreover i have to deploy the code ONLY when the server completely shutdown

    Could someone shed light on this ?

    Thanks in advance

    Thanks, Ganesh Gowtham
    Peter Johnson

    Joined: May 14, 2008
    Posts: 5852

    Write an ant script to do this. Then use Hudson to monitor CVS and run the and script every time something changes in CVS.

    I should also add that when i write such scripts I never use an existing app server - I always create a new one from scratch and either remove it when i am done, or optionally leave it there (for possible manual testing) - the script will remove it the next time it runs before re-creating it.

    JBoss In Action
    Ganesh Gowtham
    Ranch Hand

    Joined: Mar 30, 2005
    Posts: 225

    Hi Peter

    Thanks for kind reply

    I infact have separte scripts

    I just want to make dependency , so that none of them hapeends parlelly
    I agree. Here's the link: http://aspose.com/file-tools
    subject: Unix Process Execution Status
    It's not a secret anymore!