|
32 | 32 | --> |
33 | 33 | <property name="Name" value="Apache Ant"/> |
34 | 34 | <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 --> |
36 | 36 | <property name="groupid" value="org/apache/ant"/> |
37 | 37 | <property name="project.version" value="1.10.2alpha"/> |
38 | 38 | <!-- pom.version is used when doing a distribution and must match with what is checked in under src/etc/poms --> |
|
93 | 93 | <property name="manifest.tmp" value="${build.dir}/optional.manifest"/> |
94 | 94 | <!-- the absolute path --> |
95 | 95 | <property name="build.tests.value" location="${build.tests}"/> |
| 96 | + <property name="build.pkg.dir" value="${build.dir}/pkg"/> |
96 | 97 |
|
97 | 98 | <!-- |
98 | 99 | =================================================================== |
|
973 | 974 | <mkdir dir="${dist.etc}"/> |
974 | 975 |
|
975 | 976 | <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"/> |
977 | 978 |
|
978 | 979 | <copy todir="${dist.lib}"> |
979 | 980 | <fileset dir="${src.dir}/etc/poms"> |
|
1091 | 1092 | <include name="optional/junit*.jar"/> |
1092 | 1093 | <include name="optional/hamcrest*.jar"/> |
1093 | 1094 | <include name="README"/> |
1094 | | - <include name="libraries.properties"/> |
| 1095 | + <include name="ivy.xml"/> |
1095 | 1096 | </fileset> |
1096 | 1097 | </copy> |
1097 | 1098 |
|
|
1214 | 1215 | </condition> |
1215 | 1216 |
|
1216 | 1217 | <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"/> |
1221 | 1240 | </exec> |
1222 | 1241 | </target> |
1223 | 1242 |
|
|
0 commit comments