[jboss-cvs] JBossAS SVN: r57405 - in trunk/tools/etc/cruisecontrol: . jbossweb
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Oct 3 16:23:19 EDT 2006
Author: rrajesh
Date: 2006-10-03 16:23:18 -0400 (Tue, 03 Oct 2006)
New Revision: 57405
Added:
trunk/tools/etc/cruisecontrol/jbossweb/
trunk/tools/etc/cruisecontrol/jbossweb/build-windows.xml
trunk/tools/etc/cruisecontrol/jbossweb/build.xml
trunk/tools/etc/cruisecontrol/jbossweb/daemon-windows.xml
trunk/tools/etc/cruisecontrol/jbossweb/daemon.xml
Log:
Build files for jbossweb builds
Added: trunk/tools/etc/cruisecontrol/jbossweb/build-windows.xml
===================================================================
--- trunk/tools/etc/cruisecontrol/jbossweb/build-windows.xml 2006-10-03 20:23:03 UTC (rev 57404)
+++ trunk/tools/etc/cruisecontrol/jbossweb/build-windows.xml 2006-10-03 20:23:18 UTC (rev 57405)
@@ -0,0 +1,269 @@
+<project name="JBW-builder">
+
+ <property url="http://anonsvn.labs.jboss.com/labs/jbossweb/trunk/build.properties.default"/>
+ <property file="build.properties"/>
+ <!-- Paths -->
+ <property name="checkout.dir" value="/home/cruisecontrol/work/checkout"/>
+ <property name="config" value="etc/"/>
+ <property name="resource" value="resource/"/>
+ <property name="platform" value=""/>
+ <property name="nativelib" value="${resource}/native/${platform}/lib/"/>
+ <property name="jbossweb.src" value="${checkout.dir}/jbossweb"/>
+ <property name="jbossweb.name" value="jbossweb-${version.major}.${version.minor}.${version.build}.${version.patch}"/>
+ <property name="jbossweb.home" value="${jbossweb.src}/output/${jbossweb.name}"/>
+ <property name="jbossweb.native" value="${jbossweb.home}/bin/native" />
+ <property name="jbossweb.endorsed" value="${jbossweb.home}/lib/endorsed" />
+ <property name="jbossweb.address" value=""/>
+ <property name="jbossweb.port" value="8080"/>
+ <property name="jbossweb.config" value="default"/>
+ <property name="deployto" value="${jbossweb.home}/server/${jbossweb.config}/deploy/jbossweb.sar/tester.war"/>
+ <property name="jbossweb.tarball" value="jbossweb-${platform}-${version.major}.${version.minor}.${version.build}.${version.patch}.zip"/>
+ <property name="output" value="${basedir}/output"/>
+ <property name="daemon.address" value=""/>
+ <property name="daemon.port" value="7070"/>
+ <property name="java.home.dir" value=""/>
+ <property name="target.os" value="unix"/>
+
+ <!-- Functional tests -->
+ <property name="tests.home" value="tests"/>
+ <property name="tests.buildfile" value="tester.xml"/>
+ <property name="tests.deployfrom" value="${tests.home}/webapps/tester"/>
+ <property name="tests.results" value="functional_tests.log"/>
+
+ <!-- Autobench -->
+ <property name="autobench.home" value="benchmark/bin"/>
+ <property name="autobench.executable" value="autobench"/>
+ <property name="autobench.lowrate" value="20"/>
+ <property name="autobench.highrate" value="200"/>
+ <property name="autobench.ratestep" value="20"/>
+ <property name="autobench.numcall" value="10"/>
+ <property name="autobench.numconn" value="500"/>
+ <property name="autobench.timeout" value="5"/>
+ <property name="autobench.output" value="${output}/autobench"/>
+ <property name="autobench.pathtoraw" value="/tester/raw/"/>
+ <property name="bench2graph.executable" value="bench2graph"/>
+
+ <!-- Repository -->
+ <property name="checkout.url" value="http://anonsvn.labs.jboss.com/labs/jbossweb/trunk"/>
+
+ <property name="jboss.tarball" value="${resource}/jboss-${jboss.version.major}.${jboss.version.minor}.${jboss.version.build}.${jboss.version.patch}.zip"/>
+
+
+ <!-- Classpaths -->
+ <path id="jbossweb.classpath" >
+ <pathelement location="${jbossweb.home}/bin/run.jar"/>
+ <pathelement location="${jbossweb.home}/lib/tools.jar"/>
+ </path>
+
+ <!-- Remote ant -->
+ <taskdef resource="org/jboss/ant/remoteant.properties">
+ <classpath>
+ <pathelement location="./lib/jboss-remoteant.jar" />
+ </classpath>
+ </taskdef>
+
+ <target name="daemon">
+ <antserver address="${daemon.address}" port="${daemon.port}"/>
+ </target>
+
+ <target name="checkout">
+ <java classname="org.tmatesoft.svn.cli.SVN" dir="${checkout.dir}" fork="true">
+ <arg value="co"/>
+ <arg value="${checkout.url}"/>
+ <arg value="jbossweb"/>
+ <classpath>
+ <pathelement location="lib/ganymed.jar" />
+ <pathelement location="lib/javasvn.jar" />
+ <pathelement location="lib/javasvn-cli.jar" />
+ </classpath>
+ </java>
+ <echo message="${jbossweb.name}"/>
+ </target>
+
+ <target name="build" depends="checkout,extractJBoss">
+ <ant dir="${jbossweb.src}" inheritall="true"/>
+ <!--<antcall target="copyNative" />-->
+ <!--<antcall target="package-build"/>-->
+ <!--<antcall target="deploy"/>-->
+ </target>
+
+ <target name="extractJBoss">
+ <unzip src="${jboss.tarball}" dest="${jbossweb.src}/jboss" />
+ </target>
+
+ <target name="copyNative">
+<!-- <delete dir="${jbossweb.home}/bin/native"/>
+ <mkdir dir="${jbossweb.home}/bin/native"/>
+ <copy todir="${jbossweb.home}/bin/native">
+ <fileset dir="${nativelib}" includes="*.*"/>
+ </copy>-->
+ <delete>
+ <fileset dir="tarballs" includes="*.*"/>
+ </delete>
+ <exec dir="${checkout.dir}/jbossweb/src/share/native/build" executable="sh">
+ <arg value="./buildprep.sh"/>
+ </exec>
+ <copy todir="tarballs">
+ <fileset dir="${checkout.dir}/jbossweb/src/share/native/build" includes="tomcat-native*gz"/>
+ </copy>
+ </target>
+
+ <target name="deploy">
+ <copy todir="${deployto}">
+ <fileset dir="${tests.deployfrom}"/>
+ </copy>
+ </target>
+
+ <pathconvert targetos="${target.os}" property="tcnative.tarball">
+ <path>
+ <fileset dir="tarballs" includes="tomcat-native*gz"/>
+ </path>
+ </pathconvert>
+<!--
+ <pathconvert targetos="${target.os}" property="apr.tarball">
+ <path>
+ <fileset dir="tarballs" includes="apr*bz2"/>
+ </path>
+ </pathconvert>
+-->
+
+ <target name="startJBossWeb">
+ <remoteant machine="${daemon.address}" port="${daemon.port}">
+ <!-- <sendfile file="${tcnative.tarball}" todir="tarballs"/>-->
+ <sendfile file="${output}/${platform}/${jbossweb.tarball}" todir="."/>
+ <runtarget target="startJBossWeb">
+ <property name="jbossweb.name" value="${jbossweb.name}"/>
+ <property name="jbossweb.tarball" value="${jbossweb.tarball}"/>
+ <property name="jbossweb.port" value="${jbossweb.port}"/>
+ <property name="jbossweb.address" value="${jbossweb.address}"/>
+ <property name="jbossweb.config" value="${jbossweb.config}"/>
+ <property name="target.os" value="${target.os}"/>
+ <property name="platform" value="${platform}"/>
+ <property name="buildworld.command" value="${buildworld.command}"/>
+ <property name="buildsvc.command" value="${buildsvc.command}"/>
+ <property name="arch" value="${arch}"/>
+ </runtarget>
+ </remoteant>
+<!-- <waitfor>
+ <http url="http://${jbossweb.address}:${jbossweb.port}"/>
+ </waitfor>
+ <echo>JBossWeb started</echo>
+ <antcall target="getJBossWeb"/>-->
+<!-- <antcall target="runTests"/>-->
+<!-- <antcall target="runAutobench"/>
+ <antcall target="runBench2graph"/>-->
+<!-- <antcall target="stopJBossWeb"/>-->
+ </target>
+
+ <target name="runBenchmark">
+
+ </target>
+ <target name="stopJBossWeb">
+ <remoteant machine="${daemon.address}" port="${daemon.port}">
+ <runtarget target="stopJBossWeb">
+ <property name="jbossweb.name" value="${jbossweb.name}"/>
+ <property name="jbossweb.port" value="${jbossweb.port}"/>
+ <property name="jbossweb.address" value="${jbossweb.address}"/>
+ <property name="platform" value="${platform}"/>
+ <property name="jbossweb.tarball" value="${jbossweb.tarball}"/>
+ </runtarget>
+ </remoteant>
+ </target>
+
+ <target name="sendJBossWeb">
+ <remoteant machine="${daemon.address}" port="${daemon.port}">
+ <runtarget target="sendJBossWeb">
+ <property name="jbossweb.name" value="${jbossweb.name}"/>
+ <property name="jbossweb.tarball" value="${jbossweb.tarball}"/>
+ <property name="platform" value="${platform}"/>
+ </runtarget>
+ </remoteant>
+ </target>
+
+ <target name="getJBossWeb">
+ <remoteant machine="${daemon.address}" port="${daemon.port}">
+ <!-- <runtarget target="packageJBossWeb">
+ <property name="jbossweb.name" value="${jbossweb.name}"/>
+ <property name="jbossweb.tarball" value="${jbossweb.tarball}"/>
+ </runtarget>-->
+ <getfile file="work/${jbossweb.tarball}" todir="${output}/${platform}"/>
+ </remoteant>
+ </target>
+
+ <target name="package">
+ <delete dir="${output}/${platform}"/>
+ <mkdir dir="${output}/${platform}"/>
+ <tar
+ basedir="${jbossweb.src}/output/"
+ destfile="${output}/${platform}/${jbossweb.tarball}"
+ longfile="gnu"
+ includes="${jbossweb.name}/**/*"
+ compression="gzip"/>
+ </target>
+
+
+ <!-- Run functional tests -->
+ <target name="runTests">
+ <property name="context.path" value="/tester"/>
+ <ant inheritall="false" dir="${tests.home}/bin" antfile="${tests.buildfile}" output="${output}/${tests.results}">
+ <property name="host" value="${jbossweb.address}"/>
+ <property name="port" value="${jbossweb.port}"/>
+ </ant>
+ </target>
+
+ <macrodef name="autobench">
+ <attribute name="file"/>
+ <sequential>
+ <exec executable="${autobench.executable}" dir=".">
+ <arg line="--single_host \
+ --host1 ${jbossweb.address} \
+ --port1 ${jbossweb.port} \
+ --uri1 ${autobench.pathtoraw}/@{file} \
+ --low_rate ${autobench.lowrate} \
+ --high_rate ${autobench.highrate} \
+ --rate_step ${autobench.ratestep} \
+ --num_call ${autobench.numcall} \
+ --num_conn ${autobench.numcall} \
+ --timeout ${autobench.timeout} \
+ --file ${autobench.output}/@{file}.tsv"/>
+ </exec>
+ </sequential>
+ </macrodef>
+
+ <target name="runAutobench">
+ <autobench file="raw1k.bin"/>
+ <autobench file="raw5k.bin"/>
+ <autobench file="raw10k.bin"/>
+ <autobench file="raw20k.bin"/>
+ <autobench file="raw50k.bin"/>
+ <autobench file="raw100k.bin"/>
+ <autobench file="raw200k.bin"/>
+ <autobench file="raw1m.bin"/>
+ <autobench file="raw4m.bin"/>
+ <autobench file="raw10m.bin"/>
+ </target>
+
+ <macrodef name="bench2graph">
+ <attribute name="src"/>
+ <attribute name="output"/>
+ <sequential>
+ <exec executable="${bench2graph.executable}" dir="." inputstring="@{src}">
+ <arg line="${autobench.output}/@{src} ${autobench.output}/@{output}"/>
+ </exec>
+ </sequential>
+ </macrodef>
+
+ <target name="runBench2graph">
+ <bench2graph src="raw1k.bin.tsv" output="raw1k.ps"/>
+ <bench2graph src="raw5k.bin.tsv" output="raw5k.ps"/>
+ <bench2graph src="raw10k.bin.tsv" output="raw10k.ps"/>
+ <bench2graph src="raw20k.bin.tsv" output="raw20k.ps"/>
+ <bench2graph src="raw50k.bin.tsv" output="raw50k.ps"/>
+ <bench2graph src="raw100k.bin.tsv" output="raw100k.ps"/>
+ <bench2graph src="raw200k.bin.tsv" output="raw200k.ps"/>
+ <bench2graph src="raw1m.bin.tsv" output="raw1m.ps"/>
+ <bench2graph src="raw4m.bin.tsv" output="raw4m.ps"/>
+ <bench2graph src="raw10m.bin.tsv" output="raw10m.ps"/>
+ </target>
+
+</project>
Added: trunk/tools/etc/cruisecontrol/jbossweb/build.xml
===================================================================
--- trunk/tools/etc/cruisecontrol/jbossweb/build.xml 2006-10-03 20:23:03 UTC (rev 57404)
+++ trunk/tools/etc/cruisecontrol/jbossweb/build.xml 2006-10-03 20:23:18 UTC (rev 57405)
@@ -0,0 +1,270 @@
+<project name="JBW-builder">
+
+ <property url="http://anonsvn.labs.jboss.com/labs/jbossweb/trunk/build.properties.default"/>
+ <property file="build.properties"/>
+ <!-- Paths -->
+ <property name="checkout.dir" value="/home/cruisecontrol/work/checkout"/>
+ <property name="config" value="etc/"/>
+ <property name="resource" value="resource/"/>
+ <property name="platform" value=""/>
+ <property name="nativelib" value="${resource}/native/${platform}/lib/"/>
+ <property name="jbossweb.src" value="${checkout.dir}/jbossweb"/>
+ <property name="jbossweb.name" value="jbossweb-${version.major}.${version.minor}.${version.build}.${version.patch}"/>
+ <property name="jbossweb.home" value="${jbossweb.src}/output/${jbossweb.name}"/>
+ <property name="jbossweb.native" value="${jbossweb.home}/bin/native" />
+ <property name="jbossweb.endorsed" value="${jbossweb.home}/lib/endorsed" />
+ <property name="jbossweb.address" value=""/>
+ <property name="jbossweb.port" value="8080"/>
+ <property name="jbossweb.config" value="default"/>
+ <property name="deployto" value="${jbossweb.home}/server/${jbossweb.config}/deploy/jbossweb.sar/tester.war"/>
+ <property name="jbossweb.tarball" value="jbossweb-${platform}-${version.major}.${version.minor}.${version.build}.${version.patch}.tar.gz"/>
+ <property name="output" value="${basedir}/output"/>
+ <property name="daemon.address" value=""/>
+ <property name="daemon.port" value="7070"/>
+ <property name="java.home.dir" value=""/>
+ <property name="target.os" value="unix"/>
+
+ <!-- Functional tests -->
+ <property name="tests.home" value="tests"/>
+ <property name="tests.buildfile" value="tester.xml"/>
+ <property name="tests.deployfrom" value="${tests.home}/webapps/tester"/>
+ <property name="tests.results" value="functional_tests.log"/>
+
+ <!-- Autobench -->
+ <property name="autobench.home" value="benchmark/bin"/>
+ <property name="autobench.executable" value="autobench"/>
+ <property name="autobench.lowrate" value="20"/>
+ <property name="autobench.highrate" value="200"/>
+ <property name="autobench.ratestep" value="20"/>
+ <property name="autobench.numcall" value="10"/>
+ <property name="autobench.numconn" value="500"/>
+ <property name="autobench.timeout" value="5"/>
+ <property name="autobench.output" value="${output}/autobench"/>
+ <property name="autobench.pathtoraw" value="/tester/raw/"/>
+ <property name="bench2graph.executable" value="bench2graph"/>
+
+ <!-- Repository -->
+ <property name="checkout.url" value="http://anonsvn.labs.jboss.com/labs/jbossweb/trunk"/>
+
+ <property name="jboss.tarball" value="${resource}/jboss-${jboss.version.major}.${jboss.version.minor}.${jboss.version.build}.${jboss.version.patch}.zip"/>
+
+
+ <!-- Classpaths -->
+ <path id="jbossweb.classpath" >
+ <pathelement location="${jbossweb.home}/bin/run.jar"/>
+ <pathelement location="${jbossweb.home}/lib/tools.jar"/>
+ </path>
+
+ <!-- Remote ant -->
+ <taskdef resource="org/jboss/ant/remoteant.properties">
+ <classpath>
+ <pathelement location="./lib/jboss-remoteant.jar" />
+ </classpath>
+ </taskdef>
+
+ <target name="daemon">
+ <antserver address="${daemon.address}" port="${daemon.port}"/>
+ </target>
+
+ <target name="checkout">
+ <java classname="org.tmatesoft.svn.cli.SVN" dir="${checkout.dir}" fork="true">
+ <arg value="co"/>
+ <arg value="${checkout.url}"/>
+ <arg value="jbossweb"/>
+ <classpath>
+ <pathelement location="lib/ganymed.jar" />
+ <pathelement location="lib/javasvn.jar" />
+ <pathelement location="lib/javasvn-cli.jar" />
+ </classpath>
+ </java>
+ <echo message="${jbossweb.name}"/>
+ </target>
+
+ <target name="build" depends="checkout,extractJBoss">
+ <ant dir="${jbossweb.src}" inheritall="true"/>
+ <antcall target="copyNative" />
+ <!--<antcall target="package-build"/>-->
+ <!--<antcall target="deploy"/>-->
+ </target>
+
+ <target name="extractJBoss">
+ <unzip src="${jboss.tarball}" dest="${jbossweb.src}/jboss" />
+ </target>
+
+ <target name="copyNative">
+<!-- <delete dir="${jbossweb.home}/bin/native"/>
+ <mkdir dir="${jbossweb.home}/bin/native"/>
+ <copy todir="${jbossweb.home}/bin/native">
+ <fileset dir="${nativelib}" includes="*.*"/>
+ </copy>-->
+ <delete>
+ <fileset dir="tarballs" includes="*.*"/>
+ </delete>
+ <exec dir="${checkout.dir}/jbossweb/src/share/native/build" executable="sh">
+ <arg value="./buildprep.sh"/>
+ </exec>
+ <copy todir="tarballs">
+ <fileset dir="${checkout.dir}/jbossweb/src/share/native/build" includes="tomcat-native*gz"/>
+ </copy>
+ </target>
+
+ <target name="deploy">
+ <!-- <war destfile="${deployto}" webxml="${tests.deployfrom}/WEB-INF/web.xml">
+ <fileset dir="${tests.deployfrom}"/>
+ </war>-->
+ <copy todir="${deployto}">
+ <fileset dir="${tests.deployfrom}"/>
+ </copy>
+ </target>
+
+ <pathconvert targetos="${target.os}" property="tcnative.tarball">
+ <path>
+ <fileset dir="tarballs" includes="tomcat-native*gz"/>
+ </path>
+ </pathconvert>
+<!--
+ <pathconvert targetos="${target.os}" property="apr.tarball">
+ <path>
+ <fileset dir="tarballs" includes="apr*bz2"/>
+ </path>
+ </pathconvert>
+-->
+
+ <target name="startJBossWeb">
+ <remoteant machine="${daemon.address}" port="${daemon.port}">
+ <sendfile file="${tcnative.tarball}" todir="tarballs"/>
+ <sendfile file="${output}/${platform}/${jbossweb.tarball}" todir="."/>
+ <runtarget target="startJBossWeb">
+ <property name="jbossweb.name" value="${jbossweb.name}"/>
+ <property name="jbossweb.tarball" value="${jbossweb.tarball}"/>
+ <property name="jbossweb.port" value="${jbossweb.port}"/>
+ <property name="jbossweb.address" value="${jbossweb.address}"/>
+ <property name="jbossweb.config" value="${jbossweb.config}"/>
+ <property name="java.home.dir" value="${java.home.dir}"/>
+ <property name="target.os" value="${target.os}"/>
+ <property name="platform" value="${platform}"/>
+ </runtarget>
+ </remoteant>
+ <waitfor>
+ <http url="http://${jbossweb.address}:${jbossweb.port}"/>
+ </waitfor>
+ <echo>JBossWeb started</echo>
+
+ <antcall target="runTests"/>
+<!-- <antcall target="runAutobench"/>
+ <antcall target="runBench2graph"/>-->
+ <antcall target="stopJBossWeb"/>
+ </target>
+
+ <target name="runBenchmark">
+
+ </target>
+ <target name="stopJBossWeb">
+ <remoteant machine="${daemon.address}" port="${daemon.port}">
+ <runtarget target="stopJBossWeb">
+ <property name="jbossweb.name" value="${jbossweb.name}"/>
+ <property name="jbossweb.port" value="${jbossweb.port}"/>
+ <property name="jbossweb.address" value="${jbossweb.address}"/>
+ <property name="platform" value="${platform}"/>
+ <property name="jbossweb.tarball" value="${jbossweb.tarball}"/>
+ </runtarget>
+ </remoteant>
+ </target>
+
+ <target name="sendJBossWeb">
+ <remoteant machine="${daemon.address}" port="${daemon.port}">
+ <runtarget target="sendJBossWeb">
+ <property name="jbossweb.name" value="${jbossweb.name}"/>
+ <property name="jbossweb.tarball" value="${jbossweb.tarball}"/>
+ <property name="platform" value="${platform}"/>
+ </runtarget>
+ </remoteant>
+ </target>
+
+ <target name="getJBossWeb">
+ <remoteant machine="${daemon.address}" port="${daemon.port}">
+ <runtarget target="packageJBossWeb">
+ <property name="jbossweb.name" value="${jbossweb.name}"/>
+ <property name="jbossweb.tarball" value="${jbossweb.tarball}"/>
+ </runtarget>
+ <getfile file="work/${jbossweb.tarball}" todir="${output}/${platform}"/>
+ </remoteant>
+ </target>
+
+ <target name="package">
+ <delete dir="${output}/${platform}"/>
+ <mkdir dir="${output}/${platform}"/>
+ <tar
+ basedir="${jbossweb.src}/output/"
+ destfile="${output}/${platform}/${jbossweb.tarball}"
+ longfile="gnu"
+ includes="${jbossweb.name}/**/*"
+ compression="gzip"/>
+ </target>
+
+
+ <!-- Run functional tests -->
+ <target name="runTests">
+ <property name="context.path" value="/tester"/>
+ <ant inheritall="false" dir="${tests.home}/bin" antfile="${tests.buildfile}" output="${output}/${tests.results}">
+ <property name="host" value="${jbossweb.address}"/>
+ <property name="port" value="${jbossweb.port}"/>
+ </ant>
+ </target>
+
+ <macrodef name="autobench">
+ <attribute name="file"/>
+ <sequential>
+ <exec executable="${autobench.executable}" dir=".">
+ <arg line="--single_host \
+ --host1 ${jbossweb.address} \
+ --port1 ${jbossweb.port} \
+ --uri1 ${autobench.pathtoraw}/@{file} \
+ --low_rate ${autobench.lowrate} \
+ --high_rate ${autobench.highrate} \
+ --rate_step ${autobench.ratestep} \
+ --num_call ${autobench.numcall} \
+ --num_conn ${autobench.numcall} \
+ --timeout ${autobench.timeout} \
+ --file ${autobench.output}/@{file}.tsv"/>
+ </exec>
+ </sequential>
+ </macrodef>
+
+ <target name="runAutobench">
+ <autobench file="raw1k.bin"/>
+ <autobench file="raw5k.bin"/>
+ <autobench file="raw10k.bin"/>
+ <autobench file="raw20k.bin"/>
+ <autobench file="raw50k.bin"/>
+ <autobench file="raw100k.bin"/>
+ <autobench file="raw200k.bin"/>
+ <autobench file="raw1m.bin"/>
+ <autobench file="raw4m.bin"/>
+ <autobench file="raw10m.bin"/>
+ </target>
+
+ <macrodef name="bench2graph">
+ <attribute name="src"/>
+ <attribute name="output"/>
+ <sequential>
+ <exec executable="${bench2graph.executable}" dir="." inputstring="@{src}">
+ <arg line="${autobench.output}/@{src} ${autobench.output}/@{output}"/>
+ </exec>
+ </sequential>
+ </macrodef>
+
+ <target name="runBench2graph">
+ <bench2graph src="raw1k.bin.tsv" output="raw1k.ps"/>
+ <bench2graph src="raw5k.bin.tsv" output="raw5k.ps"/>
+ <bench2graph src="raw10k.bin.tsv" output="raw10k.ps"/>
+ <bench2graph src="raw20k.bin.tsv" output="raw20k.ps"/>
+ <bench2graph src="raw50k.bin.tsv" output="raw50k.ps"/>
+ <bench2graph src="raw100k.bin.tsv" output="raw100k.ps"/>
+ <bench2graph src="raw200k.bin.tsv" output="raw200k.ps"/>
+ <bench2graph src="raw1m.bin.tsv" output="raw1m.ps"/>
+ <bench2graph src="raw4m.bin.tsv" output="raw4m.ps"/>
+ <bench2graph src="raw10m.bin.tsv" output="raw10m.ps"/>
+ </target>
+
+</project>
Added: trunk/tools/etc/cruisecontrol/jbossweb/daemon-windows.xml
===================================================================
--- trunk/tools/etc/cruisecontrol/jbossweb/daemon-windows.xml 2006-10-03 20:23:03 UTC (rev 57404)
+++ trunk/tools/etc/cruisecontrol/jbossweb/daemon-windows.xml 2006-10-03 20:23:18 UTC (rev 57405)
@@ -0,0 +1,186 @@
+<project>
+
+ <property name="address" value=""/>
+ <property name="port" value="7070"/>
+ <property name="cc.address" value="10.64.4.248"/>
+ <property name="cc.port" value="7070"/>
+ <property name="work" value="${basedir}/work"/>
+
+ <property name="resource" value="tarballs"/>
+ <property name="target.os" value="unix"/>
+
+ <property name="jbossweb.config" value="default"/>
+ <property name="deployto" value="${work}/${jbossweb.name}/server/${jbossweb.config}/deploy/jbossweb.sar/tester.war"/>
+ <property name="tests.deployfrom" value="tests/webapps/tester"/>
+
+ <property name="jbossweb-builder" value="../work/jbossweb-builder"/>
+ <property name="checkout.url" value="http://anonsvn.labs.jboss.com/labs/jbossweb/trunk"/>
+
+ <property environment="env"/>
+ <property name="java.home.dir" value="${env.JAVA_HOME}"/>
+
+ <pathconvert targetos="${target.os}" property="tcnative.tarball">
+ <path>
+ <fileset dir="${resource}" includes="tomcat-native*gz"/>
+ </path>
+ </pathconvert>
+
+ <property name="output" value="output"/>
+
+ <target name="buildNative">
+ <!--<untar src="${tcnative.tarball}" dest="${work}" compression="gzip"/>-->
+ <!-- <exec dir="${work}" executable="bash">
+ <arg value="-c"/>
+ <arg value="gunzip -c ${tcnative.tarball} | tar xvf -"/>
+ </exec>-->
+ <pathconvert targetos="${target.os}" property="tcnative.build">
+ <path>
+ <dirset dir="${work}" includes="tomcat-native*"/>
+ </path>
+ </pathconvert>
+ <echo message="${buildworld.command} ${buildsvc.command}"/>
+ <exec dir="${tcnative.build}" executable="cmd.exe">
+ <arg line="/c buildworld.bat ${buildworld.command} ${arch}"/>
+ </exec>
+ <!-- We don't need a buildsvc any more
+ <exec dir="${tcnative.build}" executable="cmd.exe">
+ <arg line="/c buildsvc.bat ${buildsvc.command} ${arch}"/>
+ </exec>
+ -->
+ </target>
+ <target name="copyNativeLib">
+ <pathconvert targetos="${target.os}" property="tcnative.build">
+ <path>
+ <dirset dir="${work}" includes="tomcat-native*"/>
+ </path>
+ </pathconvert>
+
+ <copy todir="${work}/${jbossweb.name}/bin/native" flatten="true">
+ <fileset dir="${work}/native-builds" includes="**/native/*.*"/>
+ </copy>
+ <copy todir="${work}/${jbossweb.name}/bin" flatten="true">
+ <fileset dir="${work}/native-builds" includes="**/bin/jbosssvc.exe"/>
+ </copy>
+ <!--<delete dir="tcnative.build"/>-->
+ <delete>
+ <fileset dir="${resource}" includes="*.*"/>
+ </delete>
+ </target>
+
+ <!-- Remote ant -->
+ <taskdef resource="org/jboss/ant/remoteant.properties">
+ <classpath>
+ <pathelement location="./lib/jboss-remoteant.jar" />
+ </classpath>
+ </taskdef>
+
+ <target name="daemon">
+ <antserver address="${address}" port="${port}"/>
+ </target>
+
+ <condition property="buildlib">
+ <not>
+ <os family="windows"/>
+ </not>
+ </condition>
+ <echo message="extractJBossWeb, buildNative, copyNativeLib, packageJBossWeb,sendJBossWeb, deployTester"/>
+ <target name="startJBossWeb" depends="prepareTomcatNative, extractJBossWeb, buildNative, copyNativeLib, packageJBossWeb, scpJBossWeb">
+ <property name="jbossweb.home" value="${work}/${jbossweb.name}"/>
+ <property name="jbossweb.native" value="${jbossweb.home}/bin/native" />
+ <property name="jbossweb.endorsed" value="${jbossweb.home}/lib/endorsed" />
+ <property name="jbossweb.address" value="${jbossweb.address}"/>
+ <property name="jbossweb.port" value="${jbossweb.port}"/>
+ <property name="jbossweb.config" value="${jbossweb.config}"/>
+ <property name="target.os" value="${target.os}"/>
+ <property name="jbossweb.tarball" value="${jbossweb.tarball}"/>
+ <property name="platform" value="${platform}"/>
+ <property name="buildworld.command" value="${buildworld.command}"/>
+ <property name="buildsvc.command" value="${buildsvc.command}"/>
+ <property name="arch" value="${arch}"/>
+<!--
+ <java jvm="${java.home.dir}/bin/java" fork="true" classpath="${java.home.dir}/lib/tools.jar:${jbossweb.home}/bin/run.jar"
+classname="org.jboss.Main">
+ <sysproperty key="java.library.path" value="${jbossweb.native}"/>
+ <sysproperty key="java.endorsed.dirs" value="${jbossweb.endorsed}"/>
+ <arg line="-c ${jbossweb.config}" />
+ <arg line="-b ${jbossweb.address}" />
+ <classpath>
+ <pathelement location="${jbossweb.home}/bin/native"/>
+ </classpath>
+ </java>
+ <echo>JBossWeb started</echo>-->
+ </target>
+
+ <target name="prepareTomcatNative">
+ <delete dir="${work}"/>
+ <mkdir dir="${work}"/>
+ <java classname="org.tmatesoft.svn.cli.SVN" dir="${work}" fork="true">
+ <arg value="co"/>
+ <arg value="${checkout.url}"/>
+ <arg value="jbossweb"/>
+ <classpath>
+ <pathelement location="lib/ganymed.jar" />
+ <pathelement location="lib/javasvn.jar" />
+ <pathelement location="lib/javasvn-cli.jar" />
+ </classpath>
+ </java>
+ <exec dir="${work}/jbossweb/src/share/native/build" executable="cmd.exe">
+ <arg line="/c buildprep.bat"/>
+ </exec>
+ <copy todir="${work}/tomcat-native-current">
+ <fileset dir="${work}/jbossweb/src/share/tomcat-native-current"/>
+ </copy>
+ </target>
+
+ <target name="extractJBossWeb">
+ <untar compression="gzip" src="${jbossweb.tarball}" dest="${work}" />
+<!-- <chmod dir="${work}/${jbossweb.name}/bin" perm="ugo+rx" includes="*.sh"/>-->
+ <delete file="${jbossweb.tarball}"/>
+ </target>
+
+
+
+ <target name="stopJBossWeb">
+ <property name="jbossweb.name" value="${jbossweb.name}"/>
+ <property name="jbossweb.port" value="${jbossweb.port}"/>
+ <property name="jbossweb.address" value="${jbossweb.address}"/>
+ <java dir="${work}/${jbossweb.name}/server/default/conf" classname="org.jboss.Shutdown" fork="true">
+ <arg line="--server=jnp://${jbossweb.address}:1099 --shutdown"/>
+ <classpath>
+ <pathelement path="${work}/${jbossweb.name}/bin/shutdown.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="deployTester">
+ <copy todir="${deployto}">
+ <fileset dir="${tests.deployfrom}"/>
+ </copy>
+ </target>
+ <target name="packageJBossWeb">
+ <zip destfile="${work}/${jbossweb.tarball}">
+ <zipfileset dir="${work}">
+ <include name="${jbossweb.name}/**/*"/>
+ <exclude name="${jbossweb.name}/bin/"/>
+ </zipfileset>
+ <zipfileset dir="${work}" filemode="755">
+ <include name="${jbossweb.name}/bin/*.sh"/>
+ </zipfileset>
+ <zipfileset dir="${work}">
+ <include name="${jbossweb.name}/bin/"/>
+ <exclude name="${jbossweb.name}/bin/*.sh"/>
+ </zipfileset>
+ </zip>
+ </target>
+
+ <target name="sendJBossWeb">
+ <remoteant machine="${cc.address}" port="${cc.port}">
+ <sendfile file="${work}/${jbossweb.tarball}" todir="${output}/${platform}/"/>
+ </remoteant>
+ </target>
+
+ <target name="scpJBossWeb">
+ <scp file="${work}/${jbossweb.tarball}" trust="yes"
+todir="cruisecontrol at dev03.atl.jboss.com:/home/cruisecontrol/work/jbossweb-builder/output/${platform}" keyfile="cc" passphrase="cruise"/>
+ </target>
+</project>
\ No newline at end of file
Added: trunk/tools/etc/cruisecontrol/jbossweb/daemon.xml
===================================================================
--- trunk/tools/etc/cruisecontrol/jbossweb/daemon.xml 2006-10-03 20:23:03 UTC (rev 57404)
+++ trunk/tools/etc/cruisecontrol/jbossweb/daemon.xml 2006-10-03 20:23:18 UTC (rev 57405)
@@ -0,0 +1,138 @@
+<project>
+
+ <property name="address" value=""/>
+ <property name="port" value="7070"/>
+ <property name="cc.address" value="10.64.12.240"/>
+ <property name="cc.port" value="7070"/>
+ <property name="work" value="${basedir}/work"/>
+
+ <property name="resource" value="tarballs"/>
+ <property name="target.os" value="unix"/>
+
+ <property name="jbossweb.config" value="default"/>
+ <property name="deployto" value="${work}/${jbossweb.name}/server/${jbossweb.config}/deploy/jbossweb.sar/tester.war"/>
+ <property name="tests.deployfrom" value="tests/webapps/tester"/>
+
+ <property name="jbossweb-builder" value="../work/jbossweb-builder"/>
+
+ <pathconvert targetos="${target.os}" property="tcnative.tarball">
+ <path>
+ <fileset dir="${resource}" includes="tomcat-native*gz"/>
+ </path>
+ </pathconvert>
+
+ <property name="output" value="output"/>
+
+ <target name="buildNative" if="buildlib">
+ <!--<untar src="${tcnative.tarball}" dest="${work}" compression="gzip"/>-->
+ <exec dir="${work}" executable="bash">
+ <arg value="-c"/>
+ <arg value="gunzip -c ${tcnative.tarball} | tar xvf -"/>
+ </exec>
+ <pathconvert targetos="${target.os}" property="tcnative.build">
+ <path>
+ <dirset dir="${work}" includes="tomcat-native*"/>
+ </path>
+ </pathconvert>
+ <exec dir="${tcnative.build}" executable="sh">
+ <arg value="./buildworld.sh"/>
+ </exec>
+ </target>
+
+ <target name="copyNativeLib" if="buildlib">
+ <pathconvert targetos="${target.os}" property="tcnative.build">
+ <path>
+ <dirset dir="${work}" includes="tomcat-native*"/>
+ </path>
+ </pathconvert>
+
+ <copy todir="${work}/${jbossweb.name}/bin/native" flatten="true">
+ <fileset dir="${work}/native-builds" includes="**/lib/*.*" excludes="**/lib/*.a,**/lib/*.la,**/lib/*.exp"/>
+ </copy>
+ <!--<delete dir="tcnative.build"/>-->
+ <delete>
+ <fileset dir="${resource}" includes="*.*"/>
+ </delete>
+ </target>
+
+ <!-- Remote ant -->
+ <taskdef resource="org/jboss/ant/remoteant.properties">
+ <classpath>
+ <pathelement location="./lib/jboss-remoteant.jar" />
+ </classpath>
+ </taskdef>
+
+ <target name="daemon">
+ <antserver address="${address}" port="${port}"/>
+ </target>
+
+ <condition property="buildlib">
+ <not>
+ <os family="windows"/>
+ </not>
+ </condition>
+
+ <target name="startJBossWeb" depends="extractJBossWeb, buildNative, copyNativeLib, packageJBossWeb, deployTester">
+ <property name="jbossweb.home" value="${work}/${jbossweb.name}"/>
+ <property name="jbossweb.native" value="${jbossweb.home}/bin/native" />
+ <property name="jbossweb.endorsed" value="${jbossweb.home}/lib/endorsed" />
+ <property name="jbossweb.address" value="${jbossweb.address}"/>
+ <property name="jbossweb.port" value="${jbossweb.port}"/>
+ <property name="jbossweb.config" value="${jbossweb.config}"/>
+ <property name="java.home.dir" value="${java.home.dir}"/>
+ <property name="target.os" value="${target.os}"/>
+ <property name="jbossweb.tarball" value="${jbossweb.tarball}"/>
+ <property name="platform" value="${platform}"/>
+
+ <java jvm="${java.home.dir}/bin/java" fork="true" spawn="true" classpath="${jbossweb.home}/lib/tools.jar:${jbossweb.home}/bin/run.jar" classname="org.jboss.Main">
+ <sysproperty key="java.library.path" value="${jbossweb.native}"/>
+ <sysproperty key="java.endorsed.dirs" value="${jbossweb.endorsed}"/>
+ <arg line="-c ${jbossweb.config}" />
+ <arg line="-b ${jbossweb.address}" />
+ </java>
+ <echo>JBossWeb started</echo>
+ </target>
+
+ <target name="extractJBossWeb">
+ <delete dir="${work}"/>
+ <mkdir dir="${work}"/>
+ <untar compression="gzip" src="${jbossweb.tarball}" dest="${work}" />
+<!-- <chmod dir="${work}/${jbossweb.name}/bin" perm="ugo+rx" includes="*.sh"/>-->
+ <delete file="${jbossweb.tarball}"/>
+ </target>
+
+ <target name="stopJBossWeb">
+ <property name="jbossweb.name" value="${jbossweb.name}"/>
+ <property name="jbossweb.port" value="${jbossweb.port}"/>
+ <property name="jbossweb.address" value="${jbossweb.address}"/>
+ <java dir="${work}/${jbossweb.name}/server/default/conf" classname="org.jboss.Shutdown" fork="true">
+ <arg line="--server=jnp://${jbossweb.address}:1099 --shutdown"/>
+ <classpath>
+ <pathelement path="${work}/${jbossweb.name}/bin/shutdown.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="deployTester">
+ <copy todir="${deployto}">
+ <fileset dir="${tests.deployfrom}"/>
+ </copy>
+ </target>
+
+ <target name="packageJBossWeb">
+ <tar destfile="${work}/${jbossweb.tarball}"
+ longfile="gnu"
+ compression="gzip">
+ <tarfileset dir="${work}" mode="755">
+ <include name="${jbossweb.name}/bin/*.sh"/>
+ </tarfileset>
+ <tarfileset dir="${work}">
+ <include name="${jbossweb.name}/**/*"/>
+ <exclude name="${jbossweb.name}/bin/*.sh"/>
+ </tarfileset>
+ </tar>
+ <delete file="${jbossweb-builder}/output/${platform}/${jbossweb.tarball}"/>
+ <copy file="${work}/${jbossweb.tarball}" todir="${jbossweb-builder}/output/${platform}"/>
+ </target>
+
+</project>
More information about the jboss-cvs-commits
mailing list