blob: 11ca76408e0ef66fb0d71f86aea3341d0acc3c4f [file] [log] [blame]
<!--/*******************************************************************************
* Copyright (c) 1998, 2018 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Ant naming conventions:
* - regardless of the actual OS platform,'/' is the directory separator
* (Ant will convert as appropriate).
* - multi-word properties use periods '.'
* - properties ending in .jar define jarfile names only (no path)
* - properties ending in .lib are fully qualified jars (path and filename)
* - properties ending in .dir are directory paths
* - properties ending in .path are path refid names (classpath fragments)
* - multi-word targets use hyphens '-'
* - targets beginning with test- are reserved for high level test targets,
* and are used in test results parsing
* - targets typically use the form <action>-<object>-<type> (ie. package-bundle-zip)
* - multi-word macros use underscores '_'
* - multi-word macro attributes are concatenated
* e.g. 'runpathref'
* - multi-word tasks (taskdef) names are concatenated
* e.g. 'validateconnection'
* - OS environment variables are in ALLCAPS and have 'env' as a prefix
* e.g. ${env.XXX}.
* - Ant properties are lower case.
*
* Contributors:
* tware - initial API and implementation
#******************************************************************************/-->
<!-- This ant project includes the following tasks:
- build (default) : compiles all JPA tests, packages test jars
- compile : compiles all JPA tests
- package : jars JPA persistent units and tests jars
- test : runs JPA FullRegressionTestSuite - includes the full set of JUnit tests, but no legacy tests
- test-lrg : runs JPA LRG (AllCMP3TestRunModel, if database is Oracle, oracle specific tests as well)
- oracle-test : runs JPA Oracle-specific tests (OracleJPATestSuite and OracleJPACustomfeaturesTestSuite)
- oracle-proxy-test : runs JPA Oracle Proxy Authentication specific tests (ProxyAuthenticationServerTestSuite)
- test-no-weave : runs JPA LRG using no weaving (no agent)
- test-static-weave : runs JPA LRG using static weaving
- server-start : starts the JEE server
- server-stop : stops the JEE server
- server-restart : stops and restarts the JEE server (match the restart command in Eclipse)
- server-test : runs the JPA LRG tests in the server
- server-test-lrg : runs the JPA LRG tests in the server
- server-test-oracle-proxy : runs the Oracle Proxy Authentication JPA tests in the server
- server-test-sessionbean : runs the SessionBean tests in the server
- server-test-fieldaccess-advanced : runs the Fieldaccess tests in the server
- server-test-datatypes : runs the Datatypes tests in the server
- server-test-datetime : runs the Datetime tests in the server
It requires some configuration of the build.properties and test.properties to run.
-->
<project name="eclipselink.jpa.test" default="build" basedir=".">
<available file="../${ant.project.name}" type="dir" property="jpatest.is.local"/>
<!-- fail message="Not running from '${ant.project.name}' directory" unless="jpatest.is.local"/ -->
<dirname property="jpatest.build.location_temp" file="${ant.file.eclipselink.jpa.test}"/>
<pathconvert targetos="unix" property="jpatest.build.location">
<path>
<pathelement location="${jpatest.build.location_temp}"/>
</path>
</pathconvert>
<property name="env" environment="env" value="env"/>
<!-- Allows a user to overide certain user specific properties. -->
<!-- local property overrides -->
<condition property="custom.bld.properties.message"
value="Loading ${user.home}/build.properties"
else="Skipping ${user.home}/build.properties, file does not exist">
<available file="${user.home}/build.properties"/>
</condition>
<echo message="${custom.bld.properties.message}"/>
<property file="${user.home}/build.properties"/>
<condition property="custom.cmd.properties.message"
value="Loading ${test.properties}"
else="Skipping ${test.properties}, file does not exist">
<and>
<isset property="test.properties"/>
<available file="${test.properties}"/>
</and>
</condition>
<echo message="${custom.cmd.properties.message}"/>
<property file="${test.properties}"/>
<condition property="custom.tst.properties.message"
value="Loading ${user.home}/test.properties"
else="Skipping ${user.home}/test.properties, file does not exist">
<available file="${user.home}/test.properties"/>
</condition>
<echo message="${custom.tst.properties.message}"/>
<property file="${user.home}/test.properties"/>
<condition property="custom.local.properties.message"
value="Loading ${basedir}/local.build.properties"
else="Skipping ${basedir}/local.build.properties, file does not exist">
<available file="${basedir}/local.build.properties"/>
</condition>
<echo message="${custom.local.properties.message}"/>
<property file="${basedir}/local.build.properties"/>
<!-- property name="jpatest.basedir" value="."/ -->
<!-- Allows override of the build location or "basedir" for specific configurations (can specifically define jpatest.basedir) -->
<property name="jpatest.basedir" value="${jpatest.build.location}"/>
<property file="${jpatest.basedir}/antbuild.properties"/>
<!-- Allows specific suites/configurations to override defaults and add custom test (runtime) properties -->
<property file="${jpatest.basedir}/${test.properties}"/>
<property file="${jpatest.basedir}/test.properties"/>
<property name="eclipselink.jpa.test.dir" value="${jpatest.basedir}"/>
<!-- This checks if the trunk was checked out, or just the Eclipse projects. -->
<!-- To run from another location be sure to override jpatest.basedir appropriately -->
<condition property="jpatest.2.base.dir" value="${jpatest.basedir}/../.." else="${jpatest.basedir}/..">
<contains string="${jpatest.build.location}" substring="jpa/${ant.project.name}"/>
</condition>
<property name="jpatest.2.common.plugins.dir" value="${jpatest.2.base.dir}/plugins"/>
<property name="jpatest.2.jpa.plugins.dir" value="${jpatest.2.base.dir}/jpa/plugins"/>
<property name="jpatest.2.coretest.dir" value="${jpatest.2.base.dir}/foundation/eclipselink.core.test"/>
<property name="jpatest.2.oracle.dir" value="${jpatest.2.base.dir}/foundation/org.eclipse.persistence.oracle"/>
<property name="jpatest.2.oracletest.dir" value="${jpatest.2.base.dir}/foundation/eclipselink.extension.oracle.test"/>
<property name="jpatest.2.oracle.spatial.test.dir" value="${jpatest.2.base.dir}/foundation/eclipselink.extension.oracle.spatial.test"/>
<property name="jpatest.2.oracle.nosqltest.dir" value="${jpatest.2.base.dir}/foundation/eclipselink.extension.oracle.nosql.test"/>
<property name="jpatest.2.sdo.plugins.dir" value="${jpatest.2.base.dir}/sdo/plugins"/>
<property name="oracle.extensions.depend.dir" value="${jpatest.2.base.dir}/../extension.oracle.lib.external"/>
<property name="jacocoagent.lib" value="${extensions.depend.dir}/${jacocoagent.jar}"/>
<property name="version.qualifier" value="qualifier"/>
<property name="version.string" value="${release.version}.${version.qualifier}"/>
<property name="modelgen.jar" value="${eclipselink.modelgen.prefix}_${version.string}.jar"/>
<property name="projectcache.dir" value="pcfile"/>
<!-- JVM used to run tests -->
<property name="test.junit.jvm" value="${env.JAVA_HOME}"/>
<property name="test.junit.jvm.exec" value="${test.junit.jvm}/bin/java"/>
<echo message="modelgen.jar = '${modelgen.jar}'"/>
<echo message="ant.project.name = '${ant.project.name}'"/>
<echo message="jpatest.build.location = '${jpatest.build.location}'"/>
<echo message="jpatest.2.base.dir = '${jpatest.2.base.dir}'"/>
<echo message="jpatest.2.common.plugins.dir = '${jpatest.2.common.plugins.dir}'"/>
<echo message="jpatest.2.jpa.plugins.dir = '${jpatest.2.jpa.plugins.dir}'"/>
<echo message="jpatest.2.coretest.dir = '${jpatest.2.coretest.dir}'"/>
<echo message="jpatest.2.oracle.dir = '${jpatest.2.oracle.dir}'"/>
<echo message="jpatest.2.oracletest.dir = '${jpatest.2.oracletest.dir}'"/>
<echo message="jpatest.2.oracle.spatial.test.dir = '${jpatest.2.oracle.spatial.test.dir}'"/>
<echo message="jpatest.2.sdo.plugins.dir = '${jpatest.2.sdo.plugins.dir}' (for GF)"/>
<import file="${jpatest.2.oracletest.dir}/oracle-db-setup.xml"/>
<!-- Allows we run websphere tests from Windows & Linux both. -->
<target name="detect-os">
<condition property="is.windows" value="true">
<os family="windows"/>
</condition>
<condition property="is.unix" value="true">
<os family="unix"/>
</condition>
<condition property="suffix" value="bat">
<isset property="is.windows"/>
</condition>
<condition property="suffix" value="sh">
<isset property="is.unix"/>
</condition>
</target>
<!-- This checks if the tests are run on Oracle database -->
<condition property="is.oracle">
<contains string="${db.driver}" substring="oracle"/>
</condition>
<!-- This checks if the environment is ready for proxy authentication tests -->
<condition property="is.ready.for.proxy.authentication">
<and>
<isset property="is.oracle"/>
<contains string="${oracle.proxy.authentication.is.setup}" substring="true"/>
</and>
</condition>
<!-- This checks if the Application Server is GlassFish -->
<condition property="is.glassfish">
<contains string="${server.name}" substring="glassfish"/>
</condition>
<condition property="is.glassfish.or.weblogic">
<or>
<contains string="${server.name}" substring="glassfish"/>
<contains string="${server.name}" substring="weblogic"/>
</or>
</condition>
<!-- This checks if the Application Server is JBoss -->
<condition property="is.jboss">
<or>
<contains string="${server.name}" substring="jboss"/>
<contains string="${server.name}" substring="wildfly"/>
</or>
</condition>
<!-- This checks if the Application Server is WebSphere -->
<condition property="is.websphere">
<contains string="${server.name}" substring="websphere"/>
</condition>
<!-- This checks if the Apllication Server is WebLogic -->
<condition property="is.weblogic">
<contains string="${server.name}" substring="weblogic"/>
</condition>
<!-- This checks if static weaving enabled -->
<condition property="is.static.server.weaving">
<contains string="${server.weaving}" substring="static"/>
</condition>
<!-- This checks if testing on nonJTA DS -->
<condition property="is.nonjta.datasource">
<contains string="${is.JTA}" substring="false"/>
</condition>
<!-- This checks if testing on GlassFish with nonJTA DS -->
<condition property="is.glassfish.nonjta.datasource">
<and>
<contains string="${is.JTA}" substring="false"/>
<contains string="${server.name}" substring="glassfish"/>
</and>
</condition>
<!-- Define Spring jars needed for running JPA tests on Spring -->
<path id="spring.path">
<fileset dir="${spring.jlib.dir}" includes="${spring.jlib}"/>
<pathelement path="."/>
</path>
<!-- This checks if the Aplication Server is applicable to run oracle jpa/customfeatures model on oracle db-->
<condition property="run.jpa.customfeatures.model">
<and>
<contains string="${db.driver}" substring="oracle"/>
<or>
<istrue value="${is.weblogic}"/>
<!--istrue value="${is.websphere}"/-->
<istrue value="${is.jboss}"/>
<istrue value="${is.glassfish}"/>
</or>
</and>
</condition>
<available file="${jpatest.2.common.plugins.dir}/${modelgen.jar}" property="modelgen.jar.exist"/>
<condition property="validate.jar.exists">
<and>
<available file="${extensions.depend.dir}/${validation-impl.jar}" />
<available file="${extensions.depend.dir}/${jboss-logging.jar}" />
<available file="${extensions.depend.dir}/${javax.el.jar}" />
<available file="${extensions.depend.dir}/${classmate.jar}" />
</and>
</condition>
<target name="set-server-properties">
<property file="${user.home}/${server.name}.properties"/>
<property file="${jpatest.basedir}/${server.name}.properties"/>
<condition property="SERVER.URL" value="${server.url}">
<or>
<isset property="is.websphere"/>
<isset property="is.jboss"/>
</or>
</condition>
<condition property="SERVER.TESTRUNNER" value="${MODEL_NAME}/${MODEL_NAME}_ejb/${server.testrunner}">
<isset property="is.jboss"/>
</condition>
<condition property="SERVER.TESTRUNNER1" value="${MODEL_NAME}/${MODEL_NAME}_ejb/${server.testrunner1}">
<isset property="is.jboss"/>
</condition>
<condition property="SERVER.TESTRUNNER2" value="${MODEL_NAME}/${MODEL_NAME}_ejb/${server.testrunner2}">
<isset property="is.jboss"/>
</condition>
<condition property="SERVER.TESTRUNNER3" value="${MODEL_NAME}/${MODEL_NAME}_ejb/${server.testrunner3}">
<isset property="is.jboss"/>
</condition>
<condition property="SERVER.TESTRUNNER4" value="${MODEL_NAME}/${MODEL_NAME}_ejb/${server.testrunner4}">
<isset property="is.jboss"/>
</condition>
<condition property="SERVER.TESTRUNNER5" value="${MODEL_NAME}/${MODEL_NAME}_ejb/${server.testrunner5}">
<isset property="is.jboss"/>
</condition>
<condition property="SERVER.TESTRUNNER6" value="${MODEL_NAME}/${MODEL_NAME}_ejb/${server.testrunner6}">
<isset property="is.jboss"/>
</condition>
<property name="SERVER.URL" value="${server.url}${MODEL_NAME}"/>
<property name="SERVER.TESTRUNNER" value="${server.testrunner}"/>
<property name="SERVER.TESTRUNNER1" value="${server.testrunner1}"/>
<property name="SERVER.TESTRUNNER2" value="${server.testrunner2}"/>
<property name="SERVER.TESTRUNNER3" value="${server.testrunner3}"/>
<property name="SERVER.TESTRUNNER4" value="${server.testrunner4}"/>
<property name="SERVER.TESTRUNNER5" value="${server.testrunner5}"/>
<property name="SERVER.TESTRUNNER6" value="${server.testrunner6}"/>
<condition property="DS_NAME" value="java:/EclipseLinkDS">
<isset property="is.jboss"/>
</condition>
<condition property="DS_NAME" value="jdbc/EclipseLinkDS">
<not>
<isset property="is.jboss"/>
</not>
</condition>
<condition property="DS2_NAME" value="java:/EclipseLinkDS2">
<isset property="is.jboss"/>
</condition>
<condition property="DS2_NAME" value="jdbc/EclipseLinkDS2">
<not>
<isset property="is.jboss"/>
</not>
</condition>
<condition property="DS3_NAME" value="java:/EclipseLinkDS3">
<isset property="is.jboss"/>
</condition>
<condition property="DS3_NAME" value="jdbc/EclipseLinkDS3">
<not>
<isset property="is.jboss"/>
</not>
</condition>
<condition property="NONJTA_DS_NAME" value="java:/ELNonJTADS">
<isset property="is.jboss"/>
</condition>
<condition property="NONJTA_DS_NAME" value="jdbc/ELNonJTADS">
<not>
<isset property="is.jboss"/>
</not>
</condition>
<condition property="NONJTA_DS2_NAME" value="java:/ELNonJTADS2">
<isset property="is.jboss"/>
</condition>
<condition property="NONJTA_DS2_NAME" value="jdbc/ELNonJTADS2">
<not>
<isset property="is.jboss"/>
</not>
</condition>
<condition property="NONJTA_DS3_NAME" value="java:/ELNonJTADS3">
<isset property="is.jboss"/>
</condition>
<condition property="NONJTA_DS3_NAME" value="jdbc/ELNonJTADS3">
<not>
<isset property="is.jboss"/>
</not>
</condition>
<condition property="SESSION_DS_NAME" value="jdbc/${DS_NAME}">
<contains string="${server.name}" substring="netweaver"/>
</condition>
<condition property="SESSION_DS_NAME" value="${DS_NAME}">
<not>
<isset property="is.netweaver"/>
</not>
</condition>
<condition property="is.grid.testing">
<contains string="${grid}" substring="true"/>
</condition>
<condition property="is.kryo.testing">
<contains string="${kryo}" substring="true"/>
</condition>
<condition property="is.jpars.testing">
<contains string="${MODEL_NAME}" substring="eclipselink-jpars-model"/>
</condition>
<condition property="jpars.url" value="http://${weblogic.host}:${weblogic.port}">
<contains string="${server.name}" substring="weblogic"/>
</condition>
<condition property="jpars.url" value="http://${glassfish.host}:8080">
<contains string="${server.name}" substring="glassfish"/>
</condition>
</target>
<target name="config-classpath">
<config-compile-path/>
<config-run-path/>
</target>
<macrodef name="config-compile-path">
<sequential>
<echo message="Configuring compile.path to:"/>
<!-- echo message=" '${jpatest.2.coretest.dir}/${classes.dir}'"/ -->
<echo message=" '${jpatest.2.coretest.dir}/${coretest.jar}'"/>
<echo message=" '${jpatest.2.coretest.dir}/${coretest.framework.jar}'"/>
<echo message=" '${jpatest.2.jpa.plugins.dir}/${persistence20.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${javax.validation.jar}'"/>
<echo message=" '${jpatest.2.base.dir}/${eclipselink.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${ejb.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${transaction.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${restfulws.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${resource.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${inject.jar}'"/>
<echo message=" '${junit.lib}'"/>
<echo message=" '${jacocoagent.lib}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/org.eclipse.persistence.antlr_*.jar'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/org.eclipse.persistence.nosql_*.jar'"/>
<echo message=" "/>
<path id="compile.path">
<!-- pathelement path="${jpatest.2.coretest.dir}/${classes.dir}"/ -->
<pathelement path="${jpatest.2.coretest.dir}/${coretest.jar}"/>
<pathelement path="${jpatest.2.coretest.dir}/${coretest.framework.jar}"/>
<pathelement path="${jpatest.2.jpa.plugins.dir}/${persistence20.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${javax.validation.jar}"/>
<pathelement path="${jpatest.2.base.dir}/${eclipselink.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${ejb.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${transaction.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${restfulws.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${resource.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${inject.jar}"/>
<pathelement path="${junit.lib}"/>
<pathelement path="${jacocoagent.lib}"/>
<fileset dir="${jpatest.2.common.plugins.dir}" includes="org.eclipse.persistence.antlr_*.jar"/>
<fileset dir="${jpatest.2.common.plugins.dir}" includes="org.eclipse.persistence.nosql_*.jar"/>
<!-- Needed for performance tests comparing with hibernate.>
<fileset dir="${hibernate.dir}">
<include name="*.jar"/>
</fileset-->
<!-- Needed for tests using coherence.>
<fileset dir="${coherence.dir}">
<include name="*.jar"/>
</fileset-->
</path>
<echo message="Configuring jpa21.compile.path to:"/>
<!-- echo message=" '${jpatest.2.coretest.dir}/${classes.dir}'"/ -->
<echo message=" '${jpatest.2.coretest.dir}/${coretest.jar}'"/>
<echo message=" '${jpatest.2.coretest.dir}/${coretest.framework.jar}'"/>
<echo message=" '${jpatest.2.jpa.plugins.dir}/${persistence21.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${javax.validation.jar}'"/>
<echo message=" '${jpatest.2.base.dir}/${eclipselink.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${ejb.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${transaction.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${restfulws.jar}'"/>
<echo message=" '${junit.lib}'"/>
<echo message=" '${jacocoagent.lib}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/org.eclipse.persistence.antlr_*.jar'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/org.eclipse.persistence.nosql_*.jar'"/>
<echo message=" "/>
<path id="jpa21.compile.path">
<!-- pathelement path="${jpatest.2.coretest.dir}/${classes.dir}"/ -->
<pathelement path="${jpatest.2.coretest.dir}/${coretest.jar}"/>
<pathelement path="${jpatest.2.coretest.dir}/${coretest.framework.jar}"/>
<pathelement path="${jpatest.2.jpa.plugins.dir}/${persistence21.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${javax.validation.jar}"/>
<pathelement path="${jpatest.2.base.dir}/${eclipselink.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${ejb.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${transaction.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${restfulws.jar}"/>
<pathelement path="${junit.lib}"/>
<pathelement path="${jacocoagent.lib}"/>
<fileset dir="${jpatest.2.common.plugins.dir}" includes="org.eclipse.persistence.antlr_*.jar"/>
<fileset dir="${jpatest.2.common.plugins.dir}" includes="org.eclipse.persistence.nosql_*.jar"/>
<!-- Needed for performance tests comparing with hibernate.>
<fileset dir="${hibernate.dir}">
<include name="*.jar"/>
</fileset-->
<!-- Needed for tests using coherence.>
<fileset dir="${coherence.dir}">
<include name="*.jar"/>
</fileset-->
</path>
<echo message="Configuring jpa22.compile.path to:"/>
<!-- echo message=" '${jpatest.2.coretest.dir}/${classes.dir}'"/ -->
<echo message=" '${jpatest.2.coretest.dir}/${coretest.jar}'"/>
<echo message=" '${jpatest.2.coretest.dir}/${coretest.framework.jar}'"/>
<echo message=" '${jpatest.2.jpa.plugins.dir}/${persistence22.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${javax.validation.jar}'"/>
<echo message=" '${jpatest.2.base.dir}/${eclipselink.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${ejb.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${transaction.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${restfulws.jar}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${inject.jar}'"/>
<echo message=" '${junit.lib}'"/>
<echo message=" '${jacocoagent.lib}'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/org.eclipse.persistence.antlr_*.jar'"/>
<echo message=" '${jpatest.2.common.plugins.dir}/org.eclipse.persistence.nosql_*.jar'"/>
<echo message=" "/>
<path id="jpa22.compile.path">
<!-- pathelement path="${jpatest.2.coretest.dir}/${classes.dir}"/ -->
<pathelement path="${jpatest.2.coretest.dir}/${coretest.jar}"/>
<pathelement path="${jpatest.2.coretest.dir}/${coretest.framework.jar}"/>
<pathelement path="${jpatest.2.jpa.plugins.dir}/${persistence22.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${javax.validation.jar}"/>
<pathelement path="${jpatest.2.base.dir}/${eclipselink.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${ejb.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${transaction.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${restfulws.jar}"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${inject.jar}"/>
<pathelement path="${junit.lib}"/>
<pathelement path="${jacocoagent.lib}"/>
<fileset dir="${jpatest.2.common.plugins.dir}" includes="org.eclipse.persistence.antlr_*.jar"/>
<fileset dir="${jpatest.2.common.plugins.dir}" includes="org.eclipse.persistence.nosql_*.jar"/>
<!-- Needed for performance tests comparing with hibernate.>
<fileset dir="${hibernate.dir}">
<include name="*.jar"/>
</fileset-->
<!-- Needed for tests using coherence.>
<fileset dir="${coherence.dir}">
<include name="*.jar"/>
</fileset-->
</path>
<echo message="Configuring 'compile.modelgen.path' to:"/>
<echo message=" '${jpatest.2.common.plugins.dir}/${modelgen.jar}'"/>
<echo message=" and 'compile.path'"/>
<echo message=" "/>
<path id="compile.modelgen.path">
<pathelement path="${jpatest.2.common.plugins.dir}/${modelgen.jar}"/>
<path refid="compile.path"/>
</path>
<echo message="Configuring 'compile.server.path' to:"/>
<echo message=" 'compile.path'"/>
<echo message=" '${oracle.extensions.depend.dir}/${oracle.sdoapi.jar}'"/>
<echo message=" '../../../extension.lib.external/mongo.jar'"/>
<echo message=" "/>
<path id="compile.server.path">
<path refid="compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${oracle.extensions.depend.dir}/${oracle.sdoapi.jar}"/>
<pathelement path="../../../extension.lib.external/mongo.jar"/>
</path>
<path id="compile.jpa21.server.path">
<path refid="jpa21.compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${oracle.extensions.depend.dir}/${oracle.sdoapi.jar}"/>
<pathelement path="../../../extension.lib.external/mongo.jar"/>
</path>
<path id="compile.jpa22.server.path">
<path refid="jpa22.compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${oracle.extensions.depend.dir}/${oracle.sdoapi.jar}"/>
<pathelement path="../../../extension.lib.external/mongo.jar"/>
</path>
</sequential>
</macrodef>
<!-- Default ant target, compiles and packages test jars, does not run tests. -->
<target name="build" depends="clean, init, compile, package" description="build EclipseLink JPA testing jars"/>
<target name="clean" description="Clean the build" depends="cleanup-merge-inherited-ddl, cleanup-non-jta-ds-servertest">
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="${jpatest.basedir}/${classes.dir}"/>
<fileset dir="${jpatest.basedir}/classes21"/>
<fileset dir="${jpatest.basedir}/classes22"/>
<fileset dir="${jpatest.basedir}/${build.dir}"/>
<fileset file="${jpatest.basedir}/${jpa.test.jar}"/>
<fileset file="${jpatest.basedir}/${jpa21.test.jar}"/>
<fileset file="${jpatest.basedir}/${jpa22.test.jar}"/>
<fileset file="${jpatest.basedir}/${jpatest.framework.jar}"/>
<fileset file="${jpatest.basedir}/*-model.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.jpa21.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.jpa22.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.annotation.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.ddl.generation.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.only.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.extended.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.merge.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.validation.failed.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.advanced.field.access.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.advanced.properties}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.pu.with.spaces}.jar"/>
<fileset file="${jpatest.basedir}/eclipselink-partitioned-model.jar"/>
<fileset file="${jpatest.basedir}/eclipselink-plsql-model.jar"/>
<!--fileset file="${jpatest.basedir}/${eclipselink.pu.with.multibyte}.jar"/-->
<fileset file="${jpatest.basedir}/${jpa.performance}.jar"/>
<fileset file="${jpatest.basedir}/${jpa.performance2}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.metamodel.model}.jar"/>
<fileset file="${jpatest.basedir}/woven*.jar"/>
<fileset file="${jpatest.basedir}/*.ear"/>
<fileset file="${jpatest.basedir}/${eclipselink.cascade.deletes}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.delimited.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.extensibility.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.beanvalidation.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.beanvalidation.dynamic.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.composite.advanced.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_1}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_2}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_3}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_1}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_2}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_3}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model.member_1}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model.member_2}.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model.member_3}.jar"/>
<fileset file="${jpatest.basedir}/eclipselink-remote.jar"/>
<fileset file="${jpatest.basedir}/${eclipselink.xml.mapping.metadata.complete}.jar"/>
</delete>
</target>
<!-- Creates required directories for building. -->
<target name="init">
<mkdir dir="${jpatest.basedir}/${run.dir}"/>
<mkdir dir="${jpatest.basedir}/${classes.dir}"/>
<mkdir dir="${jpatest.basedir}/${classes21.dir}"/>
<mkdir dir="${jpatest.basedir}/${classes22.dir}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.jpa21.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.jpa22.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.annotation.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.only.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.merge.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.validation.failed.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.advanced.field.access.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.advanced.properties}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.identity.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.pu.with.spaces}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/eclipselink-partitioned-model"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/eclipselink-plsql-model"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.cascade.deletes}"/>
<!--mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.pu.with.multibyte}"/-->
<mkdir dir="${jpatest.basedir}/${build.dir}/${jpa.performance}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${jpa.performance2}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.metamodel.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.delimited.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.extensibility.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.beanvalidation.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.beanvalidation.dynamic.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_1}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_2}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_3}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_1}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_2}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_3}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_1}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_2}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_3}"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/eclipselink-remote"/>
<mkdir dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.mapping.metadata.complete}"/>
</target>
<target name="model-compile" description="compile models that need canonical processing">
<javac
srcdir="${SRC_PATH}"
destdir="${DEST_PATH}"
debug="${javac.debug}"
debuglevel="${javac.debuglevel}"
encoding="UTF-8"
optimize="${javac.optimize}"
source="${javac.version}"
target="${javac.version}"
deprecation="${javac.deprecation}"
failonerror="true">
<include name="${MODEL_PATH}/**/*.java"/>
<!-- compilerarg value="-Xlint:unchecked" compiler="javac1.7"/ -->
<compilerarg value="-Aeclipselink.persistencexml=${PERSISTENCE_XML_PATH}"/>
<!-- compilerarg value="-Aeclipselink.canonicalmodel.prefix=_" compiler="javac1.7"/ -->
<classpath refid="${COMPILE_PATH_REF}"/>
</javac>
</target>
<target name="prepare-modelgen-xml" depends="set-server-properties">
<copy todir="${jpatest.build.location}/${classes.dir}">
<fileset dir="${jpatest.build.location}/${resource.dir}" includes="eclipselink-inheritance-model/server/persistence.xml"/>
</copy>
<replace file="${jpatest.build.location}/${classes.dir}/eclipselink-inheritance-model/server/persistence.xml"
token='@transaction-type@' value="RESOURCE_LOCAL"/>
<replace file="${jpatest.build.location}/${classes.dir}/eclipselink-inheritance-model/server/persistence.xml"
token='@datasource-type@' value="jta-data-source"/>
<replace file="${jpatest.build.location}/${classes.dir}/eclipselink-inheritance-model/server/persistence.xml"
token='@data-source-name@' value="${DS_NAME}"/>
<replace file="${jpatest.build.location}/${classes.dir}/eclipselink-inheritance-model/server/persistence.xml"
token='@server-weaving@' value="${server.weaving}"/>
<replace file="${jpatest.build.location}/${classes.dir}/eclipselink-inheritance-model/server/persistence.xml"
token='@database-platform@' value="${db.platform}"/>
<replace file="${jpatest.build.location}/${classes.dir}/eclipselink-inheritance-model/server/persistence.xml"
token='@server-platform@' value="${server.platform}"/>
</target>
<!-- Compiles all tests. -->
<target name="compile" description="compile EclipseLink testing"
depends="init, config-classpath,
compile-with-modelgen, compile-standard, compile-jpa21-standard, compile-jpa22-standard, compile-springplatform, compile-criteria, compile-fullregression"/>
<target name="compile-with-modelgen" depends="prepare-modelgen-xml">
<!-- ModelGen debug code: should never fail, but in production even if it would we don't want to stop so commented out -->
<!-- fail message="'${jpatest.2.common.plugins.dir}/${modelgen.jar}' not found." unless="modelgen.jar.exist"/ -->
<copy todir="${jpatest.build.location}/${classes.dir}">
<fileset dir="${jpatest.build.location}/${resource.dir}" includes="eclipselink-canonical-meta-model/persistence.xml"/>
</copy>
<copy todir="${jpatest.build.location}/${classes.dir}">
<fileset dir="${jpatest.build.location}/${resource.dir}" includes="eclipselink-metamodel-model/persistence.xml"/>
</copy>
<!-- Copy to META-INF because IBM Compiler apparently is no longer recognizing -A (temporary) -->
<copy todir="${jpatest.build.location}/${classes.dir}/META-INF">
<fileset dir="${jpatest.build.location}/${resource.dir}/eclipselink-canonical-meta-model" includes="persistence.xml"/>
</copy>
<copy todir="${jpatest.build.location}/${classes.dir}/META-INF">
<fileset dir="${jpatest.build.location}/${resource.dir}/eclipselink-metamodel-model" includes="persistence.xml"/>
</copy>
<antcall target="model-compile" inheritRefs="true">
<param name="SRC_PATH" value="${jpatest.basedir}/${src.dir}"/>
<param name="DEST_PATH" value="${jpatest.basedir}/${classes.dir}"/>
<param name="MODEL_PATH" value="org/eclipse/persistence/testing/models/jpa/advanced"/>
<param name="PERSISTENCE_XML_PATH" value="eclipselink-canonical-meta-model/persistence.xml"/>
<param name="COMPILE_PATH_REF" value="compile.modelgen.path"/>
</antcall>
<antcall target="model-compile" inheritRefs="true">
<param name="SRC_PATH" value="${jpatest.basedir}/${src.dir}"/>
<param name="DEST_PATH" value="${jpatest.basedir}/${classes.dir}"/>
<param name="MODEL_PATH" value="org/eclipse/persistence/testing/models/jpa/inheritance"/>
<param name="PERSISTENCE_XML_PATH" value="eclipselink-inheritance-model/server/persistence.xml"/>
<param name="COMPILE_PATH_REF" value="compile.modelgen.path"/>
</antcall>
<antcall target="model-compile" inheritRefs="true">
<param name="SRC_PATH" value="${jpatest.basedir}/${src.dir}"/>
<param name="DEST_PATH" value="${jpatest.basedir}/${classes.dir}"/>
<param name="MODEL_PATH" value="org/eclipse/persistence/testing/models/jpa/inherited"/>
<param name="PERSISTENCE_XML_PATH" value="eclipselink-inheritance-model/server/persistence.xml"/>
<param name="COMPILE_PATH_REF" value="compile.modelgen.path"/>
</antcall>
<antcall target="model-compile" inheritRefs="true">
<param name="SRC_PATH" value="${jpatest.basedir}/${src.dir}"/>
<param name="DEST_PATH" value="${jpatest.basedir}/${classes.dir}"/>
<param name="MODEL_PATH" value="org/eclipse/persistence/testing/models/jpa/metamodel"/>
<param name="PERSISTENCE_XML_PATH" value="eclipselink-metamodel-model/persistence.xml"/>
<param name="COMPILE_PATH_REF" value="compile.modelgen.path"/>
</antcall>
<antcall target="model-compile" inheritRefs="true">
<param name="SRC_PATH" value="${jpatest.basedir}/${src.dir}"/>
<param name="DEST_PATH" value="${jpatest.basedir}/${classes.dir}"/>
<param name="MODEL_PATH" value="org/eclipse/persistence/testing/models/jpa/identity"/>
<param name="PERSISTENCE_XML_PATH" value="eclipselink-identity-model/persistence.xml"/>
<param name="COMPILE_PATH_REF" value="compile.modelgen.path"/>
</antcall>
<!-- This persistence.xml MUST be deleted because tests will pick it up otherwise and fail -->
<delete dir="${jpatest.build.location}/${classes.dir}/META-INF"/>
<available file="${jpatest.build.location}/${classes.dir}/org/eclipse/persistence/testing/models/jpa/advanced/Address_.class" property="modelgen.created.classes.exist"/>
</target>
<!-- Excluding JPA 2.1 tests: when both jpa2.0 compatability (2.0 compiled), and 2.1 functionality testing (2.1 compiled) need to be performed a "jpa20.compile.classpath" will need to be used -->
<target name="compile-standard">
<javac srcdir="${jpatest.basedir}/${src.dir}"
destdir="${jpatest.basedir}/${classes.dir}"
debug="${javac.debug}"
debuglevel="${javac.debuglevel}"
encoding="UTF-8"
optimize="${javac.optimize}"
source="${javac.version}"
target="${javac.version}"
deprecation="${javac.deprecation}"
failonerror="true">
<include name="org/eclipse/persistence/testing/**"/>
<exclude name="org/eclipse/persistence/testing/models/jpa21/**"/>
<exclude name="org/eclipse/persistence/testing/models/jpa22/**"/>
<exclude name="org/eclipse/persistence/testing/models/jpa/advanced/**"/>
<exclude name="org/eclipse/persistence/testing/models/jpa/metamodel/**"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa21/**"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa22/**"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/FullRegressionTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/AllCMP3TestRunModel.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/criteria/CriteriaServerTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/criteria/JUnitCriteriaMetamodelTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/deployment/CompositeEnumerationTest.java"/>
<classpath>
<path refid="compile.path"/>
</classpath>
</javac>
</target>
<!-- Prototype only: intended for the time when both jpa2.0 compatability (2.0 compiled), and 2.1 functionality testing (2.1 compiled) will need to be performed -->
<target name="compile-jpa21-standard">
<javac srcdir="${jpatest.basedir}/${src.dir}"
destdir="${jpatest.basedir}/classes21"
debug="${javac.debug}"
encoding="UTF-8"
debuglevel="${javac.debuglevel}"
optimize="${javac.optimize}"
source="${javac.version}"
target="${javac.version}"
deprecation="${javac.deprecation}"
failonerror="true">
<include name="org/eclipse/persistence/testing/**"/>
<exclude name="org/eclipse/persistence/testing/models/jpa22/**"/>
<exclude name="org/eclipse/persistence/testing/models/jpa/advanced/**"/>
<exclude name="org/eclipse/persistence/testing/models/jpa/metamodel/**"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa22/**"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/FullRegressionTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/AllCMP3TestRunModel.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/criteria/CriteriaServerTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/criteria/JUnitCriteriaMetamodelTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/deployment/CompositeEnumerationTest.java"/>
<classpath>
<path refid="jpa21.compile.path"/>
</classpath>
</javac>
</target>
<!-- Prototype only: intended for the time when both jpa2.0 compatability (2.0 compiled), and 2.2 functionality testing (2.2 compiled) will need to be performed -->
<target name="compile-jpa22-standard">
<javac srcdir="${jpatest.basedir}/${src.dir}"
destdir="${jpatest.basedir}/classes22"
debug="${javac.debug}"
encoding="UTF-8"
debuglevel="${javac.debuglevel}"
optimize="${javac.optimize}"
source="${javac.version}"
target="${javac.version}"
deprecation="${javac.deprecation}"
failonerror="true">
<include name="org/eclipse/persistence/testing/**"/>
<exclude name="org/eclipse/persistence/testing/models/jpa/advanced/**"/>
<exclude name="org/eclipse/persistence/testing/models/jpa/metamodel/**"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/FullRegressionTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/AllCMP3TestRunModel.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/criteria/CriteriaServerTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/criteria/JUnitCriteriaMetamodelTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/tests/jpa/deployment/CompositeEnumerationTest.java"/>
<classpath>
<path refid="jpa22.compile.path"/>
</classpath>
</javac>
</target>
<target name="compile-fullregression">
<javac srcdir="${jpatest.basedir}/${src.dir}"
destdir="${jpatest.basedir}/${classes.dir}"
debug="${javac.debug}"
debuglevel="${javac.debuglevel}"
encoding="UTF-8"
optimize="${javac.optimize}"
source="${javac.version}"
target="${javac.version}"
deprecation="${javac.deprecation}"
failonerror="true">
<include name="org/eclipse/persistence/testing/tests/jpa/FullRegressionTestSuite.java"/>
<include name="org/eclipse/persistence/testing/tests/jpa/AllCMP3TestRunModel.java"/>
<include name="org/eclipse/persistence/testing/tests/jpa/criteria/CriteriaServerTestSuite.java"/>
<classpath>
<path refid="compile.path"/>
</classpath>
</javac>
</target>
<target name="compile-springplatform" depends="proxy" if="is.spring">
<get dest="${spring.jlib.dir}">
<url url="http://central.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
<url url="http://central.maven.org/maven2/cglib/cglib-nodep/3.2.2/cglib-nodep-3.2.2.jar"/>
<url url="http://central.maven.org/maven2/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"/>
<url url="http://central.maven.org/maven2/jotm/jotm/2.0.10/jotm-2.0.10.jar"/>
<url url="http://central.maven.org/maven2/org/springframework/spring-context/4.2.5.RELEASE/spring-context-4.2.5.RELEASE.jar"/>
<url url="http://central.maven.org/maven2/org/springframework/spring-test/4.2.5.RELEASE/spring-test-4.2.5.RELEASE.jar"/>
<url url="http://central.maven.org/maven2/org/springframework/spring-core/4.2.5.RELEASE/spring-core-4.2.5.RELEASE.jar"/>
<url url="http://central.maven.org/maven2/org/springframework/spring-beans/4.2.5.RELEASE/spring-beans-4.2.5.RELEASE.jar"/>
<url url="http://central.maven.org/maven2/org/springframework/spring-jdbc/4.2.5.RELEASE/spring-jdbc-4.2.5.RELEASE.jar"/>
<url url="http://central.maven.org/maven2/org/springframework/spring-aop/4.2.5.RELEASE/spring-aop-4.2.5.RELEASE.jar"/>
<url url="http://central.maven.org/maven2/org/springframework/spring-tx/4.2.5.RELEASE/spring-tx-4.2.5.RELEASE.jar"/>
<url url="http://central.maven.org/maven2/org/springframework/spring-orm/4.2.5.RELEASE/spring-orm-4.2.5.RELEASE.jar"/>
<url url="http://central.maven.org/maven2/org/springframework/spring-expression/4.2.5.RELEASE/spring-expression-4.2.5.RELEASE.jar"/>
<url url="http://central.maven.org/maven2/org/springframework/spring-instrument/4.2.5.RELEASE/spring-instrument-4.2.5.RELEASE.jar"/>
<url url="http://central.maven.org/maven2/com/experlog/xapool/1.6-beta/xapool-1.6-beta.jar"/>
</get>
<javac srcdir="${eclipselink.jpa.spring.test}/${src.dir}"
destdir="${jpatest.basedir}/${classes.dir}"
debug="${javac.debug}"
debuglevel="${javac.debuglevel}"
encoding="UTF-8"
optimize="${javac.optimize}"
source="${javac.version}"
target="${javac.version}"
deprecation="${javac.deprecation}"
failonerror="true">
<include name="org/eclipse/persistence/testing/framework/server/**"/>
<classpath>
<path refid="compile.path"/>
<path refid="spring.path"/>
</classpath>
</javac>
</target>
<target name="proxy" if="http.proxyHost">
<setproxy proxyhost="${http.proxyHost}" proxyport="${http.proxyPort}"/>
</target>
<target name="compile-criteria" if="modelgen.created.classes.exist">
<!-- Compile the Modelgen (criteria metamodel) Tests -->
<!-- *** Depends upon JPA Test Framework having been compiled already -->
<echo message="Compile the Modelgen (criteria metamodel) Tests"/>
<javac srcdir="${jpatest.basedir}/${src.dir}"
destdir="${jpatest.build.location}/${classes.dir}"
debug="${javac.debug}"
debuglevel="${javac.debuglevel}"
encoding="UTF-8"
optimize="${javac.optimize}"
source="${javac.version}"
target="${javac.version}"
deprecation="${javac.deprecation}"
failonerror="true">
<include name="org/eclipse/persistence/testing/tests/jpa/criteria/JunitCriteriaMetamodelTestSuite.java"/>
<classpath>
<path refid="compile.path"/>
</classpath>
</javac>
</target>
<!-- Packages JPA persistent unit test jars. -->
<target name="package" depends="config-classpath, package-annotation, package-ddl, package-xml-only, package-xml-merge, package-jpa21-model,
package-jpa22-model, package-xml-extended, package-validation-failed, package-jpa-advanced-field-access, package-jpa-advanced-properties,
package-jpa-pu_with_spaces, package-partitioned, package-plsql, package-jpa-performance, package-jpa-performance2, package-cascade-deletes,
package-jpa-metamodel, package-delimited, package-beanvalidation, package-beanvalidation-dynamic, package-composite-advanced,
package-composite-advanced-member_1, package-composite-advanced-member_2, package-composite-advanced-member_3, package-xml-composite-advanced,
package-xml-composite-advanced-member_1, package-xml-composite-advanced-member_2, package-xml-composite-advanced-member_3,
package-xml-extended-composite-advanced, package-xml-extended-composite-advanced-member_1, package-xml-extended-composite-advanced-member_2,
package-xml-extended-composite-advanced-member_3, package-extensibility, package-jpa-remote, package-identity-model,
package-xml-mapping-metadata-complete" description="build EclipseLink jar">
<jar jarfile="${jpatest.basedir}/${jpatest.framework.jar}">
<fileset dir="${jpatest.basedir}/${classes.dir}" includes="org/eclipse/persistence/testing/framework/**/*.class"/>
</jar>
<jar jarfile="${jpatest.basedir}/${jpa.test.jar}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/tests/**/*.class"
excludes="org/eclipse/persistence/testing/framework/**/*.class,
org/eclipse/persistence/testing/tests/jpa21/**/*.class,
org/eclipse/persistence/testing/tests/jpa22/**/*.class"/>
</jar>
<jar jarfile="${jpatest.basedir}/${jpa21.test.jar}">
<fileset dir="${jpatest.basedir}/classes21"
includes="org/eclipse/persistence/testing/tests/**/*.class"
excludes="org/eclipse/persistence/testing/framework/**/*.class,
org/eclipse/persistence/testing/tests/jpa22/**/*.class"/>
</jar>
<jar jarfile="${jpatest.basedir}/${jpa22.test.jar}">
<fileset dir="${jpatest.basedir}/classes22"
includes="org/eclipse/persistence/testing/tests/**/*.class,org/eclipse/samples/*"
excludes="org/eclipse/persistence/testing/framework/**/*.class,
org/eclipse/persistence/testing/tests/jpa21/**/*.class"/>
</jar>
</target>
<!-- Copy Spring specified ***spring.xml, appContext.properties and persistence.xml to default build location-->
<target name="prepare-spring-xmls" depends="init, config-classpath" if="is.spring">
<copy todir="${jpatest.basedir}/${build.dir}/${MODEL_NAME}">
<fileset dir="${eclipselink.jpa.spring.test}/resource/jpa-spring" includes="appContext.properties"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${MODEL_NAME}/META-INF" overwrite="true">
<fileset dir="${jpatest.basedir}/${resource.dir}/${MODEL_NAME}" includes="persistence.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${MODEL_NAME}">
<fileset dir="${eclipselink.jpa.spring.test}/resource/jpa-spring" includes="**spring.xml"/>
</copy>
<replace dir="${jpatest.basedir}/${build.dir}/${MODEL_NAME}" token='@dbURL@' value="${db.url}">
<include name="appContext.properties"/>
<include name="META-INF/persistence.xml"/>
<include name="**spring.xml"/>
</replace>
<replace dir="${jpatest.basedir}/${build.dir}/${MODEL_NAME}" token='@driverClass@' value="${db.driver}">
<include name="appContext.properties"/>
<include name="META-INF/persistence.xml"/>
<include name="**spring.xml"/>
</replace>
<replace dir="${jpatest.basedir}/${build.dir}/${MODEL_NAME}" token='@dbUser@' value="${db.user}">
<include name="appContext.properties"/>
<include name="META-INF/persistence.xml"/>
<include name="**spring.xml"/>
</replace>
<replace dir="${jpatest.basedir}/${build.dir}/${MODEL_NAME}" token='@dbPassword@' value="${db.pwd}">
<include name="appContext.properties"/>
<include name="**/persistence.xml"/>
<include name="**spring.xml"/>
</replace>
<replace dir="${jpatest.basedir}/${build.dir}/${MODEL_NAME}" token='@dbPlatform@' value="${db.platform}">
<include name="appContext.properties"/>
<include name="**/persistence.xml"/>
<include name="**spring.xml"/>
</replace>
</target>
<!-- Copy OSGi specified persistence.xml to default build location-->
<target name="prepare-osgi-xmls" depends="init, config-classpath" if="is.osgi">
<condition property="TEST_WEAVING" value="true" else="false">
<equals arg1="${test.weaving}" arg2="-DTEST_NO_WEAVING=false" casesensitive="false" trim="true"/>
</condition>
<copy todir="${jpatest.basedir}/${build.dir}/${MODEL_NAME}/META-INF" overwrite="true">
<fileset dir="${jpatest.basedir}/${resource.dir}/${MODEL_NAME}/osgi" includes="persistence.xml"/>
</copy>
<replaceregexp file="${jpatest.basedir}/${build.dir}/${MODEL_NAME}/META-INF/persistence.xml"
match='property name="eclipselink.weaving"\s+value="false"'
replace='property name="eclipselink.weaving" value="${TEST_WEAVING}"'
/>
</target>
<target name="package-annotation" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.annotation.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.annotation.model}" includes="*.xml"/>
</copy>
<!-- copy jaxb index, properties files -->
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.annotation.model}/">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.annotation.model}" includes="org/eclipse/persistence/testing/models/jpa/lob/*"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.annotation.model}">
<!-- 248780: exclude copies of classes from this eclipselink-annotation-model.jar if weaving is disabled in any other jar -->
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/advanced/**
org/eclipse/persistence/testing/models/jpa/cacheable/**
org/eclipse/persistence/testing/models/jpa/cascadedeletes/**
org/eclipse/persistence/testing/models/jpa/complexaggregate/**
org/eclipse/persistence/testing/models/jpa/customer/**
org/eclipse/persistence/testing/models/jpa/datatypes/**
org/eclipse/persistence/testing/models/jpa/datetime/**
org/eclipse/persistence/testing/models/jpa/inheritance/**
org/eclipse/persistence/testing/models/jpa/inherited/**
org/eclipse/persistence/testing/models/jpa/lob/**
org/eclipse/persistence/testing/models/nativeapitest/**
org/eclipse/persistence/testing/models/jpa/orphanremoval/**
org/eclipse/persistence/testing/models/jpa/privateowned/**
org/eclipse/persistence/testing/models/jpa/relationships/**
org/eclipse/persistence/testing/models/jpa/sessionbean/**
org/eclipse/persistence/testing/models/jpa/virtualattribute/**"/>
</copy>
<antcall target="prepare-spring-xmls" inheritRefs="true">
<param name="MODEL_NAME" value="${eclipselink.annotation.model}"/>
</antcall>
<antcall target="prepare-osgi-xmls" inheritRefs="true">
<param name="MODEL_NAME" value="${eclipselink.annotation.model}"/>
</antcall>
<jar jarfile="${jpatest.basedir}/${eclipselink.annotation.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.annotation.model}">
</fileset>
</jar>
</target>
<target name="package-xml-mapping-metadata-complete" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.mapping.metadata.complete}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.xml.mapping.metadata.complete}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.mapping.metadata.complete}/">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.xml.mapping.metadata.complete}" includes="org/eclipse/persistence/testing/models/jpa/xml/xmlmetadatacomplete/*"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.mapping.metadata.complete}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/xmlmetadatacomplete/**"/>
</copy>
<antcall target="prepare-spring-xmls" inheritRefs="true">
<param name="MODEL_NAME" value="${eclipselink.xml.mapping.metadata.complete}"/>
</antcall>
<antcall target="prepare-osgi-xmls" inheritRefs="true">
<param name="MODEL_NAME" value="${eclipselink.xml.mapping.metadata.complete}"/>
</antcall>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.mapping.metadata.complete}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.mapping.metadata.complete}">
</fileset>
</jar>
</target>
<target name="package-ddl" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.ddl.generation.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.ddl.generation.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.ddl.generation.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/ddlgeneration/**,
org/eclipse/persistence/testing/models/jpa/xml/merge/inherited/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.ddl.generation.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.ddl.generation.model}">
</fileset>
</jar>
</target>
<target name="package-xml-only" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.only.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.xml.only.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.only.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/**"
excludes="org/eclipse/persistence/testing/models/jpa/xml/merge/**
org/eclipse/persistence/testing/models/jpa/xml/composite/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.only.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.only.model}">
</fileset>
</jar>
</target>
<target name="package-cascade-deletes" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.cascade.deletes}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.cascade.deletes}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.cascade.deletes}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/cascadedeletes/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.cascade.deletes}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.cascade.deletes}">
</fileset>
</jar>
</target>
<target name="package-jpa21-model" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.jpa21.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.jpa21.model}" includes="*.xml, *.jdbc"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.jpa21.model}">
<fileset dir="${jpatest.basedir}/classes21"
includes="org/eclipse/persistence/testing/models/jpa21/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.jpa21.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.jpa21.model}">
</fileset>
</jar>
</target>
<target name="package-jpa22-model" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.jpa22.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.jpa22.model}" includes="*.xml, *.jdbc"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.jpa22.model}">
<fileset dir="${jpatest.basedir}/classes22"
includes="org/eclipse/persistence/testing/models/jpa22/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.jpa22.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.jpa22.model}">
</fileset>
</jar>
</target>
<target name="package-xml-extended" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/eclipselinkorm/${eclipselink.xml.extended.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/advanced/**,
org/eclipse/persistence/testing/models/jpa/xml/inheritance/**,
org/eclipse/persistence/testing/models/jpa/xml/relationships/**,
org/eclipse/persistence/testing/models/jpa/xml/complexaggregate/**"
excludes="org/eclipse/persistence/testing/models/jpa/xml/relationships/unidirectional/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.extended.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.model}">
</fileset>
</jar>
</target>
<target name="package-xml-merge" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.merge.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.xml.merge.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.merge.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/merge/**"
excludes="org/eclipse/persistence/testing/models/jpa/xml/merge/inherited/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.merge.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.merge.model}">
</fileset>
</jar>
</target>
<target name="package-validation-failed" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.validation.failed.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.validation.failed.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.validation.failed.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/validationfailed/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.validation.failed.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.validation.failed.model}">
</fileset>
</jar>
</target>
<target name="package-jpa-advanced-field-access" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.advanced.field.access.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.advanced.field.access.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.advanced.field.access.model}/">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.advanced.field.access.model}" includes="org/eclipse/persistence/testing/models/jpa/fieldaccess/relationships/*"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.advanced.field.access.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/fieldaccess/advanced/**"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.advanced.field.access.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/fieldaccess/relationships/**"/>
</copy>
<antcall target="prepare-spring-xmls" inheritRefs="true">
<param name="MODEL_NAME" value="${eclipselink.advanced.field.access.model}"/>
</antcall>
<antcall target="prepare-osgi-xmls" inheritRefs="true">
<param name="MODEL_NAME" value="${eclipselink.advanced.field.access.model}"/>
</antcall>
<jar jarfile="${jpatest.basedir}/${eclipselink.advanced.field.access.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.advanced.field.access.model}">
</fileset>
</jar>
</target>
<target name="package-jpa-remote" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/eclipselink-remote/META-INF">
<fileset dir="${jpatest.basedir}/resource/eclipselink-remote" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/eclipselink-remote/">
<fileset dir="${jpatest.basedir}/resource/eclipselink-remote" includes="org/eclipse/persistence/testing/models/jpa/fieldaccess/relationships/*"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/eclipselink-remote">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/fieldaccess/advanced/**"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/eclipselink-remote">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/fieldaccess/relationships/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/eclipselink-remote.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/eclipselink-remote">
</fileset>
</jar>
</target>
<target name="package-jpa-advanced-properties" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.advanced.properties}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.advanced.properties}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.advanced.properties}/">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.advanced.properties}" includes="org/eclipse/persistence/testing/models/jpa/jpaadvancedproperties/*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.advanced.properties}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/jpaadvancedproperties/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.advanced.properties}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.advanced.properties}">
</fileset>
</jar>
</target>
<target name="package-jpa-pu_with_spaces" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.pu.with.spaces}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.pu.with.spaces}" includes="*.xml"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.pu.with.spaces}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.pu.with.spaces}">
</fileset>
</jar>
</target>
<target name="package-partitioned" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/eclipselink-partitioned-model/META-INF">
<fileset dir="${jpatest.basedir}/resource/eclipselink-partitioned-model" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/eclipselink-partitioned-model">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/partitioned/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/eclipselink-partitioned-model.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/eclipselink-partitioned-model">
</fileset>
</jar>
</target>
<target name="package-plsql" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/eclipselink-plsql-model/META-INF">
<fileset dir="${jpatest.basedir}/resource/eclipselink-plsql-model" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/eclipselink-plsql-model">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/plsql/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/eclipselink-plsql-model.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/eclipselink-plsql-model">
</fileset>
</jar>
</target>
<target name="package-jpa-pu_with_multibyte" depends="">
<!--copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.pu.with.multibyte}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.pu.with.multibyte}" includes="*.xml"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.pu.with.multibyte}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.pu.with.multibyte}">
</fileset>
</jar-->
</target>
<target name="package-jpa-performance" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${jpa.performance}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${jpa.performance}/META-INF" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${jpa.performance}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/performance/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${jpa.performance}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${jpa.performance}">
</fileset>
</jar>
</target>
<target name="package-identity-model" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.identity.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.identity.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.identity.model}">
<fileset dir="${jpatest.basedir}/${classes22.dir}"
includes="org/eclipse/persistence/testing/models/jpa22/identity/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.identity.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.identity.model}">
</fileset>
</jar>
</target>
<target name="package-jpa-performance2" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${jpa.performance2}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${jpa.performance2}/META-INF" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${jpa.performance2}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/performance2/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${jpa.performance2}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${jpa.performance2}">
</fileset>
</jar>
</target>
<target name="package-jpa-metamodel" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.metamodel.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.metamodel.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.metamodel.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/metamodel/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.metamodel.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.metamodel.model}">
</fileset>
</jar>
</target>
<target name="package-delimited" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.delimited.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.delimited.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.delimited.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/delimited/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.delimited.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.delimited.model}">
</fileset>
</jar>
</target>
<target name="package-extensibility" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.extensibility.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.extensibility.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.extensibility.model}">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.extensibility.model}/repository" includes="*.xml, *.properties"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.extensibility.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/extensibility/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.extensibility.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.extensibility.model}">
</fileset>
</jar>
</target>
<target name="package-beanvalidation" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.beanvalidation.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.beanvalidation.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.beanvalidation.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/beanvalidation/BeanValidationJunitTest*"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.beanvalidation.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.beanvalidation.model}">
</fileset>
</jar>
</target>
<target name="package-beanvalidation-dynamic" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.beanvalidation.dynamic.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.beanvalidation.dynamic.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.beanvalidation.dynamic.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/beanvalidation/dynamic/BeanValidationDynamicEntityJunitTest*"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.beanvalidation.dynamic.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.beanvalidation.dynamic.model}">
</fileset>
</jar>
</target>
<target name="package-composite-advanced" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.composite.advanced.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/composite/advanced/*"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.composite.advanced.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model}">
</fileset>
</jar>
</target>
<target name="package-composite-advanced-member_1" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_1}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.composite.advanced.model.member_1}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_1}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/composite/advanced/member_1/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_1}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_1}">
</fileset>
</jar>
</target>
<target name="package-composite-advanced-member_2" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_2}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.composite.advanced.model.member_2}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_2}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/composite/advanced/member_2/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_2}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_2}">
</fileset>
</jar>
</target>
<target name="package-composite-advanced-member_3" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_3}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.composite.advanced.model.member_3}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_3}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/composite/advanced/member_3/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_3}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.composite.advanced.model.member_3}">
</fileset>
</jar>
</target>
<target name="package-xml-composite-advanced" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.xml.composite.advanced.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/composite/advanced/*"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model}">
</fileset>
</jar>
</target>
<target name="package-xml-composite-advanced-member_1" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_1}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.xml.composite.advanced.model.member_1}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_1}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/composite/advanced/member_1/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_1}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_1}">
</fileset>
</jar>
</target>
<target name="package-xml-composite-advanced-member_2" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_2}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.xml.composite.advanced.model.member_2}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_2}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/composite/advanced/member_2/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_2}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_2}">
</fileset>
</jar>
</target>
<target name="package-xml-composite-advanced-member_3" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_3}/META-INF">
<fileset dir="${jpatest.basedir}/resource/${eclipselink.xml.composite.advanced.model.member_3}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_3}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/composite/advanced/member_3/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_3}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.composite.advanced.model.member_3}">
</fileset>
</jar>
</target>
<target name="package-xml-extended-composite-advanced" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model}/META-INF">
<fileset dir="${jpatest.basedir}/resource/eclipselinkorm/${eclipselink.xml.extended.composite.advanced.model}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/composite/advanced/*"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model}">
</fileset>
</jar>
</target>
<target name="package-xml-extended-composite-advanced-member_1" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_1}/META-INF">
<fileset dir="${jpatest.basedir}/resource/eclipselinkorm/${eclipselink.xml.extended.composite.advanced.model.member_1}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_1}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/composite/advanced/member_1/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model.member_1}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_1}">
</fileset>
</jar>
</target>
<target name="package-xml-extended-composite-advanced-member_2" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_2}/META-INF">
<fileset dir="${jpatest.basedir}/resource/eclipselinkorm/${eclipselink.xml.extended.composite.advanced.model.member_2}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_2}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/composite/advanced/member_2/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model.member_2}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_2}">
</fileset>
</jar>
</target>
<target name="package-xml-extended-composite-advanced-member_3" depends="">
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_3}/META-INF">
<fileset dir="${jpatest.basedir}/resource/eclipselinkorm/${eclipselink.xml.extended.composite.advanced.model.member_3}" includes="*.xml"/>
</copy>
<copy todir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_3}">
<fileset dir="${jpatest.basedir}/${classes.dir}"
includes="org/eclipse/persistence/testing/models/jpa/xml/composite/advanced/member_3/**"/>
</copy>
<jar jarfile="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model.member_3}.jar">
<fileset dir="${jpatest.basedir}/${build.dir}/${eclipselink.xml.extended.composite.advanced.model.member_3}">
</fileset>
</jar>
</target>
<!-- Testing -->
<!-- Classpath used for running tests. -->
<macrodef name="config-run-path">
<sequential>
<path id="run.classpath">
<pathelement path="${jpatest.basedir}/${classes.dir}"/>
<path refid="compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${jpatest.basedir}/${jpatest.framework.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa.test.jar}"/>
<pathelement path="${jpatest.basedir}/${eclipselink.annotation.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.ddl.generation.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.only.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.merge.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.validation.failed.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.advanced.field.access.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.advanced.properties}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.pu.with.spaces}.jar"/>
<pathelement path="${jpatest.basedir}/eclipselink-partitioned-model.jar"/>
<pathelement path="${jpatest.basedir}/eclipselink-plsql-model.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.cascade.deletes}.jar"/>
<pathelement path="${jpatest.basedir}/${jpa.performance}.jar"/>
<pathelement path="${jpatest.basedir}/${jpa.performance2}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.metamodel.model}.jar"/>
<!--pathelement path="${jpatest.basedir}/${eclipselink.pu.with.multibyte}.jar"/-->
<pathelement path="${jpatest.basedir}/${eclipselink.delimited.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.extensibility.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.beanvalidation.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_1}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_2}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_3}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_1}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_2}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_3}.jar"/>
<pathelement path="${jpatest.basedir}/eclipselink-remote.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.mapping.metadata.complete}.jar"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${json.jar}"/>
</path>
<path id="jpa21.run.classpath">
<pathelement path="${jpatest.basedir}/${classes.dir}"/>
<path refid="jpa21.compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${jpatest.basedir}/${jpatest.framework.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa.test.jar}"/>
<pathelement path="${jpatest.basedir}/${eclipselink.annotation.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.ddl.generation.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.only.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.merge.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.validation.failed.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.advanced.field.access.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.advanced.properties}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.pu.with.spaces}.jar"/>
<pathelement path="${jpatest.basedir}/eclipselink-partitioned-model.jar"/>
<pathelement path="${jpatest.basedir}/eclipselink-plsql-model.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.cascade.deletes}.jar"/>
<pathelement path="${jpatest.basedir}/${jpa.performance}.jar"/>
<pathelement path="${jpatest.basedir}/${jpa.performance2}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.metamodel.model}.jar"/>
<!--pathelement path="${jpatest.basedir}/${eclipselink.pu.with.multibyte}.jar"/-->
<pathelement path="${jpatest.basedir}/${eclipselink.delimited.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.extensibility.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.beanvalidation.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_1}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_2}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_3}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_1}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_2}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_3}.jar"/>
<pathelement path="${jpatest.basedir}/eclipselink-remote.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.mapping.metadata.complete}.jar"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${json.jar}"/>
</path>
<path id="jpa22.run.classpath">
<pathelement path="${jpatest.basedir}/${classes.dir}"/>
<path refid="jpa22.compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${jpatest.basedir}/${jpatest.framework.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa.test.jar}"/>
<pathelement path="${jpatest.basedir}/${eclipselink.annotation.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.ddl.generation.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.only.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.merge.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.validation.failed.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.advanced.field.access.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.advanced.properties}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.pu.with.spaces}.jar"/>
<pathelement path="${jpatest.basedir}/eclipselink-partitioned-model.jar"/>
<pathelement path="${jpatest.basedir}/eclipselink-plsql-model.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.cascade.deletes}.jar"/>
<pathelement path="${jpatest.basedir}/${jpa.performance}.jar"/>
<pathelement path="${jpatest.basedir}/${jpa.performance2}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.metamodel.model}.jar"/>
<!--pathelement path="${jpatest.basedir}/${eclipselink.pu.with.multibyte}.jar"/-->
<pathelement path="${jpatest.basedir}/${eclipselink.delimited.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.extensibility.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.beanvalidation.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_1}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_2}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model.member_3}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_1}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_2}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model.member_3}.jar"/>
<pathelement path="${jpatest.basedir}/eclipselink-remote.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.mapping.metadata.complete}.jar"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${json.jar}"/>
</path>
<path id="run.bean.validation.classpath">
<path refid="run.classpath"/>
<pathelement path="${extensions.depend.dir}/${validation-impl.jar}"/>
<pathelement path="${extensions.depend.dir}/${jboss-logging.jar}"/>
<pathelement path="${extensions.depend.dir}/${javax.el.jar}"/>
<pathelement path="${extensions.depend.dir}/${classmate.jar}"/>
<pathelement path="${extensions.depend.dir}/${javax.validation.jar}"/>
</path>
<path id="run.bean.validation.dynamic.classpath">
<path refid="run.bean.validation.classpath"/>
<pathelement path="${jpatest.basedir}/${eclipselink.beanvalidation.dynamic.model}.jar"/>
</path>
<path id="run.jpa21.classpath">
<pathelement path="${jpatest.basedir}/${classes21.dir}"/>
<path refid="jpa21.compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${jpatest.basedir}/${jpatest.framework.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa21.test.jar}"/>
<pathelement path="${jpatest.basedir}/${eclipselink.jpa21.model}.jar"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${json.jar}"/>
</path>
<path id="run.jpa22.classpath">
<pathelement path="${jpatest.basedir}/${classes22.dir}"/>
<path refid="jpa22.compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${jpatest.basedir}/${jpatest.framework.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa22.test.jar}"/>
<pathelement path="${jpatest.basedir}/${eclipselink.jpa22.model}.jar"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${json.jar}"/>
</path>
<path id="run.extended.classpath">
<pathelement path="${jpatest.basedir}/${classes.dir}"/>
<path refid="compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${jpatest.basedir}/${jpatest.framework.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa.test.jar}"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.extended.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model.member_1}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model.member_2}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model.member_3}.jar"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${json.jar}"/>
</path>
<path id="run.identity.classpath">
<pathelement path="${jpatest.basedir}/${classes22.dir}"/>
<path refid="jpa22.compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${jpatest.basedir}/${jpatest.framework.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa22.test.jar}"/>
<pathelement path="${jpatest.basedir}/${eclipselink.identity.model}.jar"/>
</path>
<path id="run.weaver.classpath">
<pathelement path="${jpatest.basedir}/${classes.dir}"/>
<path refid="jpa21.compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
</path>
<path id="run.performance.classpath">
<pathelement path="${jpatest.basedir}/${classes.dir}"/>
<path refid="compile.path"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${jpatest.basedir}/${jpatest.framework.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa.test.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa.performance}.jar"/>
<pathelement path="${jpatest.basedir}/${jpa.performance2}.jar"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${json.jar}"/>
</path>
<path id="run.oracle.classpath">
<path refid="run.classpath"/>
<!-- Currently the Oracle extensions are included to allow running Oracle extensions tests from here. -->
<pathelement path="${jpatest.2.oracletest.dir}/${classes.dir}"/>
<pathelement path="${eclipselink.extension.oracle}/${classes.dir}"/>
<pathelement path="${oracle.extensions.depend.dir}/${oracle.xdb.jar}"/>
<pathelement path="${oracle.extensions.depend.dir}/${oracle.xmlparser.jar}"/>
<pathelement path="${oracle.extensions.depend.dir}/${oracle.orai18n-mapping.jar}"/>
<pathelement path="${jpatest.2.oracletest.dir}/${eclipselink.timestamptz.model}.jar"/>
<pathelement path="${jpatest.2.oracletest.dir}/${eclipselink.customfeatures.model}.jar"/>
<pathelement path="${jpatest.2.oracletest.dir}/${eclipselink.proxyauthentication.model}.jar"/>
<pathelement path="${jpatest.2.oracletest.dir}/${oracle.jpa.test.jar}"/>
<pathelement path="${jpatest.2.oracletest.dir}/eclipselink-dcn-model.jar"/>
</path>
<path id="run.oracle.spatial.classpath">
<path refid="run.classpath"/>
<!-- Currently the Oracle extensions are included to allow running Oracle extensions tests from here. -->
<pathelement path="${jpatest.2.oracletest.dir}/${classes.dir}"/>
<pathelement path="${jpatest.2.oracle.spatial.test.dir}/${classes.dir}"/>
<pathelement path="${eclipselink.extension.oracle}/${classes.dir}"/>
<pathelement path="${jpatest.2.oracle.spatial.test.dir}/${eclipselink.struct.converter.model}.jar"/>
<pathelement path="${jpatest.2.oracle.spatial.test.dir}/${oracle.jpa.test.jar}"/>
<pathelement path="${oracle.extensions.depend.dir}/${oracle.sdoapi.jar}"/>
</path>
<path id="run.oracle.nosql.classpath">
<pathelement path="${jpatest.2.oracle.nosqltest.dir}/${classes.dir}"/>
<pathelement path="${jpatest.2.oracle.nosql.dir}/${classes.dir}"/>
<path refid="compile.path"/>
<fileset dir="${jpatest.2.common.plugins.dir}" includes="org.eclipse.persistence.oracle.nosql_*.jar"/>
<pathelement path="${oracle.nosql.jar.dir}/${oracle.nosql.jar}"/>
<pathelement path="${jpatest.basedir}/${jpatest.framework.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa.test.jar}"/>
<pathelement path="${jpatest.2.oracle.nosqltest.dir}/eclipselink-oracle-nosql-test.jar"/>
<pathelement path="${jpatest.2.oracle.nosqltest.dir}/eclipselink-oracle-nosql-model.jar"/>
</path>
</sequential>
</macrodef>
<!-- Clean all build generated content. -->
<target name="clean-test" description="Clean the test">
<delete dir="${jpatest.basedir}/${report.dir}"/>
<delete dir="${jpatest.basedir}/${run.dir}"/>
<mkdir dir="${jpatest.basedir}/${report.dir}"/>
<mkdir dir="${jpatest.basedir}/${run.dir}"/>
</target>
<!-- Test target to initialize a clean database -->
<target name="clear-database" depends="config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.ClearDatabaseSchemaTest"/>
<param name="TEST_AGENT" value="-Dignore"/>
<param name="TEST_WEAVING" value="-Dignore"/>
<param name="TEST_WEAVING_OPTION" value="-Dignore"/>
<param name="ORM_TESTING" value="-Dignore"/>
<param name="RUN_PATH" value="run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
</target>
<!-- Default test target, run the FullRegressionTestSuite -->
<!-- persistence.xml with PU "default" is in resource/eclipselink-annotation-model -->
<target name="test" depends="clean-test, config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="${test.class}"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="generate-report" inheritRefs="true"/>
</target>
<!-- Runs LRG (AllCMP3TestRunModel) with agent. -->
<target name="test-lrg" depends="clean-test, config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.AllCMP3TestRunModel"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.xml.EntityMappingsJUnitTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.extended.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="test-dynamic" inheritRefs="true"/>
<antcall target="test-remote-jpa" inheritRefs="true"/>
<antcall target="run-bean-validation-tests" inheritRefs="true"/>
<antcall target="oracle-test" inheritRefs="true"/>
<antcall target="generate-report" inheritRefs="true"/>
</target>
<!-- Runs LRG (AllCMP3TestRunModel) with agent. -->
<target name="test-lrg21" depends="clean-test, config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.AllCMP3TestRunModel"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<!-- param name="RUN_PATH" value="run.classpath"/ -->
<param name="RUN_PATH" value="jpa21.run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.xml.EntityMappingsJUnitTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.extended.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa21.advanced.JPA21TestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.jpa21.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.weaving.SimpleWeaverTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.weaver.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="test-dynamic" inheritRefs="true"/>
<!--
unstable on (public) hudson, needs to be stabilized first
<antcall target="test-remote-jpa" inheritRefs="true"/>
-->
<antcall target="run-bean-validation-tests" inheritRefs="true"/>
<antcall target="oracle-test" inheritRefs="true"/>
<antcall target="generate-report" inheritRefs="true"/>
</target>
<!-- Runs LRG (AllCMP3TestRunModel) with agent. -->
<target name="test-lrg22" depends="clean-test, config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.AllCMP3TestRunModel"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<!-- param name="RUN_PATH" value="run.classpath"/ -->
<param name="RUN_PATH" value="jpa22.run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.xml.EntityMappingsJUnitTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.extended.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa22.advanced.JPA22TestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.jpa22.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.weaving.SimpleWeaverTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.weaver.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<!--
unstable on (public) hudson, needs to be stabilized first
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.dynamic.AllTests"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.extended.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="test-remote-jpa" inheritRefs="true"/>
-->
<antcall target="run-bean-validation-tests" inheritRefs="true"/>
<antcall target="oracle-test" inheritRefs="true"/>
<antcall target="generate-report" inheritRefs="true"/>
</target>
<!-- Run dynamic entities tests standalone. -->
<target name="test-dynamic" depends="config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.dynamic.AllTests"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.extended.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
</target>
<!-- Run dynamic entities tests standalone. -->
<target name="test-identity" depends="config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa22.identity.IdentityTest"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.identity.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
</target>
<!-- Run dynamic entities tests standalone and generate tests report. -->
<target name="test-dynamic-report" depends="test-dynamic, generate-report"/>
<!-- Runs JPA 2.0 BeanValidation tests. -->
<target name="run-bean-validation-tests" depends="config-classpath" if="validate.jar.exists">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.beanvalidation.BeanValidationJunitTest"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.bean.validation.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.beanvalidation.dynamic.BeanValidationDynamicEntityJunitTest"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.bean.validation.dynamic.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
</target>
<target name="oracle-test" if="is.oracle" depends="config-classpath">
<!-- Initializes Oracle database proxy users for ProxyAuthenticationTestSuite. -->
<property name="pa.proxyuser" value="${db.user}_PROXY"/>
<property name="pa.proxyuser2" value="${db.user}_PROXY2"/>
<antcall target="setup-proxy-authentication">
<param name="PROXY_USER" value="${pa.proxyuser}"/>
<param name="PROXY_USER2" value="${pa.proxyuser2}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.OracleJPATestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.oracle.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.OracleJPASpatialTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.oracle.spatial.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="oracle-proxy-test" inheritRefs="true"/>
</target>
<!-- Oracle proxy authentication needs to be setup for the tests. -->
<target name="oracle-proxy-test">
<antcall target="setup-proxy-authentication">
<param name="DB_USER" value="PAS_CONN"/>
<param name="DB_PWD" value="pas_conn"/>
<param name="PROXY_USER" value="PAS_PROXY"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.proxyauthentication.ProxyAuthenticationServerTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.oracle.classpath"/>
<param name="DB_URL" value="${db.url}"/>
<param name="DB_USER" value="PAS_CONN"/>
<param name="DB_PWD" value="pas_conn"/>
</antcall>
</target>
<!-- Runs Remote (RMI) JPA tests. -->
<target name="test-remote-jpa" depends="config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.remote.RemoteEntityManagerTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
</target>
<!-- Runs JPA Oracle NoSQL tests. -->
<target name="oracle-nosql-test" depends="clean-test, config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.nosql.NoSQLTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.oracle.nosql.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.nosql.NoSQLMappedTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.oracle.nosql.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="generate-report" inheritRefs="true"/>
</target>
<!-- Runs SRG (EntityManagerJUnitTestSuite) with agent. -->
<target name="test-srg" depends="clean-test,config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="generate-report" inheritRefs="true"/>
</target>
<!-- Runs SRG (EntityManagerJUnitTestSuite) with agent. -->
<target name="test-srg21" depends="clean-test,config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="jpa21.run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="generate-report" inheritRefs="true"/>
</target>
<!-- Runs SRG (EntityManagerJUnitTestSuite) with agent. -->
<target name="test-srg22" depends="clean-test,config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="jpa22.run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="generate-report" inheritRefs="true"/>
</target>
<!-- Runs FullRegressionTestSuite with no agent. TEST_NO_WEAVING property informs tests that no weaving was done. -->
<target name="test-no-weave" depends="clean-test,config-classpath">
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.AllCMP3TestRunModel"/>
<param name="TEST_AGENT" value="-Dignore"/>
<param name="TEST_WEAVING" value="-DTEST_NO_WEAVING=true"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.xml.EntityMappingsJUnitTestSuite"/>
<param name="TEST_AGENT" value="-Dignore"/>
<param name="TEST_WEAVING" value="-DTEST_NO_WEAVING=true"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.extended.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="generate-report" inheritRefs="true"/>
</target>
<!-- Runs FullRegressionTestSuite with static weaving. -->
<target name="test-static-weave" depends="clean-test, config-classpath, run-weaver">
<path id="run.classpath.static">
<pathelement path="${jpatest.basedir}/woven-${eclipselink.annotation.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.ddl.generation.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.xml.only.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.xml.merge.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.validation.failed.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.advanced.field.access.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.advanced.properties}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.pu.with.spaces}.jar"/>
<pathelement path="${jpatest.basedir}/woven-eclipselink-partitioned-model.jar"/>
<pathelement path="${jpatest.basedir}/woven-eclipselink-plsql-model.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.cascade.deletes}.jar"/>
<!--pathelement path="${jpatest.basedir}/woven-${eclipselink.pu.with.multibyte}.jar"/-->
<pathelement path="${jpatest.basedir}/woven-${jpa.performance}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${jpa.performance2}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.metamodel.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.delimited.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.extensibility.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.beanvalidation.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.beanvalidation.dynamic.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.composite.advanced.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.composite.advanced.model.member_1}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.composite.advanced.model.member_2}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.composite.advanced.model.member_3}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.composite.advanced.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.xml.composite.advanced.model.member_1}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.xml.composite.advanced.model.member_2}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.xml.composite.advanced.model.member_3}.jar"/>
<pathelement path="${jpatest.basedir}/woven-eclipselink-remote.jar"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${jpatest.basedir}/${classes.dir}"/>
<pathelement path="${jpatest.basedir}/${jpatest.framework.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa.test.jar}"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.xml.mapping.metadata.complete}.jar"/>
<path refid="compile.path"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${json.jar}"/>
</path>
<path id="run.extended.classpath.static">
<pathelement path="${jpatest.basedir}/woven-${eclipselink.xml.extended.model}.jar"/>
<pathelement path="${jpatest.basedir}/${eclipselink.xml.extended.composite.advanced.model}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.xml.extended.composite.advanced.model.member_1}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.xml.extended.composite.advanced.model.member_2}.jar"/>
<pathelement path="${jpatest.basedir}/woven-${eclipselink.xml.extended.composite.advanced.model.member_3}.jar"/>
<pathelement path="${jdbc.driver.jar}"/>
<pathelement path="${jpatest.basedir}/${classes.dir}"/>
<pathelement path="${jpatest.basedir}/${jpatest.framework.jar}"/>
<pathelement path="${jpatest.basedir}/${jpa.test.jar}"/>
<path refid="compile.path"/>
<pathelement path="${jpatest.2.common.plugins.dir}/${json.jar}"/>
</path>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.AllCMP3TestRunModel"/>
<param name="TEST_AGENT" value="-Dignore"/>
<param name="TEST_WEAVING" value="-Dignore"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.classpath.static"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.xml.EntityMappingsJUnitTestSuite"/>
<param name="TEST_AGENT" value="-Dignore"/>
<param name="TEST_WEAVING" value="-Dignore"/>
<param name="TEST_WEAVING_OPTION" value="${test.weaving.option}"/>
<param name="ORM_TESTING" value="-Dorm.testing=eclipselink"/>
<param name="RUN_PATH" value="run.extended.classpath.static"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="generate-report" inheritRefs="true"/>
</target>
<!-- Prompt runner test target, runs test.class from test.properties (default is LRG). -->
<target name="test-prompt" depends="clean-test,config-classpath">
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="${test.class}"/>
<param name="RUN_PATH" value="run.classpath"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
</antcall>
</target>
<!-- Runs performance tests. -->
<target name="test-performance" depends="clean-test,config-classpath">
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.JPAPerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.performance.classpath"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
</antcall>
</target>
<!-- Runs performance tests. -->
<target name="test-performance2" depends="clean-test,config-classpath">
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.JPA2PerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.performance.classpath"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
</antcall>
</target>
<!-- Runs performance tests, no cache. -->
<target name="test-performance2-nocache" depends="clean-test,config-classpath">
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.JPA2IsolatedPerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.performance.classpath"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
</antcall>
</target>
<!-- Runs concurrency tests. -->
<target name="test-concurrency" depends="clean-test,config-classpath">
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.JPAConcurrencyComparisonModel"/>
<param name="RUN_PATH" value="run.classpath"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
</antcall>
</target>
<!-- Tests concurrency inside the JEE server or cluster. -->
<target name="server-test-concurrency">
<antcall target="server-run-all-prompt" inheritRefs="true">
<param name="PERSISTENCE_UNIT_NAME" value="performance"/>
<param name="MODEL_DIR" value="org/eclipse/persistence/testing/models/jpa/performance"/>
<param name="MODEL_NAME" value="jpa-performance"/>
<param name="TEST_DIR" value="org/eclipse/persistence/testing/tests/jpa/performance"/>
<param name="TEST_NAME" value="jpa-performance"/>
<param name="EAR_NAME" value="jpa-performance"/>
<param name="TEST_SUITE" value="org.eclipse.persistence.testing.tests.jpa.performance.JPAClusteredConcurrencyComparisonModel"/>
<param name="eclipselink.jpa.test.dir" value="."/>
</antcall>
</target>
<!-- Runs concurrency tests comparing with Hibernate. -->
<target name="test-concurrency-hibernate" depends="clean-test,config-classpath">
<path id="run.classpath.hibernate">
<fileset dir="${hibernate.dir}">
<include name="*.jar"/>
</fileset>
<path refid="run.classpath"/>
</path>
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.HibernateJPAConcurrencyComparisonModel"/>
<param name="RUN_PATH" value="run.classpath.hibernate"/>
<param name="TEST_AGENT" value="-Dignore"/>
<param name="TEST_WEAVING" value="-Dignore"/>
</antcall>
</target>
<!-- Runs performance tests. -->
<target name="test-performance-nocache" depends="clean-test,config-classpath">
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.JPAIsolatedPerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.performance.classpath"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
</antcall>
</target>
<!-- Runs performance tests. -->
<target name="test-performance-nocache-emu" depends="clean-test,config-classpath">
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.JPAEmulatedIsolatedPerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.performance.classpath"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
</antcall>
</target>
<!-- Runs performance tests. -->
<target name="test-performance-emu" depends="clean-test,config-classpath">
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.JPAEmulatedPerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.performance.classpath"/>
<param name="TEST_AGENT" value="${test.agent}"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
</antcall>
</target>
<!-- Runs performance tests comparing with TopLink. -->
<target name="test-performance-toplink" depends="clean-test,config-classpath">
<path id="run.classpath.toplink">
<pathelement path="${toplink.jar}"/>
<path refid="run.performance.classpath"/>
</path>
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.TopLinkJPAPerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.classpath.toplink"/>
<param name="TEST_AGENT" value="-javaagent:../${toplink.jar}"/>
<param name="TEST_WEAVING" value="-Dignore"/>
</antcall>
</target>
<!-- Runs performance tests comparing with TopLink Essentials. -->
<target name="test-performance-essentials" depends="clean-test,config-classpath">
<path id="run.classpath.essentials">
<pathelement path="${toplink-essentials.jar}"/>
<path refid="run.performance.classpath"/>
</path>
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.EssentialsJPAPerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.classpath.essentials"/>
<param name="TEST_AGENT" value="-javaagent:../${toplink-essentials-agent.jar}"/>
<param name="TEST_WEAVING" value="-Dignore"/>
</antcall>
</target>
<!-- Runs performance tests comparing with Hibernate. -->
<target name="test-performance-hibernate" depends="clean-test,config-classpath">
<path id="run.classpath.hibernate">
<fileset dir="${hibernate.dir}">
<include name="*.jar"/>
</fileset>
<path refid="run.performance.classpath"/>
</path>
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.HibernateJPAPerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.classpath.hibernate"/>
<param name="TEST_AGENT" value="-Dignore"/>
<param name="TEST_WEAVING" value="-Dignore"/>
</antcall>
</target>
<!-- Runs performance tests comparing with Hibernate. -->
<target name="test-performance2-hibernate" depends="clean-test,config-classpath">
<path id="run.classpath.hibernate">
<fileset dir="${hibernate.dir}">
<include name="*.jar"/>
</fileset>
<path refid="run.performance.classpath"/>
</path>
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.HibernateJPA2PerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.classpath.hibernate"/>
<param name="TEST_AGENT" value="-Dignore"/>
<param name="TEST_WEAVING" value="-Dignore"/>
</antcall>
</target>
<!-- Runs performance tests comparing with OpenJPA. -->
<target name="test-performance-openjpa" depends="clean-test,config-classpath">
<path id="run.classpath.openjpa">
<fileset dir="${openjpa.dir}">
<include name="*.jar"/>
</fileset>
<path refid="run.performance.classpath"/>
</path>
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.OpenJPAPerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.classpath.openjpa"/>
<param name="TEST_AGENT" value="-javaagent:../${openjpa.jar}"/>
<param name="TEST_WEAVING" value="-Dignore"/>
</antcall>
</target>
<!-- Runs performance tests comparing with OpenJPA. -->
<target name="test-performance-datanucleus" depends="clean-test,config-classpath">
<path id="run.classpath.datanucleus">
<fileset dir="${datanucleus.dir}">
<include name="*.jar"/>
</fileset>
<path refid="run.performance.classpath"/>
</path>
<antcall target="run-test-prompt" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.performance.DataNucleusPerformanceRegressionModel"/>
<param name="RUN_PATH" value="run.classpath.datanucleus"/>
<param name="TEST_AGENT" value="-Dignore"/>
<param name="TEST_WEAVING" value="-Dignore"/>
</antcall>
</target>
<!-- Launches the testing browser -->
<target name="test-browser" depends="config-classpath">
<echo>Running test browser</echo>
<mkdir dir="${jpatest.basedir}/${run.dir}"/>
<mkdir dir="${jpatest.basedir}/${report.dir}"/>
<!-- Can be set e.g. in test.properties to add VM options for a particular platform/driver -->
<property name="additional.jvmargs" value="-Ddummy2=dummy"/>
<java classname="org.eclipse.persistence.testing.framework.ui.TestingBrowserFrame"
fork="true"
maxmemory="512m"
failonerror="false"
dir="${jpatest.basedir}/${run.dir}">
<jvmarg value="${test.agent}"/>
<jvmarg value="${test.weaving}"/>
<jvmarg value="-Declipselink.logging.level=${logging.level}"/>
<jvmarg value="-Ddb.driver=${db.driver}"/>
<jvmarg value="-Ddb.url=${db.url}"/>
<jvmarg value="-Ddb.user=${db.user}"/>
<jvmarg value="-Ddb.pwd=${db.pwd}"/>
<jvmarg value="-Ddb.platform=${db.platform}"/>
<jvmarg line="${additional.jvmargs}"/>
<classpath>
<path refid="run.oracle.classpath"/>
</classpath>
</java>
</target>
<!-- Runs jpa srg test on Spring. -->
<target name="test-spring-srg" depends="clean-test, config-classpath">
<property name="is.spring" value="true"/>
<antcall target="build" inheritRefs="true"/>
<antcall target="run-spring-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.fieldaccess.advanced.FAServerTestSuite"/>
<param name="TEST_AGENT" value="-javaagent:${spring.jlib.dir}/spring-instrument-4.2.5.RELEASE.jar"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="run-spring-test" inheritRefs="true">
<param name="TEST_CLASS" value="org.eclipse.persistence.testing.tests.jpa.advanced.AdvancedServerTestSuite"/>
<param name="TEST_AGENT" value="-javaagent:${spring.jlib.dir}/spring-instrument-4.2.5.RELEASE.jar"/>
<param name="TEST_WEAVING" value="${test.weaving}"/>
<param name="ORM_TESTING" value="-Dorm.testing=jpa"/>
<param name="RUN_PATH" value="run.classpath"/>
<param name="DB_URL" value="${db.url}"/>
</antcall>
<antcall target="generate-report" inheritRefs="true"/>
<antcall target="clean" inheritRefs="true"/>
</target>
<!-- Generic target for running tests. -->
<target name="run-test" depends="config-classpath">
<echo>Running test on ${DB_URL}</echo>
<condition property="jvmarg.db.platform.class" value="-Ddb.platform=${db.platform}">
<isset property="db.platform"/>
</condition>
<condition property="jvmarg.db.platform.class" value="-Ddummy=dummy">
<not>
<isset property="db.platform"/>
</not>
</condition>
<!-- default values for proxy test -->
<property name="DB_USER" value="${db.user}"/>
<property name="DB_PWD" value="${db.pwd}"/>
<property name="pa.proxyuser" value="${db.user}_PROXY"/>
<property name="pa.proxyuser2" value="${db.user}_PROXY2"/>
<!-- Can be set e.g. in test.properties to add VM options for a particular platform/driver -->
<!--<property name="additional.jvmargs" value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8787"/>-->
<property name="additional.jvmargs" value="-Ddummy2=dummy"/>
<junit jvm="${test.junit.jvm.exec}" printsummary="yes" haltonfailure="${test.haltonfailure}" fork="yes" forkmode="once" showoutput="true" maxmemory="${max.heap.memory}" dir="${run.dir}">
<sysproperty key="proxy.user.name" value="PAS_PROXY"/>
<sysproperty key="pa.connection.user" value="${db.user}"/>
<sysproperty key="pa.connection.password" value="${db.pwd}"/>
<sysproperty key="pa.proxyuser" value="${pa.proxyuser}"/>
<sysproperty key="pa.proxyuser2" value="${pa.proxyuser2}"/>
<jvmarg line="${additional.jvmargs}"/>
<jvmarg value="${TEST_AGENT}"/>
<jvmarg value="${TEST_WEAVING}"/>
<jvmarg value="${TEST_WEAVING_OPTION}"/>
<jvmarg value="${ORM_TESTING}"/>
<jvmarg value="-XX:CompileCommandFile=../../jdk_hotspot_compiler"/>
<jvmarg value="-Declipselink.logging.level=${logging.leve