jdom2/0001-Adapt-build.patch

102 lines
4.0 KiB
Diff
Raw Normal View History

From 05a8a2fa49e92ad36a86d5d73588a2e46bf9ff95 Mon Sep 17 00:00:00 2001
2017-05-31 11:27:31 +00:00
From: Michael Simacek <msimacek@redhat.com>
Date: Mon, 23 Jul 2018 14:30:14 +0200
2017-05-31 11:27:31 +00:00
Subject: [PATCH] Adapt build
---
build.xml | 40 +++++++++++++++++++++++++---------------
1 file changed, 25 insertions(+), 15 deletions(-)
diff --git a/build.xml b/build.xml
index cd7c2ed..10d8df6 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" />
2017-05-31 11:27:31 +00:00
+ <fileset dir="${lib.dir}" includes="*.jar" />
2013-09-14 20:29:03 +00:00
</path>
<path id="core.class.path">
2017-05-31 11:27:31 +00:00
@@ -289,6 +279,7 @@ For instructions on how to build JDOM, please view the README.txt file.
2013-09-14 20:29:03 +00:00
header="&lt;b&gt;${Name}&lt;br&gt;&lt;font size='-1'&gt;${version}&lt;/font&gt;&lt;/b&gt;"
bottom="Copyright &#169; ${year} Jason Hunter, Brett McLaughlin. All Rights Reserved.">
<classpath refid="base.class.path"/>
+ <link href="${j2se.apidoc}"/>
</javadoc>
</target>
2017-05-31 11:27:31 +00:00
@@ -373,11 +364,11 @@ For instructions on how to build JDOM, please view the README.txt file.
2013-09-14 20:29:03 +00:00
<!-- =================================================================== -->
<target name="package" depends="coverage, jars"
description="Creates the class package">
- <zip destfile="${package}/${jarbase}.zip">
+ <!--<zip destfile="${package}/${jarbase}.zip">
2013-09-14 20:29:03 +00:00
<fileset dir="${package}" includes="${jarbase}*.jar" />
<fileset dir="${basedir}" includes="lib/xerces* lib/jaxen* lib/xml* lib/xalan/**" />
2013-09-14 20:29:03 +00:00
<fileset dir="${basedir}" includes="LICENSE.txt README.txt" />
- </zip>
+ </zip>-->
2013-09-14 20:29:03 +00:00
</target>
<!-- =================================================================== -->
2017-05-31 11:27:31 +00:00
@@ -401,6 +392,7 @@ For instructions on how to build JDOM, please view the README.txt file.
2013-09-14 20:29:03 +00:00
<include name="**/*.class"/>
<!-- exclude name="**/**/jaxen/**/*.class"/ -->
</fileset>
+ <classpath refid="junit.class.path" />
</cobertura-instrument>
<property name="forkjunit" value="true" />
2017-05-31 11:27:31 +00:00
@@ -528,7 +520,25 @@ For instructions on how to build JDOM, please view the README.txt file.
2013-09-14 20:29:03 +00:00
</filterset>
</copy>
- <exec dir="${mavendir}/core" executable="${gpg}">
+ <copy filtering="true" file="maven/contrib.pom" tofile="${mavendir}/core/${mavenbase}-contrib.pom">
+ <filterset>
+ <filter token="artifactID" value="${mavenartifact}"/>
+ <filter token="version" value="${version}" />
+ <filter token="jdk" value="${compile.target}" />
+ <filter token="license" value="${license}" />
+ </filterset>
+ </copy>
+
+ <copy filtering="true" file="maven/junit.pom" tofile="${mavendir}/core/${mavenbase}-junit.pom">
+ <filterset>
+ <filter token="artifactID" value="${mavenartifact}"/>
+ <filter token="version" value="${version}" />
+ <filter token="jdk" value="${compile.target}" />
+ <filter token="license" value="${license}" />
+ </filterset>
+ </copy>
+
+ <!--exec dir="${mavendir}/core" executable="${gpg}">
<arg value="-abv"/>
<arg value="${mavenbase}.pom"/>
</exec>
2017-05-31 11:27:31 +00:00
@@ -543,7 +553,7 @@ For instructions on how to build JDOM, please view the README.txt file.
2013-09-14 20:29:03 +00:00
<exec dir="${mavendir}/core" executable="${gpg}">
<arg value="-abv"/>
<arg value="${mavenbase}-javadoc.jar"/>
- </exec>
+ </exec-->
<jar destfile="${mavendir}/${mavenbase}-maven-bundle.jar"
basedir="${mavendir}/core"
2017-05-31 11:27:31 +00:00
--
2.17.1
2017-05-31 11:27:31 +00:00