<commit_before><?xml version="1.0"?>
<!--/*******************************************************************************
* 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 or explicit 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 concatinated
*     e.g. 'runpathref'
*   - multi-word tasks (taskdef) names are concatinated
*     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
*     egwin    Update and add to nightly process.
*     agoerler prepare for server-tests
#******************************************************************************/-->

<!-- 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 als JPA WDF tests

        It requires some configuration of the build.properties and test.properties to run.
    -->
<project name="eclipselink.jpa.wdf.test" default="build" basedir=".">
    <available file="../${ant.project.name}" type="dir" property="wdf_test.is.local"/>
    <fail message="Not running from '${ant.project.name}' directory" unless="wdf_test.is.local"/>

    <dirname  property="wdf_test.build.location_temp" file="${ant.file.eclipselink.jpa.wdf.test}"/>
    <pathconvert targetos="unix" property="wdf_test.build.location">
        <path>
            <pathelement location="${wdf_test.build.location_temp}"/>
        </path>
    </pathconvert>
    <echo message="wdf_test.build.location = '${wdf_test.build.location}'"/>
    <condition property="wdf_test.2.trunk.dir" value="../.." else="..">
        <contains string="${wdf_test.build.location}" substring="jpa/${ant.project.name}"/>
    </condition>
    <echo message="wdf_test.2.trunk.dir = '${wdf_test.2.trunk.dir}'"/>
    <property name="wdf_test.2.common.plugins.dir" value="${wdf_test.2.trunk.dir}/plugins"/>
    <property name="wdf_test.2.jpa.plugins.dir"    value="${wdf_test.2.trunk.dir}/jpa/plugins"/>
    <property name="wdf_test.2.core.dir"           value="${wdf_test.2.trunk.dir}/foundation/org.eclipse.persistence.core"/>
    <property name="wdf_test.2.jpa.dir"            value="${wdf_test.2.trunk.dir}/jpa/org.eclipse.persistence.jpa"/>
    <property name="wdf_test.2.moxy.dir"           value="${wdf_test.2.trunk.dir}/moxy/org.eclipse.persistence.moxy"/>
    <property name="wdf_test.2.core.test.dir"      value="${wdf_test.2.trunk.dir}/foundation/eclipselink.core.test"/>
    <property name="wdf_test.2.jpa.test"           value="${wdf_test.build.location}/../eclipselink.jpa.test"/>
    <property name="env" environment="env"         value="env"/>

    <!-- Allows a user to overide certain user specific properties. -->
    <property file="${user.home}/build.properties"/>
    <property file="${user.home}/test.properties"/>
    <property file="${wdf_test.build.location}/antbuild.properties"/>
    <property file="${wdf_test.build.location}/local.build.properties"/>
    <property file="${wdf_test.build.location}/${test.properties}"/>
    <property file="${wdf_test.build.location}/test.properties"/>

    <!-- Default ant targets, compiles and packages test jars, does not run tests. -->
    <target name="build-against-jar"     depends="clean, init_against_jar, compile, package"                description="build JPA WDF testing jars"/>
    <target name="build-against-classes" depends="clean, init_against_classes, compile, package"            description="build JPA WDF testing jars"/>
    <target name="build-against-bundles" depends="clean, init_against_bundles, compile, package"            description="build JPA WDF testing jars"/>
    <target name="test-against-jar"      depends="clean-test, init_against_jar, init_runtime,  test-lrg"    description="run JPA WDF tests"/>
    <target name="test-against-classes"  depends="clean-test, init_against_classes, init_runtime, test-lrg" description="run JPA WDF tests"/>
    <target name="test-against-bundles"  depends="clean-test, init_against_bundles, init_runtime, test-lrg" description="run JPA WDF tests"/>
    <target name="server-test"           depends="server-test-internal" description="run JPA WDF tests on server configured by property server.name"/>
    <!-- convienience targets -->
    <target name="build"     depends="build-against-jar"/><commit_msg>Fix wdf testing on wls by adding "eclipselink.jpa.test" defining since there are some changes with build files' name Code reviewed by <NAME><commit_after><?xml version="1.0"?>
