blob: ce26a65dbf81160bcd56571afa6fe2a969f9d082 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="org.eclipse.persistence.example.jpa.performance">
<property environment="env"/>
<!--property name="JDBC_LIB" value="./mysql-connector-java-5.0.7-bin.jar"/-->
<property name="JDBC_LIB" value="./derby.jar"/>
<property name="JPA_LIB" value="./persistence.jar"/>
<property name="ECLIPSELINK_LIB" value="./eclipselink.jar"/>
<property name="HIBERNATE_LIBS" value="./hibernate"/>
<property name="BATOO_LIBS" value="./batoo"/>
<property name="AGENT" value="-javaagent:${ECLIPSELINK_LIB}"/>
<property name="debuglevel" value="source,lines,vars"/>
<path id="base.classpath">
<pathelement location="classes"/>
<pathelement location="${JDBC_LIB}"/>
<pathelement location="${JPA_LIB}"/>
</path>
<path id="eclipselink.classpath">
<pathelement location="classes"/>
<pathelement location="${JDBC_LIB}"/>
<pathelement location="${JPA_LIB}"/>
<pathelement location="${ECLIPSELINK_LIB}"/>
</path>
<path id="hibernate.classpath">
<pathelement location="classes"/>
<pathelement location="${JDBC_LIB}"/>
<pathelement location="${JPA_LIB}"/>
<fileset dir="${HIBERNATE_LIBS}">
<include name="*.jar"/>
</fileset>
</path>
<path id="batoo.classpath">
<pathelement location="classes"/>
<pathelement location="${JDBC_LIB}"/>
<fileset dir="${BATOO_LIBS}">
<include name="*.jar"/>
</fileset>
</path>
<target name="init" depends="clean">
<mkdir dir="classes"/>
</target>
<target name="clean">
<delete dir="classes"/>
</target>
<target depends="init" name="build">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="classes">
<src path="src"/>
<exclude name="**/.svn/**"/>
<classpath refid="base.classpath"/>
</javac>
<copy file="src/META-INF/persistence.xml" todir="classes/META-INF"/>
</target>
<target name="test-eclipselink" depends="build">
<java classname="example.ReadTest"
maxmemory="512m"
fork="true">
<jvmarg value="${AGENT}"/>
<classpath refid="eclipselink.classpath"/>
</java>
</target>
<target name="test-hibernate" depends="build">
<java classname="example.ReadTest"
maxmemory="512m"
fork="true">
<classpath refid="hibernate.classpath"/>
</java>
</target>
<target name="test-batoo" depends="build">
<java classname="example.ReadTest"
maxmemory="512m"
fork="true">
<classpath refid="batoo.classpath"/>
</java>
</target>
</project>