[jboss-cvs] CacheBenchFwk ...
Manik Surtani
manik at jboss.org
Thu May 10 18:26:21 EDT 2007
User: msurtani
Date: 07/05/10 18:26:21
Added: CacheBenchFwk build.xml build.properties .cvsignore
Log:
Added new (temp) build script and cvsignore
Revision Changes Path
1.1 date: 2007/05/10 22:26:21; author: msurtani; state: Exp;CacheBenchFwk/build.xml
Index: build.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="cachebenchfwk" default="help">
<property file="build.properties"/>
<!-- Uncomment the following property if no tests compilation is needed -->
<!--
<property name="skip.tests" value="true"/>
-->
<!-- Compiler options -->
<property name="compiler.debug" value="on"/>
<property name="compiler.generate.no.warnings" value="off"/>
<property name="compiler.args" value=""/>
<property name="compiler.max.memory" value="128m"/>
<patternset id="ignored.files">
<exclude name="**/CVS/**"/>
<exclude name="**/SCCS/**"/>
<exclude name="**/RCS/**"/>
<exclude name="**/rcs/**"/>
<exclude name="**/.DS_Store/**"/>
<exclude name="**/.svn/**"/>
<exclude name="**/.sbas/**"/>
<exclude name="**/.IJI.*/**"/>
</patternset>
<patternset id="compiler.resources">
<include name="**/?*.properties"/>
<include name="**/?*.xml"/>
<include name="**/?*.gif"/>
<include name="**/?*.png"/>
<include name="**/?*.jpeg"/>
<include name="**/?*.jpg"/>
<include name="**/?*.html"/>
<include name="**/?*.dtd"/>
<include name="**/?*.tld"/>
</patternset>
<!-- Modules -->
<!-- Module Framework -->
<dirname property="module.framework.basedir" file="${ant.file}"/>
<property name="compiler.args.framework" value="${compiler.args}"/>
<property name="framework.output.dir" value="${module.framework.basedir}/classes/production/Framework"/>
<property name="framework.testoutput.dir" value="${module.framework.basedir}/classes/test/Framework"/>
<path id="framework.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="framework.module.classpath">
<pathelement location="${module.framework.basedir}/lib/commons-logging.jar"/>
<pathelement location="${module.framework.basedir}/lib/log4j.jar"/>
<pathelement location="${module.framework.basedir}/lib/commons-digester.jar"/>
<pathelement location="${module.framework.basedir}/lib/commons-beanutils.jar"/>
<pathelement location="${module.framework.basedir}/lib/commons-math-1.0.jar"/>
<pathelement location="${module.framework.basedir}/conf"/>
</path>
<patternset id="excluded.from.module.framework">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.framework">
<patternset refid="excluded.from.module.framework"/>
</patternset>
<path id="framework.module.sourcepath">
<dirset dir="${module.framework.basedir}">
<include name="src"/>
</dirset>
</path>
<target name="help" description="Dumps usage information">
<echo>
This script has 2 purposes: to build AND run the CacheBenchFwk.
See /docs/ for more details.
Some useful targets:
help - this documentation
all - builds the entire project, including plugins for all
cache products in /cache-products/. Output classes
in /classes/.
runMaster - runs the CacheBenchFwk in "master" mode.
runSlave - runs the CacheBenchFwk in "slave" mode.
For either runMaster or runSlave, make sure you have looked at:
1) 'build.properties' and have set JVM params (such as heap size,
etc.) as necessary.
2) '/conf/cachebench.xml' to configure the tests you want run and
output file for reports.
3) '/conf/log4j.xml' for logging settings (make sure these aren't
very verbose as it can skew tests).
</echo>
</target>
<target name="compile.module.framework" depends="compile.module.framework.production,compile.module.framework.tests" description="Compile module Framework"/>
<target name="compile.module.framework.production" description="Compile module Framework; production classes">
<mkdir dir="${framework.output.dir}"/>
<javac destdir="${framework.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
<compilerarg line="${compiler.args.framework}"/>
<bootclasspath refid="framework.module.bootclasspath"/>
<classpath refid="framework.module.classpath"/>
<src refid="framework.module.sourcepath"/>
<patternset refid="excluded.from.compilation.framework"/>
</javac>
<copy todir="${framework.output.dir}">
<fileset dir="${module.framework.basedir}/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.framework.tests" depends="compile.module.framework.production" description="compile module Framework; test classes" unless="skip.tests"/>
<target name="clean.module.framework" description="cleanup module">
<delete dir="${framework.output.dir}"/>
<delete dir="${framework.testoutput.dir}"/>
</target>
<!-- Module EHCache124-plugin -->
<dirname property="module.ehcache124-plugin.basedir" file="${ant.file}"/>
<property name="compiler.args.ehcache124-plugin" value="${compiler.args}"/>
<property name="ehcache124-plugin.output.dir" value="${module.ehcache124-plugin.basedir}/classes/production/EHCache124-plugin"/>
<property name="ehcache124-plugin.testoutput.dir" value="${module.ehcache124-plugin.basedir}/classes/test/EHCache124-plugin"/>
<path id="ehcache124-plugin.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="ehcache124-plugin.module.classpath">
<pathelement location="${module.ehcache124-plugin.basedir}/cache-products/ehcache-1.2.4/lib/ehcache.jar"/>
<pathelement location="${module.ehcache124-plugin.basedir}/cache-products/ehcache-1.2.4/conf"/>
<pathelement location="${framework.output.dir}"/>
<pathelement location="${framework.testoutput.dir}"/>
<pathelement location="${module.ehcache124-plugin.basedir}/lib/commons-logging.jar"/>
<pathelement location="${module.ehcache124-plugin.basedir}/lib/log4j.jar"/>
<pathelement location="${module.ehcache124-plugin.basedir}/lib/commons-digester.jar"/>
<pathelement location="${module.ehcache124-plugin.basedir}/lib/commons-beanutils.jar"/>
<pathelement location="${module.ehcache124-plugin.basedir}/lib/commons-math-1.0.jar"/>
<pathelement location="${module.ehcache124-plugin.basedir}/conf"/>
</path>
<patternset id="excluded.from.module.ehcache124-plugin">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.ehcache124-plugin">
<patternset refid="excluded.from.module.ehcache124-plugin"/>
</patternset>
<path id="ehcache124-plugin.module.sourcepath">
<dirset dir="${module.ehcache124-plugin.basedir}/cache-products/ehcache-1.2.4">
<include name="src"/>
</dirset>
</path>
<target name="compile.module.ehcache124-plugin" depends="compile.module.ehcache124-plugin.production,compile.module.ehcache124-plugin.tests" description="Compile module EHCache124-plugin"/>
<target name="compile.module.ehcache124-plugin.production" depends="compile.module.framework" description="Compile module EHCache124-plugin; production classes">
<mkdir dir="${ehcache124-plugin.output.dir}"/>
<javac destdir="${ehcache124-plugin.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
<compilerarg line="${compiler.args.ehcache124-plugin}"/>
<bootclasspath refid="ehcache124-plugin.module.bootclasspath"/>
<classpath refid="ehcache124-plugin.module.classpath"/>
<src refid="ehcache124-plugin.module.sourcepath"/>
<patternset refid="excluded.from.compilation.ehcache124-plugin"/>
</javac>
<copy todir="${ehcache124-plugin.output.dir}">
<fileset dir="${module.ehcache124-plugin.basedir}/cache-products/ehcache-1.2.4/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.ehcache124-plugin.tests" depends="compile.module.ehcache124-plugin.production" description="compile module EHCache124-plugin; test classes" unless="skip.tests"/>
<target name="clean.module.ehcache124-plugin" description="cleanup module">
<delete dir="${ehcache124-plugin.output.dir}"/>
<delete dir="${ehcache124-plugin.testoutput.dir}"/>
</target>
<!-- Module JBossCache140-plugin -->
<dirname property="module.jbosscache140-plugin.basedir" file="${ant.file}"/>
<property name="compiler.args.jbosscache140-plugin" value="${compiler.args}"/>
<property name="jbosscache140-plugin.output.dir" value="${module.jbosscache140-plugin.basedir}/classes/production/JBossCache140-plugin"/>
<property name="jbosscache140-plugin.testoutput.dir" value="${module.jbosscache140-plugin.basedir}/classes/test/JBossCache140-plugin"/>
<path id="jbosscache140-plugin.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="jbosscache140-plugin.module.classpath">
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/lib/jboss-minimal.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/lib/jgroups.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/lib/jboss-common.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/lib/jboss-cache.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/lib/concurrent.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/lib/jboss-jmx.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/lib/jboss-system.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/lib/jboss-aop.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/lib/jboss-j2ee.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/lib/trove.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/lib/jboss-serialization.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/conf"/>
<pathelement location="${framework.output.dir}"/>
<pathelement location="${framework.testoutput.dir}"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/lib/commons-logging.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/lib/log4j.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/lib/commons-digester.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/lib/commons-beanutils.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/lib/commons-math-1.0.jar"/>
<pathelement location="${module.jbosscache140-plugin.basedir}/conf"/>
</path>
<patternset id="excluded.from.module.jbosscache140-plugin">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.jbosscache140-plugin">
<patternset refid="excluded.from.module.jbosscache140-plugin"/>
</patternset>
<path id="jbosscache140-plugin.module.sourcepath">
<dirset dir="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1">
<include name="src"/>
</dirset>
</path>
<target name="compile.module.jbosscache140-plugin" depends="compile.module.jbosscache140-plugin.production,compile.module.jbosscache140-plugin.tests" description="Compile module JBossCache140-plugin"/>
<target name="compile.module.jbosscache140-plugin.production" depends="compile.module.framework" description="Compile module JBossCache140-plugin; production classes">
<mkdir dir="${jbosscache140-plugin.output.dir}"/>
<javac destdir="${jbosscache140-plugin.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
<compilerarg line="${compiler.args.jbosscache140-plugin}"/>
<bootclasspath refid="jbosscache140-plugin.module.bootclasspath"/>
<classpath refid="jbosscache140-plugin.module.classpath"/>
<src refid="jbosscache140-plugin.module.sourcepath"/>
<patternset refid="excluded.from.compilation.jbosscache140-plugin"/>
</javac>
<copy todir="${jbosscache140-plugin.output.dir}">
<fileset dir="${module.jbosscache140-plugin.basedir}/cache-products/jbosscache-1.4.1/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.jbosscache140-plugin.tests" depends="compile.module.jbosscache140-plugin.production" description="compile module JBossCache140-plugin; test classes" unless="skip.tests"/>
<target name="clean.module.jbosscache140-plugin" description="cleanup module">
<delete dir="${jbosscache140-plugin.output.dir}"/>
<delete dir="${jbosscache140-plugin.testoutput.dir}"/>
</target>
<!-- Module JBossCache200-plugin -->
<dirname property="module.jbosscache200-plugin.basedir" file="${ant.file}"/>
<property name="compiler.args.jbosscache200-plugin" value="${compiler.args}"/>
<property name="jbosscache200-plugin.output.dir" value="${module.jbosscache200-plugin.basedir}/classes/production/JBossCache200-plugin"/>
<property name="jbosscache200-plugin.testoutput.dir" value="${module.jbosscache200-plugin.basedir}/classes/test/JBossCache200-plugin"/>
<path id="jbosscache200-plugin.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="jbosscache200-plugin.module.classpath">
<pathelement location="${module.jbosscache200-plugin.basedir}/cache-products/jbosscache-2.0.0/lib/jboss-serialization.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/cache-products/jbosscache-2.0.0/lib/jcip-annotations.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/cache-products/jbosscache-2.0.0/lib/trove.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/cache-products/jbosscache-2.0.0/lib/jboss-common-core.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/cache-products/jbosscache-2.0.0/lib/jbosscache.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/cache-products/jbosscache-2.0.0/lib/jgroups.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/cache-products/jbosscache-2.0.0/lib/jboss-j2ee.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/cache-products/jbosscache-2.0.0/conf"/>
<pathelement location="${framework.output.dir}"/>
<pathelement location="${framework.testoutput.dir}"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/lib/commons-logging.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/lib/log4j.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/lib/commons-digester.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/lib/commons-beanutils.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/lib/commons-math-1.0.jar"/>
<pathelement location="${module.jbosscache200-plugin.basedir}/conf"/>
</path>
<patternset id="excluded.from.module.jbosscache200-plugin">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.jbosscache200-plugin">
<patternset refid="excluded.from.module.jbosscache200-plugin"/>
</patternset>
<path id="jbosscache200-plugin.module.sourcepath">
<dirset dir="${module.jbosscache200-plugin.basedir}/cache-products/jbosscache-2.0.0">
<include name="src"/>
</dirset>
</path>
<target name="compile.module.jbosscache200-plugin" depends="compile.module.jbosscache200-plugin.production,compile.module.jbosscache200-plugin.tests" description="Compile module JBossCache200-plugin"/>
<target name="compile.module.jbosscache200-plugin.production" depends="compile.module.framework" description="Compile module JBossCache200-plugin; production classes">
<mkdir dir="${jbosscache200-plugin.output.dir}"/>
<javac destdir="${jbosscache200-plugin.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
<compilerarg line="${compiler.args.jbosscache200-plugin}"/>
<bootclasspath refid="jbosscache200-plugin.module.bootclasspath"/>
<classpath refid="jbosscache200-plugin.module.classpath"/>
<src refid="jbosscache200-plugin.module.sourcepath"/>
<patternset refid="excluded.from.compilation.jbosscache200-plugin"/>
</javac>
<copy todir="${jbosscache200-plugin.output.dir}">
<fileset dir="${module.jbosscache200-plugin.basedir}/cache-products/jbosscache-2.0.0/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.jbosscache200-plugin.tests" depends="compile.module.jbosscache200-plugin.production" description="compile module JBossCache200-plugin; test classes" unless="skip.tests"/>
<target name="clean.module.jbosscache200-plugin" description="cleanup module">
<delete dir="${jbosscache200-plugin.output.dir}"/>
<delete dir="${jbosscache200-plugin.testoutput.dir}"/>
</target>
<target name="init" description="Build initialization">
<!-- Perform any build initialization in this target -->
</target>
<target name="clean" depends="clean.module.framework, clean.module.ehcache124-plugin, clean.module.jbosscache140-plugin, clean.module.jbosscache200-plugin" description="cleanup all"/>
<target name="all" depends="init, clean, compile.module.framework, compile.module.ehcache124-plugin, compile.module.jbosscache140-plugin, compile.module.jbosscache200-plugin" description="build all"/>
<target name="runMaster">
<java classname="org.cachebench.CacheBenchMarker" fork="${jvm.fork}" maxmemory="${jvm.maxmem}">
<sysproperty key="bind.address" value="${bind.address}" />
<sysproperty key="java.net.preferIPv4Stack" value="${java.net.preferIPv4Stack}" />
<classpath id="" />
</java>
</target>
<target name="runSlave">
<java classname="org.cachebench.CacheBenchMarkerSlave" fork="${jvm.fork}" maxmemory="${jvm.maxmem}">
<sysproperty key="bind.address" value="${bind.address}" />
<sysproperty key="java.net.preferIPv4Stack" value="${java.net.preferIPv4Stack}" />
</java>
</target>
</project>
1.1 date: 2007/05/10 22:26:21; author: msurtani; state: Exp;CacheBenchFwk/build.properties
Index: build.properties
===================================================================
## Used when performing either runMaster or runSlave targets on the build script.
jvm.fork=true
jvm.maxmem=1024M
bind.address=127.0.0.1
java.net.preferIPv4Stack=true
1.1 date: 2007/05/10 22:26:21; author: msurtani; state: Exp;CacheBenchFwk/.cvsignore
Index: .cvsignore
===================================================================
cachebench.log
CacheBenchFwk.iws
CacheBenchFwk.ipr
Framework.iml
performance.csv
More information about the jboss-cvs-commits
mailing list