mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 10:36:38 -04:00
1. Without target "compile" commons-math.jar was ~8KB only and without classes - whit patch it's ~2MB. 2. Doesn't build with OpenJDK 11+: "compile.source" and "compile.target" 1.5 deprecated and was removed in newer OpenJDKs. Approved by: bofh (maintainer), arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D43462 MFH: 2024Q1
71 lines
2.9 KiB
XML
71 lines
2.9 KiB
XML
--- build.xml.orig 2016-03-17 12:14:52 UTC
|
|
+++ build.xml
|
|
@@ -100,8 +100,8 @@
|
|
<property name="source.encoding" value="UTF-8"/>
|
|
|
|
<!-- JDK level -->
|
|
- <property name="compile.source" value="1.5"/>
|
|
- <property name="compile.target" value="1.5"/>
|
|
+ <property name="compile.source" value="8"/>
|
|
+ <property name="compile.target" value="8"/>
|
|
|
|
<!-- Base compile classpath -->
|
|
<path id="compile.classpath">
|
|
@@ -174,7 +174,7 @@
|
|
|
|
<!-- ========== Unit Test Targets ========================================= -->
|
|
|
|
- <target name="compile.tests" depends="compile, download-dependencies" description="Compile unit tests.">
|
|
+ <target name="compile.tests" depends="compile" description="Compile unit tests.">
|
|
|
|
<javac srcdir="${test.home}"
|
|
destdir="${build.home}/test-classes"
|
|
@@ -256,7 +256,7 @@
|
|
|
|
<!-- ========== Create Jar ================================================ -->
|
|
|
|
- <target name="jar" depends="test" description="Create jar file">
|
|
+ <target name="jar" description="Create jar file">
|
|
|
|
<copy file="LICENSE.txt" tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
|
|
<copy file="NOTICE.txt" tofile="${build.home}/classes/META-INF/NOTICE.txt"/>
|
|
@@ -339,38 +339,11 @@
|
|
|
|
<!-- ========== Gump Target ===================================================== -->
|
|
|
|
- <target name="gump" depends="clean,test,javadoc,jar" description="Gump Target - clean,test,javadoc,jar"/>
|
|
+ <target name="gump" depends="clean,javadoc,jar" description="Gump Target - clean,test,javadoc,jar"/>
|
|
|
|
|
|
<!-- ========== Download Dependencies =========================================== -->
|
|
|
|
- <target name="download-dependencies"
|
|
- depends="check-availability" unless="skip.download">
|
|
- <echo message="doing download-dependencies..." />
|
|
- <antcall target="download-junit" />
|
|
- <antcall target="download-hamcrest" />
|
|
- </target>
|
|
-
|
|
- <target name="check-availability">
|
|
- <echo message="doing check-availability..." />
|
|
- <available file="${junit.jar}" property="junit.found"/>
|
|
- </target>
|
|
-
|
|
- <target name="download-junit" unless="junit.found">
|
|
- <echo message="Downloading junit..."/>
|
|
- <mkdir dir="${download.lib.dir}" />
|
|
- <get dest="${download.lib.dir}/junit-${junit.version}.jar"
|
|
- usetimestamp="true" ignoreerrors="true"
|
|
- src="http://repo1.maven.org/maven2/junit/junit/${junit.version}/junit-${junit.version}.jar"/>
|
|
- </target>
|
|
-
|
|
- <target name="download-hamcrest" unless="hamcrest.found">
|
|
- <echo message="Downloading hamcrest..."/>
|
|
- <mkdir dir="${download.lib.dir}" />
|
|
- <get dest="${download.lib.dir}/${hamcrest.jar}"
|
|
- usetimestamp="true" ignoreerrors="true"
|
|
- src="http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/>
|
|
- </target>
|
|
|
|
</project>
|
|
|