<!--/*******************************************************************************
* 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 or explicit 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 concatinated
*     e.g. 'runpathref'
*   - multi-word tasks (taskdef) names are concatinated
*     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
*     egwin    Update and add to nightly process.
*     agoerler prepare for server-tests
#******************************************************************************/-->

<!-- 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 als JPA WDF tests

        It requires some configuration of the build.properties and test.properties to run.
    -->
<project name="eclipselink.jpa.wdf.test" default="build" basedir=".">
    <available file="../${ant.project.name}" type="dir" property="wdf_test.is.local"/>
    <fail message="Not running from '${ant.project.name}' directory" unless="wdf_test.is.local"/>

    <dirname  property="wdf_test.build.location_temp" file="${ant.file.eclipselink.jpa.wdf.test}"/>
    <pathconvert targetos="unix" property="wdf_test.build.location">
        <path>
            <pathelement location="${wdf_test.build.location_temp}"/>
        </path>
    </pathconvert>
    <echo message="wdf_test.build.location = '${wdf_test.build.location}'"/>
    <condition property="wdf_test.2.trunk.dir" value="../.." else="..">
        <contains string="${wdf_test.build.location}" substring="jpa/${ant.project.name}"/>
    </condition>
    <echo message="wdf_test.2.trunk.dir = '${wdf_test.2.trunk.dir}'"/>
    <property name="wdf_test.2.common.plugins.dir" value="${wdf_test.2.trunk.dir}/plugins"/>
    <property name="wdf_test.2.jpa.plugins.dir"    value="${wdf_test.2.trunk.dir}/jpa/plugins"/>
    <property name="wdf_test.2.core.dir"           value="${wdf_test.2.trunk.dir}/foundation/org.eclipse.persistence.core"/>
    <property name="wdf_test.2.jpa.dir"            value="${wdf_test.2.trunk.dir}/jpa/org.eclipse.persistence.jpa"/>
    <property name="wdf_test.2.moxy.dir"           value="${wdf_test.2.trunk.dir}/moxy/org.eclipse.persistence.moxy"/>
    <property name="wdf_test.2.core.test.dir"      value="${wdf_test.2.trunk.dir}/foundation/eclipselink.core.test"/>
    <property name="wdf_test.2.jpa.test"           value="${wdf_test.build.location}/../eclipselink.jpa.test"/>
    <property name="eclipselink.jpa.test" value="${wdf_test.2.jpa.test}"/>
    <property name="env" environment="env"         value="env"/>

    <!-- Allows a user to overide certain user specific properties. -->
    <property file="${user.home}/build.properties"/>
    <property file="${user.home}/test.properties"/>
    <property file="${wdf_test.build.location}/antbuild.properties"/>
    <property file="${wdf_test.build.location}/local.build.properties"/>
    <property file="${wdf_test.build.location}/${test.properties}"/>
    <property file="${wdf_test.build.location}/test.properties"/>

    <!-- Default ant targets, compiles and packages test jars, does not run tests. -->
    <target name="build-against-jar"     depends="clean, init_against_jar, compile, package"                description="build JPA WDF testing jars"/>
    <target name="build-against-classes" depends="clean, init_against_classes, compile, package"            description="build JPA WDF testing jars"/>
    <target name="build-against-bundles" depends="clean, init_against_bundles, compile, package"            description="build JPA WDF testing jars"/>
    <target name="test-against-jar"      depends="clean-test, init_against_jar, init_runtime,  test-lrg"    description="run JPA WDF tests"/>
    <target name="test-against-classes"  depends="clean-test, init_against_classes, init_runtime, test-lrg" description="run JPA WDF tests"/>
    <target name="test-against-bundles"  depends="clean-test, init_against_bundles, init_runtime, test-lrg" description="run JPA WDF tests"/>
    <target name="server-test"           depends="server-test-internal" description="run JPA WDF tests on server configured by property server.name"/>
    <!-- convienience targets -->
    <target name="build"     depends="build-against-jar"/>
{'fraction_non_alphanumeric': 0.16496837666900913, 'fraction_numerical': 0.004655657062543921, 'mean_word_length': 3.6186612576064907, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 2, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3820195', 'n_tokens_mistral': 3387, 'n_tokens_neox': 3302, 'n_words': 861}