fastutil/fastutil-7.0.7-build.patch
2019-12-23 16:59:21 +08:00

89 lines
3.4 KiB
Diff

diff -Nru fastutil-7.0.7/build.xml fastutil-7.0.7.build/build.xml
--- fastutil-7.0.7/build.xml 2015-08-07 18:50:24.000000000 +0200
+++ fastutil-7.0.7.build/build.xml 2015-10-27 11:37:23.197848395 +0100
@@ -1,6 +1,4 @@
-<project name="fastutil" default="jar" basedir="."
- xmlns:artifact="antlib:org.apache.maven.artifact.ant"
- xmlns:ivy="antlib:org.apache.ivy.ant">
+<project name="fastutil" default="jar" basedir=".">
<property file="build.properties"/>
@@ -28,12 +26,15 @@
<!-- OSGi manifest generation -->
<target name="resolve" description="run Ivy to fetch jars">
- <ivy:retrieve />
</target>
- <target name="osgi" depends="resolve,compile">
+ <target name="osgi" depends="compile">
<delete dir="${build}/*.class"/>
- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="lib/bnd-2.4.0.jar"/>
+ <taskdef resource="aQute/bnd/ant/taskdef.properties" >
+ <classpath>
+ <fileset dir="/usr/share/java/aqute-bnd"/>
+ </classpath>
+ </taskdef>
<bnd
classpath="${build}"
eclipse="false"
@@ -57,55 +58,14 @@
</target>
<target name="pom" depends="dist" description="insert version into pom">
- <copy todir="${build}" file="pom.xml">
- <filterset>
- <filter token="version" value="${version}"/>
- </filterset>
- </copy>
+ <copy tofile="${dist}/lib/pom.xml" file="pom-model.xml" />
+ <replace file="${dist}/lib/pom.xml" token="VERSION" value="${version}"/>
</target>
<target name="deploy" depends="pom" description="deploy snapshot version to Maven snapshot repository">
- <artifact:mvn>
- <arg value="org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file" />
- <arg value="-Durl=${maven-snapshots-repository-url}" />
- <arg value="-DrepositoryId=${maven-snapshots-repository-id}" />
- <arg value="-DpomFile=${build}/pom.xml" />
- <arg value="-Dfile=${maven-jar}" />
- </artifact:mvn>
</target>
<target name="stage" depends="dist" description="deploy release version to Maven staging repository">
- <!-- sign and deploy the main artifact -->
- <artifact:mvn>
- <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
- <arg value="-Durl=${maven-staging-repository-url}" />
- <arg value="-DrepositoryId=${maven-staging-repository-id}" />
- <arg value="-DpomFile=pom.xml" />
- <arg value="-Dfile=${maven-jar}" />
- <arg value="-Pgpg" />
- </artifact:mvn>
-
- <!-- sign and deploy the sources artifact -->
- <artifact:mvn>
- <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
- <arg value="-Durl=${maven-staging-repository-url}" />
- <arg value="-DrepositoryId=${maven-staging-repository-id}" />
- <arg value="-DpomFile=pom.xml" />
- <arg value="-Dfile=${maven-sources-jar}" />
- <arg value="-Dclassifier=sources" />
- <arg value="-Pgpg" />
- </artifact:mvn>
-
- <!-- sign and deploy the javadoc artifact -->
- <artifact:mvn>
- <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
- <arg value="-Durl=${maven-staging-repository-url}" />
- <arg value="-DrepositoryId=${maven-staging-repository-id}" />
- <arg value="-DpomFile=pom.xml" />
- <arg value="-Dfile=${maven-javadoc-jar}" />
- <arg value="-Dclassifier=javadoc" />
- <arg value="-Pgpg" />
- </artifact:mvn>
</target>
<!-- ************************************** END OF MAVEN SH*T ************************************** -->