jdom2/0001-Adapt-build.patch

120 lines
4.8 KiB
Diff
Raw Normal View History

2020-04-20 07:29:34 +00:00
From cf7e676edc7ab9d4b8b130ca4d8ecbd291995dea Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk@redhat.com>
Date: Mon, 20 Apr 2020 09:29:12 +0200
2017-05-31 11:27:31 +00:00
Subject: [PATCH] Adapt build
---
2022-09-08 12:21:48 +00:00
build.xml | 61 +++----------------------------------------------------
1 file changed, 3 insertions(+), 58 deletions(-)
2017-05-31 11:27:31 +00:00
diff --git a/build.xml b/build.xml
2022-09-08 12:21:48 +00:00
index ed632c2..d80abff 100644
2017-05-31 11:27:31 +00:00
--- a/build.xml
+++ b/build.xml
@@ -112,17 +112,7 @@ For instructions on how to build JDOM, please view the README.txt file.
2013-09-14 20:29:03 +00:00
<!-- Compilation class path -->
<path id="base.class.path">
2017-05-31 11:27:31 +00:00
- <pathelement location="${jaxen.jar}" />
- <pathelement location="${parser.jar}" />
- <pathelement location="${xmlapi.jar}" />
- <pathelement location="${junit.jar}" />
- <pathelement location="${isorelax.jar}" />
- <pathelement location="${xalan.jar}" />
- <pathelement location="${xalanser.jar}" />
- <!-- normally these stax jars will not be found -->
- <!-- this is used for testing Java5 (the test sets stax.dir) -->
2013-09-14 20:29:03 +00:00
- <pathelement location="${stax.dir}/jsr173_1.0_api.jar" />
- <pathelement location="${stax.dir}/sjsxp.jar" />
2022-09-08 12:21:48 +00:00
+ <fileset dir="${lib.dir}" includes="*.jar" />
2013-09-14 20:29:03 +00:00
</path>
<path id="core.class.path">
2020-04-20 07:29:34 +00:00
@@ -296,7 +286,7 @@ For instructions on how to build JDOM, please view the README.txt file.
<!-- =================================================================== -->
<!-- Creates the jars -->
<!-- =================================================================== -->
- <target name="jars" depends="compile, javadoc"
+ <target name="jars" depends="compile.core, javadoc"
description="Builds the Jars">
<fixcrlf srcdir="." includes="**/*.bat" excludes="build*.*" eol="crlf"/>
<fixcrlf srcdir="." includes="**/*.sh" excludes="build*.*" eol="lf"/>
2022-09-08 12:21:48 +00:00
@@ -316,27 +306,6 @@ For instructions on how to build JDOM, please view the README.txt file.
2020-04-20 07:29:34 +00:00
<fileset dir="${core.build}" includes="**/*.class" />
<fileset dir="${metainf.build}" excludes="**/MANIFEST.MF" />
</jar>
- <jar jarfile="${package}/${jarbase}-contrib.jar" >
- <fileset dir="${contrib.build}" includes="**/*" />
- <fileset dir="${metainf.build}" excludes="**/MANIFEST.MF" />
- </jar>
- <jar jarfile="${package}/${jarbase}-junit.jar" >
- <fileset dir="${junit.build}" includes="**/*" />
- <fileset dir="${metainf.build}" excludes="**/MANIFEST.MF" />
- </jar>
- <jar destfile="${package}/${jarbase}-javadoc.jar"
- basedir="${build.javadocs}" includes="**/*" />
2022-09-08 12:21:48 +00:00
-
2020-04-20 07:29:34 +00:00
- <jar jarfile="${package}/${jarbase}-sources.jar" >
- <fileset dir="${core.src}" includes="**/*" />
2022-09-08 12:21:48 +00:00
- </jar>
- <jar jarfile="${package}/${jarbase}-junit-sources.jar" >
2020-04-20 07:29:34 +00:00
- <fileset dir="${junit.src}" includes="**/*" />
2022-09-08 12:21:48 +00:00
- </jar>
- <jar jarfile="${package}/${jarbase}-contrib-sources.jar" >
2020-04-20 07:29:34 +00:00
- <fileset dir="${contrib.src}" includes="**/*" />
- </jar>
2022-09-08 12:21:48 +00:00
-
2013-09-14 20:29:03 +00:00
</target>
2022-09-08 12:21:48 +00:00
<target name="androidtests" depends="jars">
@@ -505,7 +474,7 @@ For instructions on how to build JDOM, please view the README.txt file.
2020-04-20 07:29:34 +00:00
<delete dir="${mavendir}" includes="**/*" failonerror="false"/>
2013-09-14 20:29:03 +00:00
</target>
2020-04-20 07:29:34 +00:00
- <target name="maven" depends="maven.clean, package"
+ <target name="maven" depends="maven.clean, jars"
description="Prepares Maven bundle to load on to Sonatype Nexus for Maven-Central">
<mkdir dir="${mavendir}" />
<mkdir dir="${mavendir}/core" />
2022-09-08 12:21:48 +00:00
@@ -517,8 +486,6 @@ For instructions on how to build JDOM, please view the README.txt file.
2013-09-14 20:29:03 +00:00
2020-04-20 07:29:34 +00:00
<!-- copy the build jar -->
<copy tofile="${mavendir}/core/${mavenbase}.jar" file="${package}/${jarbase}.jar"/>
- <copy tofile="${mavendir}/core/${mavenbase}-javadoc.jar" file="${package}/${jarbase}-javadoc.jar"/>
- <copy tofile="${mavendir}/core/${mavenbase}-sources.jar" file="${package}/${jarbase}-sources.jar"/>
<!-- load the license in to the ${license} property -->
<loadfile property="license" srcfile="LICENSE.txt" />
2022-09-08 12:21:48 +00:00
@@ -532,28 +499,6 @@ For instructions on how to build JDOM, please view the README.txt file.
<filter token="license" value="${license}" />
2013-09-14 20:29:03 +00:00
</filterset>
</copy>
2022-09-08 12:21:48 +00:00
-
2013-09-14 20:29:03 +00:00
- <exec dir="${mavendir}/core" executable="${gpg}">
2020-04-20 07:29:34 +00:00
- <arg value="-abv"/>
- <arg value="${mavenbase}.pom"/>
2013-09-14 20:29:03 +00:00
- </exec>
2020-04-20 07:29:34 +00:00
- <exec dir="${mavendir}/core" executable="${gpg}">
- <arg value="-abv"/>
- <arg value="${mavenbase}.jar"/>
- </exec>
- <exec dir="${mavendir}/core" executable="${gpg}">
- <arg value="-abv"/>
- <arg value="${mavenbase}-sources.jar"/>
- </exec>
- <exec dir="${mavendir}/core" executable="${gpg}">
- <arg value="-abv"/>
- <arg value="${mavenbase}-javadoc.jar"/>
- </exec>
-
- <jar destfile="${mavendir}/${mavenbase}-maven-bundle.jar"
- basedir="${mavendir}/core"
- includes="${mavenbase}*" excludes="*maven-bundle*" />
-
</target>
</project>
2017-05-31 11:27:31 +00:00
--
2022-09-08 12:21:48 +00:00
2.37.2
2017-05-31 11:27:31 +00:00