[jbosscache-commits] JBoss Cache SVN: r4250 - core/trunk.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Tue Aug 14 12:34:22 EDT 2007
Author: manik.surtani at jboss.com
Date: 2007-08-14 12:34:22 -0400 (Tue, 14 Aug 2007)
New Revision: 4250
Removed:
core/trunk/ant-dist/
core/trunk/build.bat
core/trunk/build.properties
core/trunk/build.sh
core/trunk/build.xml
core/trunk/build_reports.bat
core/trunk/deploy-maven.sh
Log:
Removed unnecessary ant related files
Deleted: core/trunk/build.bat
===================================================================
--- core/trunk/build.bat 2007-08-14 16:31:29 UTC (rev 4249)
+++ core/trunk/build.bat 2007-08-14 16:34:22 UTC (rev 4250)
@@ -1,4 +0,0 @@
- at echo off
-set ANT_HOME=.\ant-dist
-REM java -cp %ANT_HOME%/lib/ant.jar;%ANT_HOME%/lib/optional.jar;%ANT_HOME%/lib/junit.jar;%JAVA_HOME%/lib/tools.jar org.apache.tools.ant.Main %1 %2 %3 %4 %5
-%ANT_HOME%\bin\ant %1 %2 %3 %4 %5
Deleted: core/trunk/build.properties
===================================================================
--- core/trunk/build.properties 2007-08-14 16:31:29 UTC (rev 4249)
+++ core/trunk/build.properties 2007-08-14 16:34:22 UTC (rev 4250)
@@ -1,2 +0,0 @@
-# add your own properties in here
-bind.address=127.0.0.1
\ No newline at end of file
Deleted: core/trunk/build.sh
===================================================================
--- core/trunk/build.sh 2007-08-14 16:31:29 UTC (rev 4249)
+++ core/trunk/build.sh 2007-08-14 16:34:22 UTC (rev 4250)
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-CACHE_HOME=`dirname $0`
-ANT_HOME=$CACHE_HOME/ant-dist
-
-#CLASSPATH=$ANT_HOME/lib/ant.jar:$ANT_HOME/lib/optional.jar:$ANT_HOME/lib/junit.jar:$JAVA_HOME/lib/tools.jar
-
-# OS specific support (must be 'true' or 'false').
-#cygwin=false;
-#case "`uname`" in
-# CYGWIN*)
-# cygwin=true
-# ;;
-#esac
-
-#if [ $cygwin = "true" ]; then
-# Note that JAVA_HOME evn needs to be set under cygwin explictly,
-# /cygdrive/e:/j2sdkxxx, for this to work correctly. Otherwise,
-# javac can't be located correctly.
-# CP=`cygpath -wp $CLASSPATH`
-#else
-# CP=$CLASSPATH
-#fi
-
-#java -cp $CP org.apache.tools.ant.Main "$@"
-$ANT_HOME/bin/ant "$@"
-
Deleted: core/trunk/build.xml
===================================================================
--- core/trunk/build.xml 2007-08-14 16:31:29 UTC (rev 4249)
+++ core/trunk/build.xml 2007-08-14 16:34:22 UTC (rev 4250)
@@ -1,1652 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- $Id$ -->
-
-<project default="compile" name="JBossCache">
-
- <property name="module.name" value="JBossCache"/>
- <!--We now requires version to have no white space since Ant+JBossAop will sometime choke. -->
- <property name="module.version" value="2.0.0.GA"/>
- <property name="implementation.url" value="http://www.jboss.com/products/jbosscache"/>
- <property file="build.properties"/>
- <property name="root.dir" value="${basedir}"/>
- <property name="doc.dir" value="${root.dir}/docs"/>
- <property name="src.dir" value="${root.dir}/src"/>
- <property name="tests.dir" value="${root.dir}/tests"/>
- <property name="examples.dir" value="${root.dir}/examples"/>
- <property name="functional.tests.dir" value="${tests.dir}/functional"/>
- <property name="stress.tests.dir" value="${tests.dir}/stress"/>
- <property name="interop.tests.dir" value="${tests.dir}/interop"/>
- <property name="clover.dir" value="${root.dir}/clover"/>
- <property name="perf.tests.dir" value="${tests.dir}/perf"/>
- <property name="interop.tests.dir" value="${tests.dir}/interop"/>
- <property name="compat.tests.dir" value="${tests.dir}/compat"/>
- <property name="etc.dir" value="${root.dir}/etc"/>
- <property name="dependencies" value="dependencies.xml"/>
- <property name="resources.dir" value="${root.dir}/src/resources"/>
- <property name="tmp.dir" value="${root.dir}/tmp"/>
- <property name="output.dir" value="${root.dir}/output"/>
- <property name="output.etc.dir" value="${output.dir}/etc"/>
- <property name="output.interop.dir" value="${output.dir}/interop"/>
- <property name="compile.dir" value="${output.dir}/classes"/>
- <property name="compiletest.dir" value="${output.dir}/test-classes"/>
- <property name="retro.compile.dir" value="${output.dir}/classes14"/>
- <property name="retro.compiletest.dir" value="${output.dir}/test-classes14"/>
- <property name="lib.dir" value="${root.dir}/lib"/>
- <property name="berkeleydb.lib.dir" value="${lib.dir}/berkeleydb"/>
- <property name="retro.lib.dir" value="${lib.dir}/retro"/>
- <property name="dist.dir" value="${root.dir}/dist"/>
- <property name="dist.lib" value="${dist.dir}/lib"/>
- <property name="build.reports" value="${output.dir}/reports"/>
- <property name="build.reports.html" value="${build.reports}/html"/>
- <property name="build.lib" value="${output.dir}/lib"/>
- <property name="build.api" value="${output.dir}/api"/>
- <property name="build.etc" value="${root.dir}/etc"/>
- <property name="javadoc.packages" value="org.jboss.cache.*"/>
- <property name="junit.timeout" value="500000"/>
- <property name="junit.timeout.stresstest" value="6000000"/>
- <property name="junit.timeout.performance" value="60000"/>
- <property name="junit.timeout.compat" value="300000"/>
- <property name="junit.batchtest.todir" value="${build.reports}"/>
- <property name="junit.jvm.options" value="-Ddummy"/>
- <property name="ant.dir" value="${root.dir}/ant-dist"/>
- <property name="manifest.file" value="${dist.lib}/default.mf"/>
- <property name="migration.dir" value="${root.dir}/migration"/>
- <property name="migration.src.dir" value="${migration.dir}/src"/>
- <property name="migration.lib.dir" value="${migration.dir}/lib"/>
- <property name="migration.output.dir" value="${migration.dir}/output"/>
- <property name="migration.compile.dir" value="${migration.output.dir}/classes"/>
- <property name="migration.compiletest.dir" value="${migration.output.dir}/test-classes"/>
- <property name="migration.examples.dir" value="${migration.dir}/examples"/>
- <property name="migration.jar.name" value="jbosscache-cacheloader-migration.jar"/>
- <property name="migration.manifest.file" value="${dist.lib}/migration.default.mf"/>
- <property name="migration.functional.tests.dir" value="${migration.dir}/tests/functional"/>
- <property name="migration.perf.tests.dir" value="${migration.dir}/tests/perf"/>
- <property name="cache.db.dir" value="${root.dir}/jbossdb"/>
- <property name="cache.db.1x.dir" value="${cache.db.dir}-1x"/>
- <!-- -->
- <condition property="ENABLE_COMPAT_TESTS">
- <or>
- <equals arg1="${ant.java.version}" arg2="1.5"/>
- <equals arg1="${ant.java.version}" arg2="1.4"/>
- </or>
- </condition>
- <property name="src.dir.50" value="${root.dir}/src"/>
- <property name="tests.dir.50" value="${root.dir}/tests"/>
- <property name="output.resources.dir" value="${output.dir}/resources"/>
- <property name="functional.tests.dir.50" value="${tests.dir.50}/functional"/>
- <property name="perf.tests.dir.50" value="${tests.dir.50}/perf"/>
- <property name="resources.dir.50" value="${src.dir.50}/resources"/>
- <property name="deprecation" value="off"/>
-
-
- <!-- Tests that are currently broken - "known failures" to be excluded when running all-unittests-cc -->
- <!--
- Only one test per line. Please add a comment with a reference to a JIRA task about this failure.
- -->
- <patternset id="known.failures">
- <!-- See JBCACHE-858 -->
- <exclude name="org/jboss/cache/pojo/collection/ReplicatedSyncSetTest*"/>
-
- <!-- See JBCACHE-315 -->
- <exclude name="org/jboss/cache/statetransfer/StateTransferUnderLoadTest*"/>
- <!-- See JBCACHE-641 -->
- <exclude name="org/jboss/cache/eviction/ReplicatedLRUPolicyTest*"/>
- <!-- See JBCACHE-407 -->
- <exclude name="org/jboss/cache/transaction/IsolationLevelReadCommittedNodeCreationRollbackTest*"/>
- <!-- See JBCACHE-462 -->
- <exclude name="org/jboss/cache/aop/eviction/AopLRUPolicyUpdateEvictionTest*"/>
- <!-- See JBCACHE-461 -->
- <exclude name="org/jboss/cache/lock/ReentrantWriterPreference2Readers1WriterLockTest*"/>
- <!-- See JBCACHE-479 -->
- <exclude name="org/jboss/cache/aop/loader/FileCacheLoaderAopCollectionsTest*"/>
- <!-- See JBCACHE-477 -->
- <exclude name="org/jboss/cache/aop/collection/CachedListAopTxTest*"/>
- <!-- See JBCACHE-315 -->
- <exclude name="org/jboss/cache/statetransfer/ForcedStateTransferTest*"/>
- <!-- See JBCACHE-654 -->
- <exclude name="org/jboss/cache/aop/memory/ReplicatedAopTest*"/>
- <!-- See JBCACHE-1035 -->
- <exclude name="org/jboss/cache/pojo/statetransfer/StateTransfer200AopTest*"/>
- <!-- manual tests - tests that are not supposed to be run by CC for whatever reason -->
- <exclude name="**/manualtests/**"/>
- </patternset>
-
- <patternset id="junit.excludes">
- <!-- ALWAYS leave this empty - it is populated later on depending on type of test run -->
- </patternset>
-
- <path id="library.classpath">
- <fileset dir="${lib.dir}">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${berkeleydb.lib.dir}">
- <include name="*.jar"/>
- </fileset>
- <pathelement path="${ant.dir}/lib/clover.jar"/>
- </path>
-
- <path id="retro.library.classpath">
- <fileset dir="${retro.lib.dir}">
- <include name="*.jar"/>
- </fileset>
- <!-- ant libs are needed as well -->
- <fileset dir="${ant.dir}/lib">
- <include name="*.jar"/>
- </fileset>
- </path>
-
- <path id="migration.library.classpath">
- <fileset dir="${retro.lib.dir}">
- <include name="jboss-logging-spi.jar"/>
- </fileset>
- <fileset dir="${migration.lib.dir}">
- <include name="*.jar"/>
- </fileset>
- </path>
-
- <path id="output.classpath">
- <pathelement location="${compile.dir}"/>
- <pathelement location="${output.etc.dir}"/>
- <pathelement location="${compiletest.dir}"/>
- <pathelement location="${output.resources.dir}"/>
- <pathelement location="${functional.tests.dir}"/>
- </path>
-
- <path id="retro.output.classpath">
- <pathelement location="${retro.compile.dir}"/>
- <pathelement location="${output.etc.dir}"/>
- <pathelement location="${retro.compiletest.dir}"/>
- <pathelement location="${output.resources.dir}"/>
- <fileset dir="${retro.lib.dir}">
- <include name="*.jar"/>
- </fileset>
- </path>
-
- <path id="migration.output.classpath">
- <pathelement location="${migration.compile.dir}"/>
- <pathelement location="${migration.compiletest.dir}"/>
- <pathelement location="${output.etc.dir}"/>
- </path>
-
- <path id="previous.version.classpath">
- <pathelement location="${output.etc.dir}"/>
- <pathelement location="${compiletest.dir}"/>
- <fileset dir="${lib.dir}">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${output.interop.dir}">
- <include name="*.jar"/>
- </fileset>
- </path>
-
- <path id="current.version.classpath">
- <fileset dir="${lib.dir}">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${berkeleydb.lib.dir}">
- <include name="*.jar"/>
- </fileset>
- <pathelement location="${compile.dir}"/>
- <pathelement location="${output.etc.dir}"/>
- <pathelement location="${compiletest.dir}"/>
- </path>
-
- <path id="migration.classpath">
- <fileset dir="${lib.dir}">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${migration.lib.dir}">
- <include name="*.jar"/>
- </fileset>
- <pathelement location="${compile.dir}"/>
- <pathelement location="${migration.compile.dir}"/>
- </path>
-
- <!-- ================================================================== -->
- <!-- Compile -->
- <!-- ================================================================== -->
- <target name="compile" depends="compile-cache, compile-pojocache, compile-migration"
- description="Compiles all Java files">
- </target>
-
- <target name="compile-cache" description="Compiles all Java files">
-
- <mkdir dir="${compile.dir}"/>
- <mkdir dir="${compiletest.dir}"/>
-
- <!-- compile JBossCache Java code -->
- <javac destdir="${compile.dir}"
- debug="on"
- deprecation="${deprecation}"
- optimize="off"
- includes="**/*.java"
- target="1.5"
- source="1.5"
- failonerror="true">
- <src path="${src.dir}"/>
- <classpath refid="library.classpath"/>
- <exclude name="**/obsolete/**"/>
- <exclude name="**/*1_4*"/>
- </javac>
-
- <!-- compile test classes -->
- <javac destdir="${compiletest.dir}"
- debug="on"
- deprecation="${deprecation}"
- optimize="off"
- includes="**/*.java"
- target="1.5"
- source="1.5"
- failonerror="true">
- <src path="${functional.tests.dir}"/>
- <src path="${stress.tests.dir}"/>
- <src path="${perf.tests.dir}"/>
- <src path="${interop.tests.dir}"/>
- <src path="${compat.tests.dir}"/>
- <classpath path="${compile.dir}"/>
- <classpath refid="library.classpath"/>
- <exclude name="**/obsolete/**"/>
- <exclude name="**/*1_4*"/>
- <exclude name="**/aop/**"/>
- </javac>
-
- <copy todir="${output.etc.dir}" filtering="no" overwrite="yes">
- <fileset dir="${etc.dir}">
- <include name="META-INF/*.xml"/>
- <include name="log4j.xml"/>
- <!-- The following copies the cache-jdbc.properties file for
- running jdbc cache loader test against different DBMS -->
- <include name="cache-jdbc.properties"/>
- </fileset>
- </copy>
-
- <copy todir="${output.resources.dir}" filtering="no" overwrite="yes">
- <fileset dir="${resources.dir}">
- <include name="*.xml"/>
- </fileset>
- </copy>
- </target>
-
- <target name="compile-pojocache" depends="aopc-pojocache">
- </target>
-
- <target name="aopc-pojocache" depends="compile-pojocache-1"
- description="Precompile aop classes">
- <taskdef name="aopc" classname="org.jboss.aop.ant.AopC" classpathref="library.classpath"/>
- <aopc compilerclasspathref="library.classpath" verbose="false">
- <src path="${compile.dir}"/>
- <include name="org/jboss/cache/pojo/impl/*.class"/>
- <include name="org/jboss/cache/pojo/collection/*.class"/>
- <aoppath path="${output.resources.dir}/pojocache-aop.xml"/>
- <classpath>
- <path refid="output.classpath"/>
- </classpath>
- </aopc>
- </target>
-
- <target name="compile-pojocache-1">
- <mkdir dir="${compile.dir}"/>
- <mkdir dir="${compiletest.dir}"/>
-
- <javac destdir="${compile.dir}"
- optimize="off"
- target="1.5"
- source="1.5"
- debug="on"
- deprecation="${deprecation}"
- failonerror="true">
- <src path="${src.dir.50}"/>
- <classpath refid="library.classpath"/>
- <classpath path="${compile.dir}"/>
- </javac>
- <!-- compile test classes -->
- <javac destdir="${compiletest.dir}"
- debug="on"
- deprecation="${deprecation}"
- optimize="off"
- includes="**/*.java"
- target="1.5"
- source="1.5"
- failonerror="true">
- <src path="${functional.tests.dir.50}"/>
- <!-- src path="${perf.tests.dir.50}"/ -->
- <classpath path="${compile.dir}"/>
- <classpath refid="library.classpath"/>
- <exclude name="**/aop/**"/>
- </javac>
- </target>
-
- <target name="jbossretro" depends="compile-cache"
- description="Weave the classes compiled in the compile-cache target for JDK 1.4.0 compatibility">
-
- <taskdef name="retro" classname="org.jboss.ant.tasks.retro.Retro">
- <classpath refid="retro.library.classpath"/>
- </taskdef>
-
- <mkdir dir="${retro.compile.dir}"/>
-
- <echo>Retroweaving core source code</echo>
- <retro destdir="${retro.compile.dir}">
- <classpath refid="library.classpath"/>
- <classpath refid="retro.library.classpath"/>
- <classpath path="${compile.dir}"/>
- <src path="${compile.dir}"/>
- <exclude name="**/obsolete/**"/>
- <exclude name="**/pojo/**"/>
- </retro>
-
- <!-- now the tests -->
- <echo>Retroweaving test classes</echo>
- <mkdir dir="${retro.compiletest.dir}"/>
- <retro destdir="${retro.compiletest.dir}">
- <classpath refid="library.classpath"/>
- <classpath refid="retro.library.classpath"/>
- <classpath path="${retro.compile.dir}"/>
- <classpath path="${compiletest.dir}"/>
- <src path="${compiletest.dir}"/>
- <exclude name="**/obsolete/**"/>
- <exclude name="**/pojo/**"/>
- </retro>
-
- </target>
-
- <target name="compile-migration" description="Compiles migration Java files">
- <mkdir dir="${migration.compile.dir}"/>
- <mkdir dir="${migration.compiletest.dir}"/>
-
- <!-- compile cache loader migration Java code -->
- <javac destdir="${migration.compile.dir}"
- debug="on"
- deprecation="${deprecation}"
- optimize="off"
- includes="**/*.java"
- target="1.5"
- source="1.5"
- failonerror="true">
- <src path="${migration.src.dir}"/>
- <classpath refid="migration.classpath"/>
- </javac>
-
- <!-- compile cache loader migration test classes -->
- <javac destdir="${migration.compiletest.dir}"
- debug="on"
- deprecation="${deprecation}"
- optimize="off"
- includes="**/*.java"
- target="1.5"
- source="1.5"
- failonerror="true">
- <src path="${migration.functional.tests.dir}"/>
- <classpath refid="migration.classpath"/>
- <classpath refid="library.classpath"/>
- <classpath refid="migration.library.classpath"/>
- <classpath path="${compile.dir}"/>
- <classpath path="${compiletest.dir}"/>
- <classpath path="${migration.compile.dir}"/>
- </javac>
-
- </target>
-
- <!-- ================================================================== -->
- <!-- Create jbosscache.jar -->
- <!-- ================================================================== -->
- <target name="jar" description="Builds jbosscache.jar"
- depends="compile, manifest, jar-cache, jar-pojocache, jar-migration">
- </target>
-
- <target name="jar-retro" description="Builds JDK 1.4.0-compatible jbosscache.jar"
- depends="jbossretro, manifest-retro">
- <mkdir dir="${dist.lib}"/>
- <jar jarfile="${dist.lib}/jbosscache-JDK140.jar" manifest="${manifest.file}">
- <fileset dir="${retro.compile.dir}">
- <include name="org/jboss/cache/**"/>
- <exclude name="org/jboss/cache/aop/**"/>
- <exclude name="org/jboss/cache/pojo/**"/>
- </fileset>
- <fileset dir="${etc.dir}">
- <include name="${dependencies}"/>
- </fileset>
- </jar>
- <delete file="${manifest.file}"/>
- </target>
-
- <target name="jar-cache" depends="compile-cache, manifest" description="Builds core jbosscache.jar">
- <mkdir dir="${dist.lib}"/>
- <jar jarfile="${dist.lib}/jbosscache.jar" manifest="${manifest.file}">
- <fileset dir="${compile.dir}">
- <include name="org/jboss/cache/**"/>
- <exclude name="org/jboss/cache/aop/**"/>
- <exclude name="org/jboss/cache/pojo/**"/>
- </fileset>
- <fileset dir="${etc.dir}">
- <include name="${dependencies}"/>
- </fileset>
- </jar>
- <delete file="${manifest.file}"/>
- </target>
-
- <target name="jar-pojocache" depends="compile-pojocache, manifest-pc" description="Builds pojocache.jar">
- <mkdir dir="${dist.lib}"/>
- <jar jarfile="${dist.lib}/pojocache.jar" manifest="${manifest.file}">
- <fileset dir="${compile.dir}">
- <include name="org/jboss/cache/pojo/**"/>
- </fileset>
- <fileset dir="${etc.dir}">
- <include name="${dependencies}"/>
- </fileset>
- </jar>
- <delete file="${manifest.file}"/>
- </target>
-
- <target name="jar-migration" depends="compile-cache, compile-migration, manifest-migration"
- description="Builds cache loader migration library, ${migration.jar.name}">
- <mkdir dir="${dist.lib}"/>
- <jar jarfile="${dist.lib}/${migration.jar.name}" manifest="${manifest.file}">
- <fileset dir="${migration.compile.dir}">
- <include name="org/jboss/cache/**"/>
- </fileset>
- <fileset dir="${etc.dir}">
- <include name="${dependencies}"/>
- </fileset>
- <zipfileset src="${migration.lib.dir}/jboss-minimal.jar"/>
- <zipfileset src="${retro.lib.dir}/jboss-logging-spi.jar"/>
- </jar>
- <delete file="${manifest.file}"/>
- </target>
-
- <target name="manifest">
- <tstamp/>
- <mkdir dir="${dist.lib}"/>
- <manifest file="${manifest.file}">
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="Created-On" value="${TODAY}"/>
- <attribute name="Main-Class" value="org.jboss.cache.Version"/>
- <attribute name="Specification-Title" value="JBossCache"/>
- <attribute name="Specification-Version" value="${module.version}"/>
- <attribute name="Specification-Vendor" value="JBoss Inc."/>
- <attribute name="Implementation-Title" value="${module.name}"/>
- <attribute name="Implementation-Version" value="${module.version}"/>
- <attribute name="Implementation-Vendor" value="JBoss Inc."/>
- </manifest>
- </target>
-
- <target name="manifest-retro">
- <tstamp/>
- <mkdir dir="${dist.lib}"/>
- <manifest file="${manifest.file}">
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="Created-On" value="${TODAY}"/>
- <attribute name="Main-Class" value="org.jboss.cache.Version$Retro"/>
- <attribute name="Specification-Title" value="JBossCache"/>
- <attribute name="Specification-Version" value="${module.version}"/>
- <attribute name="Specification-Vendor" value="JBoss Inc."/>
- <attribute name="Implementation-Title" value="${module.name}"/>
- <attribute name="Implementation-Version" value="${module.version}"/>
- <attribute name="Implementation-Vendor" value="JBoss Inc."/>
- </manifest>
- </target>
-
- <target name="manifest-pc">
- <tstamp/>
- <mkdir dir="${dist.lib}"/>
- <manifest file="${manifest.file}">
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="Created-On" value="${TODAY}"/>
- <!--attribute name="Main-Class" value="org.jboss.cache.pojo.Version"/-->
- <attribute name="Specification-Title" value="JBossCache-pojo"/>
- <attribute name="Specification-Version" value="${module.version}"/>
- <attribute name="Specification-Vendor" value="JBoss Inc."/>
- <attribute name="Implementation-Title" value="${module.name}"/>
- <attribute name="Implementation-Version" value="${module.version}"/>
- <attribute name="Implementation-Vendor" value="JBoss Inc."/>
- </manifest>
- </target>
-
- <target name="manifest-migration">
- <tstamp/>
- <mkdir dir="${dist.lib}"/>
- <manifest file="${manifest.file}">
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="Created-On" value="${TODAY}"/>
- <!-- attribute name="Main-Class" value="org.jboss.cache.Version"/ -->
- <attribute name="Specification-Title" value="JBossCache-Cacheloader-Migration"/>
- <attribute name="Specification-Version" value="${module.version}"/>
- <attribute name="Specification-Vendor" value="JBoss Inc."/>
- <attribute name="Implementation-Title" value="${module.name}"/>
- <attribute name="Implementation-Version" value="${module.version}"/>
- <attribute name="Implementation-Vendor" value="JBoss Inc."/>
- <attribute name="Class-Path" value="jboss-minimal.jar"/>
- </manifest>
- </target>
-
- <!-- ================================================================== -->
- <!-- Documentation -->
- <!-- ================================================================== -->
- <target name="javadocs" description="Create Javadoc documentation in the ./doc/javadoc directory">
- <javadoc packagenames="${javadoc.packages}"
- destdir="${build.api}"
- classpathref="library.classpath"
- author="true"
- version="true"
- use="true"
- windowtitle="${module.name} - ${module.version} API"
- useexternalfile="yes">
-
- <doctitle>${module.name} - ${module.version} API</doctitle>
- <bottom>
- <![CDATA[<p align="center><i><b>Copyright © 1998-2007 Red Hat Inc.</b> All Rights Reserved.</i></p>]]></bottom>
- <fileset dir="${src.dir}" defaultexcludes="yes">
- <include name="org/jboss/**"/>
- </fileset>
-
- <fileset dir="${src.dir.50}" defaultexcludes="yes">
- <include name="org/jboss/**"/>
- </fileset>
-
- </javadoc>
- </target>
-
- <target name="version" description="Prints version of JBossCache">
- <java classname="org.jboss.cache.Version" classpath="${compile.dir}"/>
- </target>
-
-
- <!-- ================================================================== -->
- <!-- Cleaning -->
- <!-- ================================================================== -->
- <target name="clean">
- <delete dir="${output.dir}"/>
- <delete dir="${build.lib}"/>
- <delete dir="${build.api}"/>
- <delete dir="${build.reports}"/>
- <delete dir="${dist.dir}"/>
- <delete dir="${tmp.dir}"/>
-
- <delete dir="${migration.output.dir}"/>
- <delete dir="${cache.db.dir}"/>
- <delete dir="${cache.db.1x.dir}"/>
- <delete dir="${root.dir}/clover"/>
- <delete>
- <fileset dir="${basedir}" defaultexcludes="no">
- <include name="**/*~"/>
- <include name="derby.*"/>
- </fileset>
- </delete>
- </target>
-
- <target name="clean-tests">
- <delete dir="${output.dir}/tests-classes"/>
- <delete dir="${output.dir}/tests-classes-50"/>
- <delete dir="${migration.compiletest.dir}"/>
- </target>
-
-
- <!-- ================================================================== -->
- <!-- Tests -->
- <!-- ================================================================== -->
-
- <target name="one-test-retro" depends="unittests-init" description="Runs a single, retroweaved test under JDK 1.4">
- <property name="jgroups.stack" value="udp"/>
- <echo>Running ${test} using ${jgroups.stack} jgroups stack</echo>
- <junit printsummary="yes" timeout="${junit.timeout.stresstest}" fork="yes">
- <sysproperty key="log4j.configuration" value="file:${etc.dir}/log4j.xml"/>
- <classpath refid="library.classpath"/>
- <classpath refid="retro.library.classpath"/>
- <classpath refid="retro.output.classpath"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <test name="${test}" todir="${build.reports}"/>
- <jvmarg value="-Djgroups.stack=${jgroups.stack}"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <jvmarg value="-Dlib.dir=${lib.dir}"/>
- </junit>
- </target>
-
- <target name="one-test" depends="compile,unittests-init" description="Runs a single unit test">
- <property name="jgroups.stack" value="udp"/>
- <echo>Running ${test} using ${jgroups.stack} jgroups stack</echo>
- <junit printsummary="yes" timeout="${junit.timeout.stresstest}" fork="yes">
- <sysproperty key="log4j.configuration" value="file:${etc.dir}/log4j.xml"/>
- <classpath refid="library.classpath"/>
- <classpath refid="output.classpath"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <test name="${test}" todir="${build.reports}"/>
- <jvmarg value="-Djgroups.stack=${jgroups.stack}"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <jvmarg value="-Dlib.dir=${lib.dir}"/>
- </junit>
- </target>
-
- <target name="one-test-pkg" depends="compile,unittests-init" description="Runs a single unit test package">
-
- <property name="jgroups.stack" value="udp"/>
- <junit printsummary="yes" timeout="${junit.timeout.stresstest}" fork="yes" maxmemory="512m">
- <sysproperty key="log4j.configuration" value="file:${etc.dir}/log4j.xml"/>
- <classpath refid="library.classpath"/>
- <classpath refid="output.classpath"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <jvmarg value="-Dtest.jar.dir=${output.dir}"/>
- <jvmarg value="-Dlib.dir=${lib.dir}"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${functional.tests.dir}">
- <include name="${pkg}/*Test.*"/>
- <exclude name="**/aop/**/*"/>
- <exclude name="**/pojo/**/*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="one-test-aop" description="deprecated">
- <echo>
- This target is deprecated and will be removed in 2.0.0.GA. Please use "one-test-pojocache" instead.
- </echo>
- </target>
-
- <target name="one-test-aop50" description="deprecated">
- <echo>
- This target is deprecated and will be removed in 2.0.0.GA. Please use "one-test-pojocache" instead.
- </echo>
- </target>
-
-
- <target name="one-test-pojocache" depends="compile, unittests-init" description="Runs a single unit test">
- <property name="jgroups.stack" value="udp"/>
- <echo>Running pojo test ${test} using ${jgroups.stack} jgroups stack</echo>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes">
- <!-- start of Optimizeit support
- sample script
- #!/bin/sh
- # sample opt.sh script
- # usage: ./opt.sh -Dtest=org.jboss.cache.aop.LocalPerfAopTest one-test-aop
- export OPTITDIR=/home/smarlow/optimeit/OptimizeitSuite60
- export PATH=$PATH:/home/smarlow/optimeit/OptimizeitSuite60
- export LD_LIBRARY_PATH=$OPTITDIR/lib:$LD_LIBRARY_PATH
- ./build.sh -Dbootclasspath=$OPTITDIR/lib/oibcp.jar -Doptjar=$OPTITDIR/lib/optit.jar -DOPTITDIR=$OPTITDIR "$@"
- -->
- <!--
- <jvmarg value="-Xrunpri:startAudit=t,noexit=t"/>
- <jvmarg value="-DOPTITDIR=${OPTITDIR}"/>
- <classpath location="${optjar}"/>
-end of optimizeIt support
--->
- <!-- support for JDWP debug
- <jvmarg value="-Xdebug"/>
- <jvmarg value="-Xnoagent"/>
- <jvmarg value="-Djava.compiler=NONE"/>
- <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=localhost:6555"/>
- -->
- <jvmarg value="-Djgroups.stack=${jgroups.stack}"/>
- <jvmarg value="-Djboss.aop.path=${output.resources.dir}/pojocache-aop.xml"/>
- <!--
- <jvmarg value="-Djboss.aop.verbose=true"/>
- -->
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <!--
- <jvmarg value="-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader"/>
- -->
- <jvmarg value="-javaagent:${lib.dir}/jboss-aop-jdk50.jar"/>
- <classpath refid="output.classpath"/>
- <sysproperty key="log4j.configuration" value="file:${etc.dir}/log4j.xml"/>
- <classpath refid="library.classpath"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <test name="${test}" todir="${build.reports}"/>
- </junit>
- </target>
-
- <target name="one-test-precompiled-pojocache" depends="compile, aopc50, unittests-init"
- description="Runs a single unit test">
- <property name="jgroups.stack" value="udp"/>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes">
- <classpath refid="output.classpath"/>
- <sysproperty key="log4j.configuration" value="file:${etc.dir}/log4j.xml"/>
- <classpath refid="library.classpath"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <test name="${test}" todir="${build.reports}"/>
- </junit>
- </target>
-
- <target name="unittests-init">
- <mkdir dir="${build.reports}"/>
- </target>
-
- <target name="test-jar" depends="compile">
- <jar jarfile="${output.dir}/testMarshall.jar">
- <fileset dir="${compiletest.dir}">
- <include name="org/jboss/cache/marshall/Address.class"/>
- <include name="org/jboss/cache/marshall/Person.class"/>
- </fileset>
- </jar>
- </target>
-
-
- <!--
- <target name="tcp-cache-service" depends="compile"
- description="Creates the service archive used to deploy a TcpCacheServer as a JBoss MBean">
- <mkdir dir="${dist.dir}"/>
- <jar jarfile="${dist.dir}/TcpCacheServer.sar"
- basedir="${compile.dir}"
- includes="org/jboss/cache/loader/tcp/TcpCacheServer*">
- <metainf dir="${etc.dir}/TcpCacheServer"
- includes="jboss-service.xml"/>
- </jar>
- </target>
- -->
-
-
- <!-- pre-compile directory with annotationc using jdk1.4 -->
- <target name="annoc" depends="compile" description="Annotation precompiler for aop class">
- <taskdef name="annotationc" classname="org.jboss.aop.ant.AnnotationC" classpathref="library.classpath"/>
- <annotationc compilerclasspathref="library.classpath" bytecode="true">
- <classpath path="${compile.dir}"/>
- <classpath path="${compiletest.dir}"/>
- <classpath path="${output.resources.dir}"/>
- <src path="${functional.tests.dir}"/>
- <src path="${perf.tests.dir}"/>
- <include name="org/jboss/cache/aop/test/**/*.java"/>
- <include name="org/jboss/cache/data/*.java"/>
- </annotationc>
- </target>
-
- <!-- pre-compile directory with aopc50 -->
- <target name="aopc50" depends="compile" description="Precompile aop test classes">
- <taskdef name="aopc" classname="org.jboss.aop.ant.AopC" classpathref="library.classpath"/>
- <aopc compilerclasspathref="library.classpath" classpathref="library.classpath" verbose="false">
- <src path="${compiletest.dir}/org/jboss/cache/pojo/test"/>
- <src path="${compiletest.dir}/org/jboss/cache/test/perf"/>
- <!--src path="${compiletest.dir}/org/jboss/cache/data"/-->
- <aoppath path="${output.resources.dir}/pojocache-aop.xml"/>
- <classpath>
- <path refid="output.classpath"/>
- </classpath>
- </aopc>
- </target>
-
- <target name="functionaltests" depends="compile-cache,test-jar,unittests-init"
- description="Runs all core Cache functional tests">
- <property name="jgroups.stack" value="udp"/>
- <echo>Running functional tests using ${jgroups.stack} jgroups stack</echo>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes" maxmemory="512m">
- <classpath refid="library.classpath"/>
- <classpath refid="output.classpath"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djgroups.stack=${jgroups.stack}"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <jvmarg value="-Dtest.jar.dir=${output.dir}"/>
- <jvmarg value="-Dlib.dir=${lib.dir}"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${functional.tests.dir}">
- <include name="**/*Test.*"/>
- <exclude name="**/aop/**/*"/>
- <exclude name="**/pojo/**/*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="functionaltests-cc" depends="compile-cache,test-jar,unittests-init"
- description="Runs all core Cache functional tests, excluding known failures">
- <antcall target="functionaltests" inheritrefs="false">
- <reference refid="known.failures" torefid="junit.excludes"/>
- </antcall>
- </target>
-
-
- <target name="functionalAop50TestsWithAopC" depends="compile,aopc50,unittests-init"
- description="Runs all AOP functional tests">
- <property name="jgroups.stack" value="udp"/>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes">
- <classpath refid="library.classpath"/>
- <classpath refid="output.classpath"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <jvmarg value="-Djboss.aop.path=${output.resources.dir}/pojocache-aop.xml"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <sysproperty key="log4j.configuration" value="file:${etc.dir}/log4j.xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${functional.tests.dir}">
- <include name="**/aop/**/*Test.*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- <fileset dir="${functional.tests.dir.50}">
- <include name="**/aop/**/*Test.*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="functionalAopTests50" depends="compile, unittests-init" description="Runs all AOP functional tests">
- <property name="jgroups.stack" value="udp"/>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes">
- <jvmarg value="-Djboss.aop.path=${output.resources.dir}/pojocache-aop.xml"/>
- <jvmarg value="-javaagent:${lib.dir}/jboss-aop-jdk50.jar"/>
- <classpath refid="output.classpath"/>
- <classpath refid="library.classpath"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <sysproperty key="log4j.configuration" value="file:${etc.dir}/log4j.xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${functional.tests.dir}">
- <include name="**/aop/**/*Test.*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- <fileset dir="${functional.tests.dir.50}">
- <include name="**/aop/**/*Test.*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="functionalPojoCacheTests" depends="compile, unittests-init"
- description="Runs all PojoCache2.x functional tests">
- <property name="jgroups.stack" value="udp"/>
- <echo>Running functional pojo tests using ${jgroups.stack} jgroups stack</echo>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes">
- <jvmarg value="-Djgroups.stack=${jgroups.stack}"/>
- <jvmarg value="-Djboss.aop.path=${output.resources.dir}/pojocache-aop.xml"/>
- <jvmarg value="-javaagent:${lib.dir}/jboss-aop-jdk50.jar"/>
- <classpath refid="output.classpath"/>
- <classpath refid="library.classpath"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <sysproperty key="log4j.configuration" value="file:${etc.dir}/log4j.xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${functional.tests.dir}">
- <include name="**/pojo/**/*Test.*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="functionaltests-migration" depends="compile-cache,test-jar,unittests-init"
- description="Runs cache loader functional tests">
- <property name="jgroups.stack" value="udp"/>
- <echo>Running functional tests using ${jgroups.stack} jgroups stack</echo>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes" maxmemory="512m">
- <classpath refid="library.classpath"/>
- <classpath refid="output.classpath"/>
- <classpath refid="migration.library.classpath"/>
- <classpath refid="migration.output.classpath"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djgroups.stack=${jgroups.stack}"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <jvmarg value="-Dtest.jar.dir=${output.dir}"/>
- <jvmarg value="-Dlib.dir=${lib.dir}"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${migration.functional.tests.dir}">
- <include name="**/*Test.*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <!--
- This is new target since 1.2.4. Since the old way using SystemClassLoader ie error prone, it has been replcaed in
- JBossAop 1.3.1 for the new GeneratedInstrumentedClassLoader. But for this to work, we will need this target
- to generate a temporarily ClassLoader under gen-bootclasspath directory
- -->
- <target name="generateClassLoader"
- description="Generate a new modified class loader so we can perform load time instrumentation">
- <property name="build.bootclasspath" value="${output.dir}/gen-bootclasspath"/>
- <java classname="org.jboss.aop.hook.GenerateInstrumentedClassLoader">
- <classpath>
- <path refid="library.classpath"/>
- </classpath>
- <arg value="${build.bootclasspath}"/>
- </java>
- <path id="bootclasspath">
- <pathelement location="${build.bootclasspath}"/>
- <path refid="library.classpath"/>
- </path>
- <property name="bootclasspath" refid="bootclasspath"/>
- </target>
-
- <target name="functionalAopTests" depends="generateClassLoader, compile,unittests-init"
- description="Runs all AOP functional tests">
- <property name="jgroups.stack" value="udp"/>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes">
- <classpath refid="library.classpath"/>
- <classpath refid="output.classpath"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <jvmarg value="-Djboss.aop.path=${output.resources.dir}/pojocache-aop.xml"/>
- <jvmarg value="-Xbootclasspath/p:${bootclasspath}"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${functional.tests.dir}">
- <include name="**/aop/**/*Test.*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <!--
- <target name="perfAopTests" depends="compile,aopc,unittests-init" description="Runs all AOP performance tests">
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes">
- <classpath refid="library.classpath"/>
- <classpath refid="output.classpath"/>
- <formatter type="xml" usefile="true"/>
- <jvmarg value="-Djboss.aop.path=${output.resources.dir}/pojocache-aop.xml"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
-<jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${perf.tests.dir}">
- <include name="**/aop/**/*AopTest.*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="stressAopTests" depends="compile,aopc,unittests-init" description="Runs all AOP stress tests">
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes">
- <classpath refid="library.classpath"/>
- <classpath refid="output.classpath"/>
- <formatter type="xml" usefile="true"/>
- <jvmarg value="-Djboss.aop.path=${output.resources.dir}/pojocache-aop.xml"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
-<jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${stress.tests.dir}">
- <include name="**/aop/**/*AopTest.*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
- -->
-
- <target name="all-functionaltests"
- depends="functionaltests, functionalPojoCacheTests, functionaltests-migration"
- description="Runs all functional tests (including AOP tests)">
- </target>
-
- <target name="all-functional-xknown">
- <antcall target="all-functionaltests" inheritrefs="false">
- <reference refid="known.failures" torefid="junit.excludes"/>
- </antcall>
- </target>
-
- <target name="perftests" depends="compile,unittests-init" description="Runs all non-AOP perf tests">
- <property name="jgroups.stack" value="udp"/>
- <echo>Running performance tests using ${jgroups.stack} jgroups stack</echo>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes">
- <classpath refid="library.classpath"/>
- <classpath refid="output.classpath"/>
- <jvmarg value="-Djgroups.stack=${jgroups.stack}"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${perf.tests.dir}">
- <include name="**/*Test.*"/>
- <exclude name="**/aop/**/*"/>
- <exclude name="**/*JRunitTest.*"/>
- <exclude name="**/benchmark/**/*"/>
- <exclude name="**/optimistic/Local*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <!-- target name="perftests-migration" depends="compile,unittests-init" description="Runs all migration perf tests">
- <property name="jgroups.stack" value="udp"/>
- <echo>Running performance tests using ${jgroups.stack} jgroups stack</echo>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes">
- <classpath refid="library.classpath"/>
- <classpath refid="output.classpath"/>
- <classpath refid="migration.library.classpath"/>
- <classpath refid="migration.output.classpath"/>
- <jvmarg value="-Djgroups.stack=${jgroups.stack}"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
-<jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${migration.perf.tests.dir}">
- <include name="**/*Test.*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target -->
-
- <target name="all-perftests" depends="perftests"
- description="Runs all perf tests (including AOP tests)">
- </target>
-
- <target name="stresstests" depends="compile,unittests-init" description="Runs all non-AOP perf tests">
- <echo>Running stress tests using ${jgroups.stack} jgroups stack</echo>
- <property name="jgroups.stack" value="udp"/>
- <junit printsummary="yes" timeout="${junit.timeout.stresstest}" fork="yes">
- <classpath refid="library.classpath"/>
- <classpath refid="output.classpath"/>
- <jvmarg value="-Djgroups.stack=${jgroups.stack}"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${stress.tests.dir}">
- <include name="**/*Test.*"/>
- <exclude name="**/aop/**/*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <!-- Temporarily disable meaningless interop tests by adding an "if" test of a non-existent property
- We'll re-enable for the 1st release after 2.0 where we need to check backward interoperability -->
- <target name="interoptests" depends="compile,test-jar,unittests-init" if="interoptests.enabled">
-
- <!-- Download the cache version against which we check interop -->
- <mkdir dir="${output.interop.dir}"/>
- <get dest="${output.interop.dir}/jbosscache.jar"
- src="http://repository.jboss.com/jboss/cache/1.2.3.1/lib/jboss-cache.jar" verbose="true"/>
-
- <start-interop-target name="previous version" conf="META-INF/interopPrevSync-service.xml"
- classpath="previous.version.classpath"/>
- <sleep seconds="3"/>
- <run-interop-tests name="current version" desc="PrevTargetSync" conf="META-INF/interopCurSync-service.xml"
- classpath="current.version.classpath"/>
- <stop-interop-target/>
-
- <start-interop-target name="current version" conf="META-INF/interopCurSync-service.xml"
- classpath="current.version.classpath"/>
- <sleep seconds="3"/>
- <run-interop-tests name="previous version" desc="CurTargetSync" conf="META-INF/interopPrevSync-service.xml"
- classpath="previous.version.classpath"/>
- <stop-interop-target/>
-
- <start-interop-target name="previous version" conf="META-INF/interopPrevAsync-service.xml"
- classpath="previous.version.classpath"/>
- <sleep seconds="3"/>
- <run-interop-tests name="current version" desc="PrevTargetAsync" conf="META-INF/interopCurAsync-service.xml"
- classpath="current.version.classpath"/>
- <stop-interop-target/>
-
- <start-interop-target name="current version" conf="META-INF/interopCurAsync-service.xml"
- classpath="current.version.classpath"/>
- <sleep seconds="3"/>
- <run-interop-tests name="previous version" desc="CurTargetAsync" conf="META-INF/interopPrevAsync-service.xml"
- classpath="previous.version.classpath"/>
- <stop-interop-target/>
-
- </target>
-
- <macrodef name="start-interop-target">
- <attribute name="name"
- description="The name of the cache"/>
- <attribute name="conf"
- description="The config file name passed to the cache"/>
- <attribute name="classpath"
- description="The config file name passed to the cache"/>
- <sequential>
- <echo message="Will start a @{name} JBossCache instance with @{conf}"/>
- <java classname="org.jboss.cache.interop.Main" fork="true" spawn="true">
- <classpath refid="@{classpath}"/>
- <arg value="@{conf}"/>
- </java>
- </sequential>
- </macrodef>
-
- <macrodef name="stop-interop-target">
- <sequential>
- <echo message="Will stop the JBossCache instance"/>
- <java classname="org.jboss.cache.interop.Shutdown" fork="true">
- <classpath>
- <path refid="library.classpath"/>
- <path refid="output.classpath"/>
- </classpath>
- </java>
- </sequential>
- </macrodef>
-
- <macrodef name="run-interop-tests">
- <attribute name="name"
- description="The name of the cache"/>
- <attribute name="desc"
- description="The summary desc"/>
- <attribute name="conf"
- description="The config file name passed to the cache"/>
- <attribute name="classpath"
- description="The config file name passed to the cache"/>
- <sequential>
- <echo message="Running tests with a @{name} JBossCache instance with @{conf}"/>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes">
- <classpath refid="@{classpath}"/>
- <sysproperty key="interop.test.config" value="@{conf}"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true" extension="-@{desc}.xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${interop.tests.dir}">
- <include name="**/*Test.*"/>
- <exclude name="**/aop/**/*"/>
- <exclude name="**/*JRunitTest*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
-
- </batchtest>
- </junit>
- </sequential>
- </macrodef>
-
- <target name="compat-tests" depends="jar, unittests-init"
- if="ENABLE_COMPAT_TESTS">
- <condition property="libdir.list" value="lib,lib, dist/lib">
- <equals arg1="${ant.java.version}" arg2="1.5"/>
- </condition>
- <condition property="libdir.list" value="lib, dist/lib">
- <equals arg1="${ant.java.version}" arg2="1.4"/>
- </condition>
-
- <junit printsummary="yes" timeout="${junit.timeout.compat}" fork="yes"
- maxmemory="256m">
- <classpath>
- <pathelement path="${compiletest.dir}"/>
- </classpath>
- <sysproperty key="libdir.list" value="${libdir.list}"/>
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true" extension=".xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${compat.tests.dir}">
- <exclude name="**/tools/**/*"/>
- <patternset refid="junit.excludes"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="unittests"
- depends="functionaltests, functionaltests-migration, perftests, stresstests"
- description="Run all non-AOP unit tests (functional, perf, stress)"/>
-
- <target name="all-unittests"
- depends="all-functionaltests, all-perftests, stresstests, compat-tests"
- description="Run all unit tests, including AOP-based ones (functional, perf, stress)"/>
-
- <target name="all-unittests-cc"
- description="Run all unit tests, including AOP-based ones (functional, perf, stress) for CruiseControl, (excludes 'known failures')">
-
- <antcall target="all-unittests" inheritrefs="false">
- <reference refid="known.failures" torefid="junit.excludes"/>
- <param name="jgroups.stack" value="udp"/>
- </antcall>
-
- <antcall target="all-unittests" inheritrefs="false">
- <reference refid="known.failures" torefid="junit.excludes"/>
- <param name="jgroups.stack" value="tcp"/>
- </antcall>
- </target>
-
- <target name="all-unittests-retro-cc" depends="unittests-init"
- description="Run retroweaved codebase and unit tests, excluding AOP-based ones (functional, perf, stress) for CruiseControl, (excludes 'known failures'). Meant to be run under JDK 1.4.0.">
-
- <antcall target="all-unittests-retro" inheritrefs="false">
- <reference refid="known.failures" torefid="junit.excludes"/>
- <param name="jgroups.stack" value="udp"/>
- </antcall>
-
- <antcall target="all-unittests-retro" inheritrefs="false">
- <reference refid="known.failures" torefid="junit.excludes"/>
- <param name="jgroups.stack" value="tcp"/>
- </antcall>
-
- </target>
-
- <target name="all-unittests-retro">
- <property name="jgroups.stack" value="udp"/>
- <junit printsummary="yes" timeout="${junit.timeout}" fork="yes" maxmemory="512m">
- <classpath refid="library.classpath"/>
- <classpath refid="retro.output.classpath"/>
- <jvmarg value="-Dbind.address=${bind.address}"/>
- <jvmarg value="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
- <jvmarg value="-Djgroups.stack=${jgroups.stack}"/>
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
- <jvmarg value="-Djgroups.stack=${jgroups.stack}"/>
- <!--<jvmarg value="-Dtest.jar.dir=${output.dir}"/>-->
- <formatter classname="org.jboss.cache.util.XMLUnitTestFormatter" usefile="true"
- extension="-${jgroups.stack}.xml"/>
- <batchtest todir="${build.reports}">
- <fileset dir="${retro.compiletest.dir}">
- <include name="**/*Test.*"/>
- <exclude name="**/aop/**/*"/>
- <exclude name="**/pojo/**/*"/>
- <patternset refid="known.failures"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="findxalan">
- <available property="xalan.available" classname="org.apache.xalan.Version"/>
- <fail unless="xalan.available"
- message="Xalan was not found. Please add the xalan.jar file from the lib directory to the CLASSPATH and retry"/>
- </target>
-
-
- <target name="reports"
- description="Generates HTML from unit tests (target unitests-* must have run before)">
- <delete dir="${build.reports.html}"/>
- <mkdir dir="${build.reports.html}"/>
- <junitreport todir="${build.reports.html}">
- <fileset dir="${build.reports}" includes="**/TEST-*.xml"/>
- <report todir="${build.reports.html}"/>
- </junitreport>
- <echo message="********************************************************************"/>
- <echo message="The unit test report is available in ${build.reports.html}/index.html"/>
- <echo message="********************************************************************"/>
- </target>
-
- <!-- ================================================================== -->
- <!-- Build all html/pdf docs in various sub dirs -->
- <!-- ================================================================== -->
- <target name="docs" description="Build all html and pdf docs">
-
- <echo message="Building docs from docbook ..."/>
- <!-- Bail out if ../docbook-support dir does not exist -->
- <available file="${root.dir}/../docbook-support" type="dir"
- property="docbook.support.present"/>
- <fail message="docbook-support directory does not exist, please check it out from jboss first (module name is 'docbook-support'."
- unless="docbook.support.present"/>
-
- <ant dir="${root.dir}/docs" antfile="build.xml"
- target="all"/>
- </target>
-
- <!-- ================================================================== -->
- <!-- Install & Release -->
- <!-- ================================================================== -->
-
- <target name="dist" description="Creates a full standalone distribution"
- depends="jar, docs, javadocs">
-
- <!-- Now make temp dirs, copy files and create the zip files -->
- <mkdir dir="${tmp.dir}"/>
- <mkdir dir="${tmp.dir}/lib"/>
- <mkdir dir="${tmp.dir}/docs"/>
- <mkdir dir="${tmp.dir}/examples"/>
- <mkdir dir="${tmp.dir}/tests"/>
- <mkdir dir="${tmp.dir}/etc"/>
- <mkdir dir="${tmp.dir}/resources"/>
- <mkdir dir="${tmp.dir}/docs/javadoc"/>
- <mkdir dir="${tmp.dir}/docs/faq"/>
- <mkdir dir="${tmp.dir}/docs/faq-pojo"/>
- <mkdir dir="${tmp.dir}/docs/tutorial"/>
- <mkdir dir="${tmp.dir}/docs/tutorial-pojo"/>
- <mkdir dir="${tmp.dir}/docs/JBossCache-UserGuide"/>
- <mkdir dir="${tmp.dir}/docs/PojoCache"/>
- <mkdir dir="${tmp.dir}/ant-dist"/>
- <mkdir dir="${tmp.dir}/src"/>
-
- <copy todir="${tmp.dir}/ant-dist" filtering="no">
- <fileset dir="${ant.dir}"/>
- </copy>
-
- <chmod dir="${tmp.dir}/ant-dist/bin" perm="+x" includes="*"/>
-
- <copy todir="${tmp.dir}" filtering="no">
- <fileset dir="${etc.dir}">
- <include name="build.xml"/>
- <include name="*.sh"/>
- <include name="*.bat"/>
- <include name="build.properties"/>
- </fileset>
- </copy>
-
- <copy todir="${tmp.dir}/resources" filtering="no">
- <fileset dir="${resources.dir}">
- <include name="pojocache-aop.xml"/>
- </fileset>
- </copy>
-
- <copy todir="${tmp.dir}" filtering="no">
- <fileset dir="${doc.dir}">
- <include name="Changelog.txt"/>
- <include name="Readme.txt"/>
- <include name="ReleaseNotes.txt"/>
- <include name="JBossORG-EULA.txt"/>
- </fileset>
- </copy>
-
- <copy todir="${tmp.dir}/etc" filtering="no">
- <fileset dir="${etc.dir}">
- <exclude name="log4j.xml"/>
- <include name="log4j.release.xml"/>
- <include name="META-INF/*.xml"/>
- <include name="cache-jdbc.properties"/>
- </fileset>
- </copy>
-
- <move file="${tmp.dir}/etc/log4j.release.xml" tofile="${tmp.dir}/etc/log4j.xml"/>
-
- <copy todir="${tmp.dir}/tests" filtering="no">
- <fileset dir="${functional.tests.dir}">
- <include name="**/*.java"/>
- <!-- needed for some classloader tests -->
- <include name="**/*.clazz"/>
- <include name="**/*.notjava"/>
-
- <exclude name="**/*Bdbje*"/>
- </fileset>
- <fileset dir="${compiletest.dir}">
- <exclude name="**/*Bdbje*"/>
- </fileset>
- </copy>
-
- <copy todir="${tmp.dir}/tests" filtering="no">
- <fileset dir="${functional.tests.dir.50}">
- <include name="**/*.java"/>
- <exclude name="**/*Bdbje*"/>
- <exclude name="**/aop/**"/>
- </fileset>
- </copy>
-
- <copy todir="${tmp.dir}/examples" filtering="no">
- <fileset dir="${examples.dir}">
- <!--include name="**/*.java"/-->
- <exclude name="**/CVS/*"/>
- <!-- Need this because of phantom directories -->
- <exclude name="**/aop/**"/>
- <!-- Exclude this for now -->
- <exclude name="**/article/**"/>
- </fileset>
- <fileset dir="${migration.examples.dir}">
- <include name="**"/>
- </fileset>
- </copy>
-
- <copy todir="${tmp.dir}/lib" filtering="no">
- <fileset dir="${lib.dir}">
- <include name="*.jar"/>
- <include name="**/licenses/*"/>
- <include name="README.txt"/>
- </fileset>
- <fileset dir="${dist.lib}">
- <include name="jbosscache.jar"/>
- <include name="pojocache.jar"/>
- <include name="${migration.jar.name}"/>
- </fileset>
- </copy>
-
- <copy todir="${tmp.dir}/docs/javadoc" filtering="no">
- <fileset dir="${build.api}">
- <include name="**/*"/>
- </fileset>
- </copy>
-
- <copy todir="${tmp.dir}/docs/faq" filtering="no">
- <fileset dir="${doc.dir}/faq/build"/>
- </copy>
-
- <copy todir="${tmp.dir}/docs/faq-pojo" filtering="no">
- <fileset dir="${doc.dir}/faq-pojo/build"/>
- </copy>
-
- <copy todir="${tmp.dir}/docs/tutorial" filtering="no">
- <fileset dir="${doc.dir}/tutorial/build"/>
- </copy>
-
- <copy todir="${tmp.dir}/docs/tutorial-pojo" filtering="no">
- <fileset dir="${doc.dir}/tutorial-pojo/build"/>
- </copy>
-
- <copy todir="${tmp.dir}/docs/JBossCache-UserGuide" filtering="no">
- <fileset dir="${doc.dir}/JBossCache-UserGuide/build"/>
- </copy>
-
- <copy todir="${tmp.dir}/docs/PojoCache" filtering="no">
- <fileset dir="${doc.dir}/PojoCache/build"/>
- </copy>
-
- <copy todir="${tmp.dir}/src" filtering="no">
- <fileset dir="${src.dir}">
- <exclude name="**/CVS/*"/>
- </fileset>
- </copy>
-
- <copy todir="${tmp.dir}" filtering="no">
- <fileset dir="${etc.dir}">
- <include name="*.bsh"/>
- </fileset>
- </copy>
-
- <delete file="${dist.dir}/${module.name}-core-${module.version}.zip"/>
- <!--<delete file="${dist.dir}/${module.name}-core-JDK140-${module.version}.zip"/>-->
- <delete file="${dist.dir}/${module.name}-pojo-${module.version}.zip"/>
- <delete file="${dist.dir}/${module.name}-all-${module.version}.zip"/>
- <delete file="${dist.dir}/bdbje-for-${module.name}-${module.version}.zip"/>
-
- <chmod perm="+x">
- <fileset dir="${dist.dir}">
- <include name="**/*.sh"/>
- <include name="**/*.bsh"/>
- <include name="**/*.bat"/>
- </fileset>
- </chmod>
-
- <zip zipfile="${dist.dir}/${module.name}-core-${module.version}.zip">
- <zipfileset dir="${tmp.dir}" prefix="${module.name}-core-${module.version}" filemode="755">
- <include name="**/*"/>
- <include name="org/jboss/cache/**"/>
- <include name="examples/cacheloader-migration/**"/>
- <exclude name="org/jboss/cache/pojo/**"/>
- <exclude name="src/**"/>
- <exclude name="pojocache*"/>
- <exclude name="lib/pojocache.jar"/>
- <exclude name="lib/jboss-aop*.jar"/>
- <exclude name="lib/qdox.jar"/>
- <exclude name="lib/javassist.jar"/>
- <exclude name="examples/PojoCache/**"/>
- <exclude name="resources/**"/>
- <exclude name="docs/javadoc/**"/>
- <exclude name="docs/PojoCache/**"/>
- <exclude name="docs/faq-pojo/**"/>
- <exclude name="docs/tutorial-pojo/**"/>
- <exclude name="tests/org/jboss/cache/pojo/**"/>
- <exclude name="test-classes/org/jboss/cache/pojo/**"/>
- </zipfileset>
- </zip>
-
- <zip zipfile="${dist.dir}/${module.name}-pojo-${module.version}.zip">
- <zipfileset dir="${tmp.dir}" prefix="${module.name}-pojo-${module.version}" filemode="755">
- <exclude name="src/**"/>
- <exclude name="examples/annotated14/**"/>
- <exclude name="examples/cacheloader-migration/**"/>
- </zipfileset>
- </zip>
-
- <zip zipfile="${dist.dir}/bdbje-for-${module.name}-${module.version}.zip">
- <zipfileset dir="${berkeleydb.lib.dir}" prefix="bdbje-for-${module.name}-${module.version}">
- <include name="*"/>
- </zipfileset>
- </zip>
-
- <zip zipfile="${dist.dir}/${module.name}-all-${module.version}.zip">
- <zipfileset dir="${tmp.dir}" prefix="${module.name}-all-${module.version}" filemode="755">
- <include name="**/**"/>
- </zipfileset>
- </zip>
-
- <!-- Retroweaved binary NOT built as a part of the distribution. Manually run the jar-retro target for this. -->
-
- <!--
- <copy todir="${tmp.dir}/tests14" filtering="no">
- <fileset dir="${retro.compiletest.dir}">
- <include name="**/*.class"/>
- <exclude name="**/loader/Bdbje*.class"/>
- <exclude name="**/aop/**"/>
- <exclude name="**/pojo/**"/>
- </fileset>
- </copy>
-
- <copy todir="${tmp.dir}/lib">
- <fileset dir="${retro.lib.dir}"/>
- </copy>
-
-
- <copy todir="${tmp.dir}/lib" filtering="no">
- <fileset dir="${dist.lib}">
- <include name="jbosscache-JDK140.jar"/>
- </fileset>
- </copy>
-
- <zip zipfile="${dist.dir}/${module.name}-core-JDK140-${module.version}.zip">
- <zipfileset dir="${tmp.dir}" prefix="${module.name}-core-JDK140-${module.version}" filemode="755">
- <include name="**/*"/>
- <include name="org/jboss/cache/**"/>
- <exclude name="pojocache*"/>
- <exclude name="org/jboss/cache/pojo/**"/>
- <exclude name="src/**"/>
- <exclude name="lib/pojocache.jar"/>
- <exclude name="lib/jbosscache.jar"/>
- <exclude name="lib/jboss-aop*.jar"/>
- <exclude name="lib/trove.jar"/>
- <exclude name="lib/qdox.jar"/>
- <exclude name="examples/**"/>
- <exclude name="resources/**"/>
- <exclude name="docs/javadoc/**"/>
- <exclude name="docs/PojoCache/**"/>
- <exclude name="docs/faq-pojo/**"/>
- <exclude name="docs/tutorial-pojo/**"/>
- <exclude name="tests"/>
- </zipfileset>
- </zip>
- -->
-
- <!-- Remove temp dirs -->
- <delete dir="${tmp.dir}"/>
-
- <!-- build checksums -->
- <checksum file="${dist.dir}/${module.name}-all-${module.version}.zip"/>
- <checksum file="${dist.dir}/${module.name}-core-${module.version}.zip"/>
- <!-- uncomment after JBCACHE-664 is closed
- <checksum file="${dist.dir}/${module.name}-core-JDK140-${module.version}.zip"/>
- -->
- <checksum file="${dist.dir}/${module.name}-pojo-${module.version}.zip"/>
- <checksum file="${dist.dir}/bdbje-for-${module.name}-${module.version}.zip"/>
- </target>
-
- <target name="perfTestJar" depends="compile-cache, manifest" description="Builds jar file for the perf test">
- <jar jarfile="${output.dir}/perfTest.jar">
- <fileset dir="${compiletest.dir}">
- <include name="org/jboss/cache/data/**"/>
- <include name="org/jboss/cache/Server*.class"/>
- </fileset>
- </jar>
- </target>
-
- <!-- Clover build targets -->
- <taskdef resource="clovertasks"/>
- <typedef resource="clovertypes"/>
-
- <target name="with.clover">
- <mkdir dir="${clover.dir}"/>
- <mkdir dir="${clover.dir}/coverage"/>
- <mkdir dir="${clover.dir}/report"/>
- <clover-setup initString="${clover.dir}/coverage/JBCcoverage.db" relative="yes">
- <fileset dir="${root.dir}">
- <patternset id="sources">
- <include name="**/*.java"/>
- <exclude name="**/obsolete/**"/>
- <exclude name="**/*1_4*"/>
- <exclude name="**/interop/**/*"/>
- <exclude name="**/stress/**/*"/>
- <exclude name="**/perf/**/*"/>
- <exclude name="**/compat/**/*"/>
- <exclude name="**/data/**/*"/>
- <exclude name="**/demo/**/*"/>
- </patternset>
- <patternset refid="junit.excludes"/>
- </fileset>
- </clover-setup>
- </target>
-
- <target name="clover.html" depends="with.clover">
- <mkdir dir="${clover.dir}/report/html"/>
- <clover-report>
- <current outfile="${clover.dir}/report/html/src">
- <fileset dir="${src.dir}"/>
- <format type="html"/>
- </current>
- <current outfile="${clover.dir}/report/html/tests">
- <fileset dir="${tests.dir}"/>
- <format type="html"/>
- </current>
- </clover-report>
- </target>
-
- <target name="clover.xml" depends="with.clover">
- <mkdir dir="${clover.dir}/report/xml"/>
- <clover-report>
- <current outfile="${clover.dir}/report/xml/JBCcoverage_src.xml">
- <fileset dir="${src.dir}"/>
- <format type="xml"/>
- </current>
- <current outfile="${clover.dir}/report/xml/JBCcoverage_tests.xml">
- <fileset dir="${tests.dir}"/>
- <format type="xml"/>
- </current>
- </clover-report>
- </target>
-
- <target name="clover.pdf" depends="with.clover">
- <mkdir dir="${clover.dir}/report/pdf"/>
- <clover-report>
- <current outfile="${clover.dir}/report/pdf/JBCcoverage_src.pdf" summary="true">
- <fileset dir="${src.dir}"/>
- <format type="pdf"/>
- </current>
- <current outfile="${clover.dir}/report/pdf/JBCcoverage_tests.pdf" summary="true">
- <fileset dir="${tests.dir}"/>
- <format type="pdf"/>
- </current>
- </clover-report>
- </target>
-
- <target name="clover.log" depends="with.clover">
- <clover-log/>
- </target>
-</project>
Deleted: core/trunk/build_reports.bat
===================================================================
--- core/trunk/build_reports.bat 2007-08-14 16:31:29 UTC (rev 4249)
+++ core/trunk/build_reports.bat 2007-08-14 16:34:22 UTC (rev 4250)
@@ -1,2 +0,0 @@
-SET CLASSPATH=%CLASSPATH%;lib\xalan.jar
-build reports
\ No newline at end of file
Deleted: core/trunk/deploy-maven.sh
===================================================================
--- core/trunk/deploy-maven.sh 2007-08-14 16:31:29 UTC (rev 4249)
+++ core/trunk/deploy-maven.sh 2007-08-14 16:34:22 UTC (rev 4250)
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-VER=${1}
-
-if [ ! $VER ]
-then
- echo Usage: deploy-maven.sh VERSION_NUMBER
- echo eg: deploy-maven.sh 3.0.0.GA
- exit
-fi
-
-
-echo "Deploying to a LOCAL maven2 repo, located in ../maven2 with version ${VER}"
-
-mvn deploy:deploy-file -Dfile=dist/lib/jbosscache.jar -Durl=file:../maven2 -DrepositoryId=jboss_maven2_repo -DpomFile=pom.xml -DgroupId=jboss -DartifactId=jboss-cache -Dversion=${VER} -DuniqueVersion=true
-
-echo "Done. Now commit the maven2 repo to svn"
-
More information about the jbosscache-commits
mailing list