[jboss-cvs] CacheBenchFwk ...

Manik Surtani manik at jboss.org
Fri May 18 11:35:24 EDT 2007


  User: msurtani
  Date: 07/05/18 11:35:24

  Modified:    CacheBenchFwk  build.xml
  Log:
  Added Stuff
  
  Revision  Changes    Path
  1.6       +76 -3     CacheBenchFwk/build.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/CacheBenchFwk/build.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- build.xml	18 May 2007 14:32:08 -0000	1.5
  +++ build.xml	18 May 2007 15:35:24 -0000	1.6
  @@ -109,6 +109,7 @@
            -Dorg.cachebench.plugins.jbosscache2=true
            -Dorg.cachebench.pluins.ehcache=true
            -Dorg.cachebench.plugins.terracotta=true
  +         -Dorg.cachebench.plugins.coherence=true
   
         when running ant.  Note that only one can be set at any time.  
        </echo>
  @@ -210,6 +211,73 @@
     </target>
     
   
  +
  +   <!-- Module coherence-3.2.2 -->
  +
  +  <dirname property="module.coherence322-plugin.basedir" file="${ant.file}"/>
  +
  +
  +
  +  <property name="compiler.args.coherence322-plugin" value="${compiler.args}"/>
  +
  +  <property name="coherence322-plugin.output.dir" value="${module.coherence322-plugin.basedir}/classes/production/coherence-3.2.2"/>
  +  <property name="coherence322-plugin.testoutput.dir" value="${module.coherence322-plugin.basedir}/classes/test/coherence-3.2.2"/>
  +
  +  <path id="coherence322-plugin.module.bootclasspath">
  +    <!-- Paths to be included in compilation bootclasspath -->
  +  </path>
  +
  +  <path id="coherence322-plugin.module.classpath">
  +     <fileset dir="${module.coherence322-plugin.basedir}/cache-products/coherence-3.2.2/lib" includes="*.jar" />
  +     <pathelement location="${module.coherence322-plugin.basedir}/cache-products/coherence-3.2.2/conf"/>
  +     <pathelement location="${framework.output.dir}"/>
  +     <pathelement location="${framework.testoutput.dir}"/>
  +     <pathelement location="${coherence322-plugin.output.dir}" />
  +  </path>
  +
  +
  +  <patternset id="excluded.from.module.coherence322-plugin">
  +    <patternset refid="ignored.files"/>
  +  </patternset>
  +
  +  <patternset id="excluded.from.compilation.coherence322-plugin">
  +    <patternset refid="excluded.from.module.coherence322-plugin"/>
  +  </patternset>
  +
  +  <path id="coherence322-plugin.module.sourcepath">
  +    <dirset dir="${module.ehcache124-plugin.basedir}/cache-products/coherence-3.2.2">
  +      <include name="src"/>
  +    </dirset>
  +  </path>
  +
  +
  +  <target name="compile.module.coherence322-plugin" depends="compile.module.coherence322-plugin.production, compile.module.coherence322-plugin.tests" description="Compile module coherence322"/>
  +
  +  <target name="compile.module.coherence322-plugin.production" depends="compile.module.framework" description="Compile module coherence322; production classes">
  +    <mkdir dir="${coherence322-plugin.output.dir}"/>
  +    <javac destdir="${coherence322-plugin.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
  +      <compilerarg line="${compiler.args.coherence322-plugin}"/>
  +      <bootclasspath refid="coherence322-plugin.module.bootclasspath"/>
  +      <classpath refid="coherence322-plugin.module.classpath"/>
  +      <src refid="coherence322-plugin.module.sourcepath"/>
  +      <patternset refid="excluded.from.compilation.coherence322-plugin"/>
  +    </javac>
  +
  +    <copy todir="${coherence322-plugin.output.dir}">
  +      <fileset dir="${module.coherence322-plugin.basedir}/cache-products/coherence-3.2.2/src">
  +        <patternset refid="compiler.resources"/>
  +        <type type="file"/>
  +      </fileset>
  +    </copy>
  +  </target>
  +
  +  <target name="compile.module.coherence322-plugin.tests" depends="compile.module.coherence322-plugin.production" description="compile module coherence322; test classes" unless="skip.tests"/>
  +
  +  <target name="clean.module.coherence322-plugin" description="cleanup module">
  +    <delete dir="${coherence322-plugin.output.dir}"/>
  +    <delete dir="${coherence322-plugin.testoutput.dir}"/>
  +  </target>
  +
        <!-- Module terracotta-2.3.0 -->
   
     <dirname property="module.terracotta-plugin.basedir" file="${ant.file}"/>
  @@ -416,7 +484,7 @@
     
     <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, compile.module.terracotta-plugin" description="build all"/>
  +  <target name="all" depends="init, clean, compile.module.framework, compile.module.ehcache124-plugin, compile.module.coherence322-plugin,compile.module.jbosscache140-plugin, compile.module.jbosscache200-plugin, compile.module.terracotta-plugin" description="build all"/>
   
     <target name="setJBossCache140PluginCPRef" if="org.cachebench.plugins.jbosscache1" description="Sets the classpath ref for this plugin only if enabled via system property">
        <property name="plugin.classpath.ref" value="jbosscache140-plugin.module.classpath" />
  @@ -434,8 +502,12 @@
          <property name="plugin.classpath.ref" value="terracotta-plugin.module.classpath" />
       </target>
   
  +   <target name="setCoherence322PluginCPRef" if="org.cachebench.plugins.coherence" description="Sets the classpath ref for this plugin only if enabled via system property">
  +      <property name="plugin.classpath.ref" value="coherence322-plugin.module.classpath" />
  +   </target>
  +
   
  -  <target name="run" depends="setJBossCache140PluginCPRef, setJBossCache200PluginCPRef, setEHCache124PluginCPRef, setTerracotta230PluginCPRef">
  +  <target name="run" depends="setJBossCache140PluginCPRef, setJBossCache200PluginCPRef, setEHCache124PluginCPRef, setTerracotta230PluginCPRef, setCoherence322PluginCPRef">
        <!-- the classpaths here are a bit arse - you need to MANUALLY specify which plugins to add to the classpath
        to prevent JBoss Cache 1.x and 2.x tripping over each other. -->
   
  @@ -444,6 +516,7 @@
            org.cachebench.plugins.jbosscache2
            org.cachebench.pluins.ehcache
            org.cachebench.plugins.terracotta
  +         org.cachebench.plugins.coherence
            to be set to true if they need to be added to the classpath of the test.  -->
   
        <echo>Running class ${runtime.classname} with classpath ref ${plugin.classpath.ref}</echo>
  
  
  



More information about the jboss-cvs-commits mailing list