Skip to content

Commit

Permalink
Ant build - clean target fix (eclipse-ee4j#2029)
Browse files Browse the repository at this point in the history
To clean some generated files in:
- dbws/eclipselink.dbws.test/
    reports
- foundation/eclipselink.extension.oracle.test/
    eclipselink-proxyauthentication-model.jar
    eclipselink-timestamptz-model.jar
- jpa/eclipselink.jpa.test/
    reports
    run
- jpa/eclipselink.jpa.wdf.test/
    build
    reports
    run
- jpa/org.eclipse.persistence.jpa.jpql.test/
    reports
    run
- moxy/eclipselink.moxy.test/
    reports
    target
- sdo/eclipselink.sdo.test/
    classes
    reports
- utils/eclipselink.dbws.builder.test/
    reports

Signed-off-by: Radek Felcman <[email protected]>
  • Loading branch information
rfelcman authored Jan 4, 2024
1 parent 6fb42b5 commit 2b8457f
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 11 deletions.
3 changes: 2 additions & 1 deletion dbws/eclipselink.dbws.test/antbuild.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!--
Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2018, 2024 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 v. 2.0 which is available at
Expand Down Expand Up @@ -367,6 +367,7 @@
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="${classes.dir}"/>
<fileset dir="." includes="${dbws_util.jar}"/>
<fileset dir="${report.dir}"/>
<fileset file="${dbws_test.build.location}/${eclipselink.dbws.test.common.jar}"/>
</delete>
</target>
Expand Down
6 changes: 5 additions & 1 deletion foundation/eclipselink.extension.oracle.test/antbuild.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2018, 2024 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 v. 2.0 which is available at
Expand Down Expand Up @@ -100,6 +100,8 @@
<echo message=" ${oracle_test.build.location}/eclipselink-struct-converter-model.jar"/>
<echo message=" ${oracle_test.build.location}/eclipselink-customfeatures-model.jar"/>
<echo message=" ${oracle_test.build.location}/eclipselink-dcn-model.jar"/>
<echo message=" ${oracle_test.build.location}/eclipselink-proxyauthentication-model.jar"/>
<echo message=" ${oracle_test.build.location}/eclipselink-timestamptz-model.jar"/>
<echo message=" ${oracle_test.build.location}/${oracle.jpa.test.jar}"/>
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="${oracle_test.classes.dir}"/>
Expand All @@ -109,6 +111,8 @@
<fileset dir="${oracle_test.build.location}" includes="eclipselink-struct-converter-model.jar"/>
<fileset dir="${oracle_test.build.location}" includes="eclipselink-customfeatures-model.jar"/>
<fileset dir="${oracle_test.build.location}" includes="eclipselink-dcn-model.jar"/>
<fileset dir="${oracle_test.build.location}" includes="eclipselink-proxyauthentication-model.jar"/>
<fileset dir="${oracle_test.build.location}" includes="eclipselink-timestamptz-model.jar"/>
<fileset dir="${oracle_test.build.location}" includes="${oracle.jpa.test.jar}"/>
</delete>
</target>
Expand Down
23 changes: 22 additions & 1 deletion jpa/eclipselink.jpa.test/antbuild.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Copyright (c) 1998, 2023 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 1998, 2024 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 v. 2.0 which is available at
Expand Down Expand Up @@ -559,6 +559,9 @@
<fileset dir="${jpatest.basedir}/classes21"/>
<fileset dir="${jpatest.basedir}/classes22"/>
<fileset dir="${jpatest.basedir}/${build.dir}"/>
<fileset dir="${jpatest.basedir}/temp"/>
<fileset dir="${jpatest.basedir}/${report.dir}"/>
<fileset dir="${jpatest.basedir}/${run.dir}"/>
<fileset file="${jpatest.basedir}/${jpa.test.jar}"/>
<fileset file="${jpatest.basedir}/${jpa21.test.jar}"/>
<fileset file="${jpatest.basedir}/${jpa22.test.jar}"/>
Expand Down Expand Up @@ -602,6 +605,24 @@
<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"/>
<!--Server test generated files-->
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-delimited-model/server/orm.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-extensibility-model/server/extension.properties"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-extensibility-model/server/extension.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-extensibility-model/server/extension2.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/advanced-entity-mappings.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/advanced-multitenant-entity-mappings.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/cacheable-entity-mappings.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/incomplete-nonowning-entity-mappings.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/incomplete-owning-entity-mappings.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/inherited-entity-mappings.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/metadata-complete-mappings.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/orm-annotation-merge-advanced-entity-mappings.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/orm-annotation-merge-relationships-entity-mappings.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/orm.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/relationships-entity-mappings.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/unidirectional-relationships-entity-mappings.xml"/>
<fileset file="${jpatest.basedir}/${resource.dir}/eclipselink-xml-servertest-model/server/xml-mapping-metadata-complete-mappings.xml"/>
</delete>
</target>

Expand Down
4 changes: 3 additions & 1 deletion jpa/eclipselink.jpa.wdf.test/antbuild.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!--
Copyright (c) 2018, 2023 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2018, 2024 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 v. 2.0 which is available at
Expand Down Expand Up @@ -105,6 +105,8 @@
<target name="clean" description="Clean the build">
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="${wdf_test.build.location}/${classes.dir}"/>
<fileset dir="${wdf_test.build.location}/${report.dir}"/>
<fileset dir="${wdf_test.build.location}/${run.dir}"/>
<fileset file="${wdf_test.build.location}/${wdf.tests.jar}"/>
<fileset file="${wdf_test.build.location}/${eclipselink.wdf.jpa1.model}.jar"/>
<fileset file="${wdf_test.build.location}/${eclipselink.wdf.jpa2.model}.jar"/>
Expand Down
4 changes: 3 additions & 1 deletion jpa/org.eclipse.persistence.jpa.jpql.test/antbuild.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2018, 2024 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 v. 2.0 which is available at
Expand Down Expand Up @@ -135,6 +135,8 @@
<target name="clean" description="Clean the build" depends="">
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="${hermes.test.basedir}/${classes.dir}"/>
<fileset dir="${hermes.test.basedir}/${report.dir}"/>
<fileset dir="${hermes.test.basedir}/${run.dir}"/>
<fileset file="${hermes.test.basedir}/${hermes.test.jar}"/>
</delete>
</target>
Expand Down
4 changes: 3 additions & 1 deletion moxy/eclipselink.moxy.test/antbuild.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!--
Copyright (c) 2018, 2023 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2018, 2024 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 v. 2.0 which is available at
Expand Down Expand Up @@ -530,6 +530,8 @@
</target>
<target name="clean" description="clean the build">
<delete dir="${build.dir}" failonerror="false"/>
<delete dir="${report.dir}" failonerror="false"/>
<delete dir="target" failonerror="false"/>
</target>

<!-- Test run macros -->
Expand Down
11 changes: 7 additions & 4 deletions sdo/eclipselink.sdo.test/antbuild.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!--
Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2018, 2024 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 v. 2.0 which is available at
Expand Down Expand Up @@ -154,8 +154,10 @@
<target name="clean" description="clean the build">
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="${classes.dir}"/>
<fileset dir="${report.dir}"/>
</delete>
<mkdir dir="${classes.dir}"/>
<!-- Clean up generated files -->
<clean_up_generated_files/>
</target>

<!-- Build targets -->
Expand Down Expand Up @@ -300,8 +302,8 @@
<delete dir="${resource.dir}/invalidtypename"/>
<delete dir="${resource.dir}/list"/>
<delete dir="${resource.dir}/nestedBaseTypes"/>
<delete dir="${resource.dir}/poJavaDocs"/>
<delete dir="${resource.dir}/poJavaDocsListener"/>
<delete dir="${resource.dir}/poJavadocs"/>
<delete dir="${resource.dir}/poJavadocsListener"/>
<delete dir="${resource.dir}/schemaTypes"/>
<delete dir="${resource.dir}/srcImports"/>
<delete dir="${resource.dir}/srcImportsDontProcess"/>
Expand All @@ -315,6 +317,7 @@
<macrodef name="compile_sdo_tests">
<attribute name="compilepathref"/>
<sequential>
<mkdir dir="${classes.dir}"/>
<javac
srcdir="${src.dir}"
destdir="${classes.dir}"
Expand Down
3 changes: 2 additions & 1 deletion utils/eclipselink.dbws.builder.test/antbuild.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!--
Copyright (c) 2018, 2023 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2018, 2024 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 v. 2.0 which is available at
Expand Down Expand Up @@ -99,6 +99,7 @@
<target name="clean" description="Clean all generated content">
<delete dir="${classes.dir}" failonerror="false"/>
<delete dir="${run.dir}" failonerror="false"/>
<delete dir="${report.dir}" failonerror="false"/>
<delete file="${dbwsbldrtest.jar}" failonerror="false"/>
</target>

Expand Down

0 comments on commit 2b8457f

Please sign in to comment.