Skip to content

Commit

Permalink
Let’s use Ivy (properly!) and drop Maven Ant tasks, Commons OpenPGP, …
Browse files Browse the repository at this point in the history
…Python, etc
  • Loading branch information
twogee committed Dec 26, 2017
1 parent 4a8ef26 commit 86494a6
Show file tree
Hide file tree
Showing 13 changed files with 306 additions and 562 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 26 additions & 7 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
-->
<property name="Name" value="Apache Ant"/>
<property name="name" value="ant"/>
<!-- this is the groupId of ant in the Maven repository -->
<!-- this is the groupId of Ant in the Maven repository -->
<property name="groupid" value="org/apache/ant"/>
<property name="project.version" value="1.10.2alpha"/>
<!-- pom.version is used when doing a distribution and must match with what is checked in under src/etc/poms -->
Expand Down Expand Up @@ -93,6 +93,7 @@
<property name="manifest.tmp" value="${build.dir}/optional.manifest"/>
<!-- the absolute path -->
<property name="build.tests.value" location="${build.tests}"/>
<property name="build.pkg.dir" value="${build.dir}/pkg"/>

<!--
===================================================================
Expand Down Expand Up @@ -973,7 +974,7 @@
<mkdir dir="${dist.etc}"/>

<copy todir="${dist.lib}" file="${lib.dir}/README"/>
<copy todir="${dist.lib}" file="${lib.dir}/libraries.properties"/>
<copy todir="${dist.lib}" file="${basedir}/ivy.xml"/>

<copy todir="${dist.lib}">
<fileset dir="${src.dir}/etc/poms">
Expand Down Expand Up @@ -1091,7 +1092,7 @@
<include name="optional/junit*.jar"/>
<include name="optional/hamcrest*.jar"/>
<include name="README"/>
<include name="libraries.properties"/>
<include name="ivy.xml"/>
</fileset>
</copy>

Expand Down Expand Up @@ -1214,10 +1215,28 @@
</condition>

<target name="pkg-distribution" depends="zip-distribution" if="buildosxpackage">
<exec executable="release/build-osx-pkg.py">
<arg value="--output-dir"/>
<arg value="${dist.base.binaries}"/>
<arg value="${dist.base.binaries}/${dist.name}-bin.zip"/>
<mkdir dir="${build.pkg.dir}"/>
<unzip src="${dist.base.binaries}/${dist.name}-bin.zip" dest="${build.pkg.dir}">
<mapper type="regexp" from="^([^/]*)/(.*)$$" to="\2"/>
</unzip>
<chmod perm="+x" type="file">
<fileset dir="${build.pkg.dir}/bin">
<include name="ant"/>
<include name="antRun"/>
<include name="*.pl"/>
<include name="*.py"/>
</fileset>
</chmod>
<exec executable="/usr/bin/pkgbuild">
<arg value="--root"/>
<arg value="${build.pkg.dir}"/>
<arg value="--identifier"/>
<arg value="org.apache.ant"/>
<arg value="--version"/>
<arg value="${project.version}"/>
<arg value="--install-location"/>
<arg value="/usr/local/ant"/>
<arg value="${dist.base.binaries}/${dist.name}.pkg"/>
</exec>
</target>

Expand Down
Loading

0 comments on commit 86494a6

Please sign in to comment.