summaryrefslogtreecommitdiff
path: root/lib/java
diff options
context:
space:
mode:
authorjfarrell <jfarrell@apache.org>2014-10-08 23:24:37 -0400
committerjfarrell <jfarrell@apache.org>2014-10-08 23:24:37 -0400
commitf2319457f2b2e2e5fd85ed7ff554b1e2e982ec18 (patch)
tree13b5fc11d0536da124dfe619e545c417a001a165 /lib/java
parent5d4953fc4c90445807e1b52f3a2f6c915d82dd42 (diff)
downloadthrift-f2319457f2b2e2e5fd85ed7ff554b1e2e982ec18.tar.gz
THRIFT-2269: Can deploy libthrift-source.jar to maven center repository
Client: build Patch: jfarrell Fix java src package
Diffstat (limited to 'lib/java')
-rwxr-xr-xlib/java/build.xml10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/java/build.xml b/lib/java/build.xml
index 83028f649..3dd0ea6c8 100755
--- a/lib/java/build.xml
+++ b/lib/java/build.xml
@@ -53,7 +53,7 @@
<property name="jar.file" location="${build.dir}/${final.name}.jar"/>
<property name="test.jar.file" location="${build.dir}/${final.name}-test.jar"/>
<property name="javadoc.jar.file" location="${build.dir}/${final.name}-javadoc.jar"/>
- <property name="source.tar.gz" location="${build.dir}/${final.name}-src.tar.gz"/>
+ <property name="source.jar.file" location="${build.dir}/${final.name}-sources.jar"/>
<!-- Junit properties -->
<property name="test.junit.output.format" value="plain"/>
@@ -137,7 +137,11 @@
</target>
<target name="pack.src">
- <tar destfile="${source.tar.gz}" basedir="${src}" compression="gzip"/>
+ <jar jarfile="${source.jar.file}">
+ <fileset dir="${src}">
+ <include name="**/*.java"/>
+ </fileset>
+ </jar>
</target>
<target name="install" depends="dist,javadoc">
@@ -405,6 +409,6 @@
<signAndDeploy file="${pom.xml}" packaging="pom" classifier="" pom="${pom.xml}"/>
<signAndDeploy file="${jar.file}" packaging="jar" classifier="" pom="${pom.xml}"/>
<signAndDeploy file="${javadoc.jar.file}" packaging="jar" classifier="javadoc" pom="${pom.xml}"/>
- <signAndDeploy file="${source.tar.gz}" packaging="src" classifier="tar.gz" pom="${pom.xml}"/>
+ <signAndDeploy file="${source.jar.file}" packaging="src" classifier="sources" pom="${pom.xml}"/>
</target>
</project>