Thrift-1174: Publish as3 client implementation via Maven for use by flex-mojos users
Client: as3
Adds the ability to publish the as3 client to maven central repo along side the java and fb303 libs.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1125511 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/contrib/fb303/java/build.xml b/contrib/fb303/java/build.xml
index 62699a4..c96e4be 100755
--- a/contrib/fb303/java/build.xml
+++ b/contrib/fb303/java/build.xml
@@ -100,7 +100,7 @@
<delete dir="${gen}"/>
</target>
- <target name="mvn.ant.tasks.download" depends="setup.init" unless="mvn.ant.tasks.found">
+ <target name="mvn.ant.tasks.download" depends="setup.init,mvn.ant.tasks.check" unless="mvn.ant.tasks.found">
<get src="${mvn.ant.task.url}/${mvn.ant.task.jar}" dest="${build.tools.dir}/${mvn.ant.task.jar}" usetimestamp="true"/>
</target>
@@ -169,12 +169,13 @@
<attribute name="file"/>
<attribute name="classifier" default=""/>
<attribute name="packaging" default="jar"/>
+ <attribute name="pom" default=""/>
<sequential>
<artifact:mvn fork="true">
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.1:sign-and-deploy-file"/>
<arg value="-DrepositoryId=${maven-repository-id}"/>
<arg value="-Durl=${maven-repository-url}"/>
- <arg value="-DpomFile=${fb303.pom.xml}"/>
+ <arg value="-DpomFile=@{pom}"/>
<arg value="-Dfile=@{file}"/>
<arg value="-Dclassifier=@{classifier}"/>
<arg value="-Dpackaging=@{packaging}"/>
@@ -186,7 +187,7 @@
<target name="publish" depends="clean,dist">
<!-- Compile, packages and then send release to apache maven repo -->
<!-- run with: ant -Drelease=true publish-->
- <signAndDeploy file="${fb303.pom.xml}" packaging="pom" classifier=""/>
- <signAndDeploy file="${fb303.jar.file}" packaging="jar" classifier=""/>
+ <signAndDeploy file="${fb303.pom.xml}" packaging="pom" classifier="" pom="${fb303.pom.xml}"/>
+ <signAndDeploy file="${fb303.jar.file}" packaging="jar" classifier="" pom="${fb303.pom.xml}"/>
</target>
</project>