Skip to content

Commit 86494a6

Browse files
committed
Let’s use Ivy (properly!) and drop Maven Ant tasks, Commons OpenPGP, Python, etc
1 parent 4a8ef26 commit 86494a6

File tree

13 files changed

+306
-562
lines changed

13 files changed

+306
-562
lines changed
File renamed without changes.
File renamed without changes.

build.xml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
-->
3333
<property name="Name" value="Apache Ant"/>
3434
<property name="name" value="ant"/>
35-
<!-- this is the groupId of ant in the Maven repository -->
35+
<!-- this is the groupId of Ant in the Maven repository -->
3636
<property name="groupid" value="org/apache/ant"/>
3737
<property name="project.version" value="1.10.2alpha"/>
3838
<!-- pom.version is used when doing a distribution and must match with what is checked in under src/etc/poms -->
@@ -93,6 +93,7 @@
9393
<property name="manifest.tmp" value="${build.dir}/optional.manifest"/>
9494
<!-- the absolute path -->
9595
<property name="build.tests.value" location="${build.tests}"/>
96+
<property name="build.pkg.dir" value="${build.dir}/pkg"/>
9697

9798
<!--
9899
===================================================================
@@ -973,7 +974,7 @@
973974
<mkdir dir="${dist.etc}"/>
974975

975976
<copy todir="${dist.lib}" file="${lib.dir}/README"/>
976-
<copy todir="${dist.lib}" file="${lib.dir}/libraries.properties"/>
977+
<copy todir="${dist.lib}" file="${basedir}/ivy.xml"/>
977978

978979
<copy todir="${dist.lib}">
979980
<fileset dir="${src.dir}/etc/poms">
@@ -1091,7 +1092,7 @@
10911092
<include name="optional/junit*.jar"/>
10921093
<include name="optional/hamcrest*.jar"/>
10931094
<include name="README"/>
1094-
<include name="libraries.properties"/>
1095+
<include name="ivy.xml"/>
10951096
</fileset>
10961097
</copy>
10971098

@@ -1214,10 +1215,28 @@
12141215
</condition>
12151216

12161217
<target name="pkg-distribution" depends="zip-distribution" if="buildosxpackage">
1217-
<exec executable="release/build-osx-pkg.py">
1218-
<arg value="--output-dir"/>
1219-
<arg value="${dist.base.binaries}"/>
1220-
<arg value="${dist.base.binaries}/${dist.name}-bin.zip"/>
1218+
<mkdir dir="${build.pkg.dir}"/>
1219+
<unzip src="${dist.base.binaries}/${dist.name}-bin.zip" dest="${build.pkg.dir}">
1220+
<mapper type="regexp" from="^([^/]*)/(.*)$$" to="\2"/>
1221+
</unzip>
1222+
<chmod perm="+x" type="file">
1223+
<fileset dir="${build.pkg.dir}/bin">
1224+
<include name="ant"/>
1225+
<include name="antRun"/>
1226+
<include name="*.pl"/>
1227+
<include name="*.py"/>
1228+
</fileset>
1229+
</chmod>
1230+
<exec executable="/usr/bin/pkgbuild">
1231+
<arg value="--root"/>
1232+
<arg value="${build.pkg.dir}"/>
1233+
<arg value="--identifier"/>
1234+
<arg value="org.apache.ant"/>
1235+
<arg value="--version"/>
1236+
<arg value="${project.version}"/>
1237+
<arg value="--install-location"/>
1238+
<arg value="/usr/local/ant"/>
1239+
<arg value="${dist.base.binaries}/${dist.name}.pkg"/>
12211240
</exec>
12221241
</target>
12231242

0 commit comments

Comments
 (0)