Script for jboss

Taking care of your Linux box.
Post Reply
waqaskhawaja
Lance Naik
Posts: 44
Joined: Thu Aug 31, 2006 8:52 pm
Location: Lahore Pakistan
Contact:

Script for jboss

Post by waqaskhawaja »

I have a small script that I use to deploy a java application on a remote server running fedora core 4 and jboss-4.2.0.GA.

Code: Select all

#!/bin/bash

#Step1: Change directory to subversion working copy.
cd OCIS

#Step2: Update to current revision
svn update

#Step3: Build Project
ant

#Step4: Remove any previous deployment of project
rm ../jboss-4.2.0.GA/server/default/deploy/Project.war

#Step5: Deploy on JBoss 
cp dist/Project.war ../jboss-4.2.0.GA/server/default/deploy/

#Step6: See log
tail -f ../jboss-4.2.0.GA/server/default/log/server.log
As soon as "Step4" command is issued, jboss starts to un-deploy the application that takes some seconds. What I want is, that "Step5" command should execute after the application has been fully un-deployed and not immediately after the remove command.
Post Reply