[jboss-svn-commits] JBL Code SVN: r33722 - 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 1 12:11:51 EDT 2010
Author: whitingjr
Date: 2010-07-01 12:11:50 -0400 (Thu, 01 Jul 2010)
New Revision: 33722
Added:
labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml
Log:
Added Ant script to execute the lower level operations.
Added: 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 (rev 0)
+++ labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml 2010-07-01 16:11:50 UTC (rev 33722)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2009 Red Hat, Inc.
+ Red Hat licenses this file to you under the Apache License, version
+ 2.0 (the "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied. See the License for the specific language governing
+ permissions and limitations under the License.
+ -->
+<!--
+ This file contains the commands that should be called
+ on the command line.
+-->
+
+
+<project name="RedHat-JBoss-Performance:Commands" default="usage" basedir=".">
+
+ <property file="build-api.properties" />
+
+ <!--artifact:dependencies pathId="ssh.classpath">
+ <dependency groupId="junit" artifactId="junit" version="3.8.2" scope="test"/>
+
+ </artifact:dependencies-->
+
+ <target name="clean">
+ <echo>Removing prior run collected data.</echo>
+ <delete file="config/run.conf" />
+ </target>
+
+ <target name="gather-configuration" depends="clean">
+ <echo>Gathering configuration located on EAP server.</echo>
+
+ <input message="Enter root password for hornetq server:" addproperty="r_p" />
+ <scp remotefile="root at hornetq:/jboss-5.1.0.Branch/bin/run.conf" todir="${spec.install.dir}/config" failonerror="true" password="${r_p}">
+
+ </scp>
+
+ </target>
+
+ <target name="start-benchmark">
+ <input message="Enter root password for jmsclientn server:" addproperty="r_p" />
+ <parallel failonany="true">
+ <echo>starting Controller</echo>
+
+ <!--ant antfile="${spec.install.dir}/build.xml" target="startController"/-->
+ <sshexec host="jmsclient1"
+ username="root"
+ password="${r_p}"
+ command="${start.controller.command}"/>
+ <echo>start satellite1</echo>
+ <echo>start satellite2</echo>
+ <sshexec host="jmsclient1"
+ username="root"
+ password="${r_p}"
+ command="${start.satellite.one}"/>
+ <echo>start satellite2</echo>
+ <sshexec host="jmsclient2"
+ username="root"
+ password="${r_p}"
+ command="${start.satellite.two}"/>
+
+ </parallel>
+
+ </target>
+
+ <target name="usage">
+ <message echo="usage: Do not call this directly, instead use build-commands" />
+ </target>
+
+
+</project>
\ No newline at end of file
More information about the jboss-svn-commits
mailing list