Friday, June 3, 2011

Stupid ant weblogic start script

build properties:
wl.command.start=/home/teamcity/script/startWL.sh

build.xml
<exec executable="${wl.command.start}"/>

startWL.sh
#!/bin/bash
sudo -u weblogic /opt/weblogic/oracle/domains/mydomain/bin/startWebLogicRemote.sh

startWebLogicR.sh
echo ..................... STARTING WL
cd /opt/weblogic/oracle/domains/mydomain/bin
nohup ./startWebLogic.sh > /dev/null 2>&1 &
cd -

No comments:

Post a Comment