[jboss-svn-commits] JBL Code SVN: r33906 - labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Jul 15 13:36:24 EDT 2010
Author: whitingjr
Date: 2010-07-15 13:36:24 -0400 (Thu, 15 Jul 2010)
New Revision: 33906
Modified:
labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml
Log:
Now start jstat remotely.
Modified: labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml 2010-07-15 17:33:12 UTC (rev 33905)
+++ labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml 2010-07-15 17:36:24 UTC (rev 33906)
@@ -43,10 +43,27 @@
username="root"
password="${r_p}"
command="/root/apache-ant-1.7.1/bin/ant -buildfile /root/java/batch-execution-SPEC-jms2007/scripts/server-controller/server-commands.xml start"/>
+
<echo>Waiting ${sever.startup.sleep.inMinutes} minutes to allow the server to startup.</echo>
<sleep minutes="${sever.startup.sleep.inMinutes}"/>
+
+ <delete file="${jps.output.file}" failonerror="false"/>
+ <scp remotefile="root at hornetq:${jps.output.file}" localFile="${jps.output.file}" failonerror="false" password="${r_p}"/>
+
+ <condition property="pid.file.isAvailable">
+ <available file="${jps.output.file}"/>
+ </condition>
+
</target>
+ <target name="start-jstat" if="pid.file.isAvailable">
+ <property file="${jps.output.file}" />
+ <sshexec host="hornetq"
+ username="root"
+ password="${r_p}"
+ command="${start.jstat.1} ${process.pid} ${start.jstat.2}"/>
+ </target>
+
<target name="stop-eap-server">
<echo>Stopping EAP server.</echo>
<sshexec host="hornetq"
@@ -186,7 +203,7 @@
<equals arg1="true" arg2="${replacement.file.exists}"/>
<then>
<echo>Replacing file ${replacement.runconf.file} </echo>
- <scp localFile="${replacement.runconf.source.name}" remoteTofile="root at hornetq:${replacement.runconf.target.name}" failonerror="true" password="${r_p}"/>
+ <scp localFile="${replacement.runconf.source.name}" remoteTofile="root at hornetq:${replacement.runconf.target.name}" failonerror="true" password="${r_p}" />
</then>
<else>
<echo>No replacement of remote file.</echo>
@@ -244,7 +261,7 @@
<equals arg1="true" arg2="${replacement.file.exists}"/>
<then>
<echo>Replacing file ${replacement.file.target.name} </echo>
- <copy file="${replacement.file.source.name}" tofile="${replacement.file.target.name}"/>
+ <copy file="${replacement.file.source.name}" tofile="${replacement.file.target.name}" overwrite="true"/>
</then>
<else>
<echo>No replacement of local file.</echo>
More information about the jboss-svn-commits
mailing list