blob: 923da2bdb755d7af0749dd75b3520f8cc1eabe5a [file] [log] [blame]
David Reiss36a5a252009-04-29 23:20:56 +00001<?xml version="1.0"?>
David Reissea2cba82009-03-30 21:35:00 +00002<!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
Jake Farrell4b8faf92011-04-19 21:11:54 +000010
11 http://www.apache.org/licenses/LICENSE-2.0
12
David Reissea2cba82009-03-30 21:35:00 +000013 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
Jake Farrell4b8faf92011-04-19 21:11:54 +000019 -->
David Reiss36a5a252009-04-29 23:20:56 +000020<project name="libthrift" default="dist" basedir="."
Bryan Duxbury547edc72010-03-28 21:02:38 +000021 xmlns:artifact="antlib:org.apache.maven.artifact.ant">
Jake Farrell4b8faf92011-04-19 21:11:54 +000022
Mark Slee83c52a82006-06-07 06:51:18 +000023 <description>Thrift Build File</description>
Bryan Duxbury2f45e782009-08-20 00:55:12 +000024 <property name="thrift.root" location="../../"/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000025 <property name="thrift.artifactid" value="libthrift"/>
Bryan Duxbury249d7cb2009-01-29 01:21:20 +000026
Jake Farrell4b8faf92011-04-19 21:11:54 +000027 <!-- Include the base properties file -->
28 <property file="${basedir}/build.properties" />
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000029
30 <property environment="env"/>
31
32 <condition property="version" value="${thrift.version}">
33 <isset property="release"/>
34 </condition>
Jake Farrell4b8faf92011-04-19 21:11:54 +000035 <property name="version" value="${thrift.version}-snapshot"/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000036
37 <property name="final.name" value="${thrift.artifactid}-${version}"/>
38
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000039 <property name="src" location="${basedir}/src"/>
40 <property name="build.dir" location="${basedir}/build"/>
41 <property name="build.lib.dir" location="${build.dir}/lib"/>
42 <property name="build.tools.dir" location="${build.dir}/tools"/>
43 <property name="src.test" location="test"/>
Jake Farrell4b8faf92011-04-19 21:11:54 +000044 <property name="javadoc.dir" location="${build.dir}/javadoc"/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000045 <property name="build.test.dir" location="${build.dir}/test"/>
46 <property name="test.thrift.home" location="${thrift.root}/test"/>
47
Jake Farrell4b8faf92011-04-19 21:11:54 +000048 <property name="gen" location="gen-java"/>
49 <property name="genbean" location="gen-javabean"/>
50
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000051 <property name="jar.file" location="${build.dir}/${final.name}.jar"/>
52 <property name="test.jar.file" location="${build.dir}/${final.name}-test.jar"/>
53 <property name="javadoc.jar.file" location="${build.dir}/${final.name}-javadoc.jar"/>
54 <property name="source.tar.gz" location="${build.dir}/${final.name}-src.tar.gz"/>
55
56 <!-- Junit properties -->
57 <property name="test.junit.output.format" value="plain"/>
58 <property name="test.timeout" value="2000000"/>
59 <property name="test.src.dir" location="${basedir}/test"/>
60 <property name="test.log.dir" value="${build.test.dir}/log"/>
Jake Farrell4b8faf92011-04-19 21:11:54 +000061 <property name="test.port" value="9090"/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000062
63 <!-- maven properties -->
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000064 <property name="pom.xml" location="${build.dir}/${final.name}.pom"/>
65
David Reiss36a5a252009-04-29 23:20:56 +000066 <path id="compile.classpath">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000067 <fileset dir="${build.lib.dir}">
68 <include name="**/*.jar"/>
69 </fileset>
David Reiss36a5a252009-04-29 23:20:56 +000070 </path>
71
72 <path id="test.classpath">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000073 <path refid="compile.classpath"/>
74 <pathelement path="${env.CLASSPATH}"/>
75 <pathelement location="${build.test.dir}"/>
76 <pathelement location="${jar.file}"/>
77 <pathelement location="${test.jar.file}"/>
David Reiss36a5a252009-04-29 23:20:56 +000078 </path>
Bryan Duxbury538e3442009-02-10 04:49:39 +000079
Jake Farrell4b8faf92011-04-19 21:11:54 +000080 <!-- Tasks -->
81 <target name="init" depends="setup.init,mvn.init" unless="init.finished">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000082 <property name="init.finished" value="true"/>
Mark Slee83c52a82006-06-07 06:51:18 +000083 </target>
84
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000085 <target name="setup.init">
86 <tstamp/>
87 <mkdir dir="${build.dir}"/>
88 <mkdir dir="${build.lib.dir}"/>
89 <mkdir dir="${build.tools.dir}"/>
90 <mkdir dir="${build.test.dir}"/>
David Reiss36a5a252009-04-29 23:20:56 +000091 </target>
92
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000093 <target name="compile" depends="init">
94 <javac srcdir="${src}" destdir="${build.dir}" source="1.5" target="1.5"
Jake Farrell4b8faf92011-04-19 21:11:54 +000095 debug="true" classpathref="compile.classpath" includeantruntime="false"/>
David Reiss36a5a252009-04-29 23:20:56 +000096 </target>
97
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +000098 <target name="javadoc" depends="init">
99 <javadoc sourcepath="${src}" destdir="${javadoc.dir}"
100 version="true" windowtitle="Thrift Java API" doctitle="Thrift Java API"
Bryan Duxburyd8c77572010-07-29 19:30:47 +0000101 classpathref="test.classpath">
Bryan Duxbury32e04b42009-03-20 16:43:06 +0000102 </javadoc>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000103 <jar jarfile="${javadoc.jar.file}" basedir="${javadoc.dir}">
104 <manifest>
105 <attribute name="Implementation-Version" value="${version}"/>
106 </manifest>
107 </jar>
Mark Slee83c52a82006-06-07 06:51:18 +0000108 </target>
109
Bryan Duxbury32e04b42009-03-20 16:43:06 +0000110 <target name="dist" depends="compile">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000111 <mkdir dir="${build.dir}/META-INF"/>
112 <copy file="${thrift.root}/LICENSE" tofile="${build.dir}/META-INF/LICENSE.txt"/>
113 <copy file="${thrift.root}/NOTICE" tofile="${build.dir}/META-INF/NOTICE.txt"/>
Bryan Duxbury547edc72010-03-28 21:02:38 +0000114 <jar jarfile="${jar.file}">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000115 <manifest>
116 <attribute name="Implementation-Version" value="${version}"/>
117 </manifest>
118 <fileset dir="${build.dir}">
119 <include name="org/apache/thrift/**/*.class"/>
120 <include name="META-INF/*.txt"/>
Bryan Duxbury32e04b42009-03-20 16:43:06 +0000121 </fileset>
122 <fileset dir="src">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000123 <include name="**/*.java"/>
Bryan Duxbury32e04b42009-03-20 16:43:06 +0000124 </fileset>
125 </jar>
126 </target>
127
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000128 <target name="pack.src">
129 <tar destfile="${source.tar.gz}" basedir="${src}" compression="gzip"/>
130 </target>
131
Bryan Duxbury32e04b42009-03-20 16:43:06 +0000132 <target name="install" depends="dist,javadoc">
David Reiss56c2c212009-06-04 02:05:25 +0000133 <copy todir="${install.path}">
Jake Farrell73b8dfc2011-06-02 16:13:18 +0000134 <fileset dir="${build.dir}" includes="*.jar"/>
135 <fileset dir="${build.lib.dir}" includes="*.jar"/>
David Reiss56c2c212009-06-04 02:05:25 +0000136 </copy>
Bryan Duxbury32e04b42009-03-20 16:43:06 +0000137 <copy todir="${install.javadoc.path}">
Jake Farrell73b8dfc2011-06-02 16:13:18 +0000138 <fileset dir="${javadoc.dir}" includes="**/*"/>
Bryan Duxbury32e04b42009-03-20 16:43:06 +0000139 </copy>
Mark Slee83c52a82006-06-07 06:51:18 +0000140 </target>
141
142 <target name="clean">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000143 <delete dir="${build.dir}"/>
Bryan Duxbury249d7cb2009-01-29 01:21:20 +0000144 <delete dir="${gen}"/>
145 <delete dir="${genbean}"/>
Mark Slee83c52a82006-06-07 06:51:18 +0000146 </target>
147
Bryan Duxbury249d7cb2009-01-29 01:21:20 +0000148 <target name="compile-test" description="Build the test suite classes" depends="generate,dist">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000149 <javac debug="true" srcdir="${gen}" destdir="${build.test.dir}" classpathref="test.classpath" includeantruntime="false"/>
150 <javac debug="true" srcdir="${genbean}" destdir="${build.test.dir}" classpathref="test.classpath" includeantruntime="false"/>
151 <javac debug="true" srcdir="${src.test}" destdir="${build.test.dir}" classpathref="test.classpath" includeantruntime="false"/>
152 <copy todir="${build.test.dir}">
153 <fileset dir="${src.test}" includes="log4j.properties"/>
Todd Lipconfcaa8f52010-09-27 23:51:22 +0000154 </copy>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000155 <jar jarfile="${test.jar.file}" basedir="${build.test.dir}"/>
Bryan Duxbury249d7cb2009-01-29 01:21:20 +0000156 </target>
157
Bryan Duxbury951e7e22010-03-26 05:05:59 +0000158 <target name="junit-test" description="Run the JUnit test suite" depends="compile-test">
159 <mkdir dir="${test.log.dir}"/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000160 <junit printsummary="true" showoutput="${test.output}" timeout="${test.timeout}"
Jake Farrell4b8faf92011-04-19 21:11:54 +0000161 haltonfailure="true" errorProperty="tests.failed" failureProperty="tests.failed"
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000162 fork="true" forkmode="perTest" maxmemory="512m"
Bryan Duxbury951e7e22010-03-26 05:05:59 +0000163 >
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000164 <sysproperty key="build.test" value="${build.test.dir}"/>
165 <sysproperty key="test.port" value="${test.port}"/>
Bryan Duxbury1b130832010-10-19 17:20:57 +0000166 <sysproperty key="javax.net.ssl.trustStore" value="${src.test}/.truststore"/>
167 <sysproperty key="javax.net.ssl.trustStorePassword" value="thrift"/>
168 <sysproperty key="javax.net.ssl.keyStore" value="${src.test}/.keystore"/>
169 <sysproperty key="javax.net.ssl.keyStorePassword" value="thrift"/>
Bryan Duxbury951e7e22010-03-26 05:05:59 +0000170 <classpath refid="test.classpath"/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000171 <formatter type="${test.junit.output.format}"/>
Bryan Duxbury951e7e22010-03-26 05:05:59 +0000172 <batchtest todir="${test.log.dir}" unless="testcase">
Roger Meier5013de22010-10-25 19:57:26 +0000173 <fileset dir="${test.src.dir}">
174 <include name="**/Test*.java"/>
175 <exclude name="**/TestClient.java"/>
176 <exclude name="**/TestServer.java"/>
177 <exclude name="**/TestNonblockingServer.java"/>
178 </fileset>
Bryan Duxbury951e7e22010-03-26 05:05:59 +0000179 </batchtest>
180 <batchtest todir="${test.log.dir}" if="testcase">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000181 <fileset dir="${test.src.dir}" includes="**/${testcase}.java"/>
Bryan Duxbury951e7e22010-03-26 05:05:59 +0000182 </batchtest>
183 </junit>
184 <fail if="tests.failed">Tests failed!</fail>
185 </target>
186
187 <target name="deprecated-test" description="Run the non-JUnit test suite" depends="compile-test">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000188 <java classname="org.apache.thrift.test.EqualityTest" classpathref="test.classpath" failonerror="true"/>
189 <java classname="org.apache.thrift.test.JavaBeansTest" classpathref="test.classpath" failonerror="true"/>
Bryan Duxbury249d7cb2009-01-29 01:21:20 +0000190 </target>
191
Bryan Duxbury951e7e22010-03-26 05:05:59 +0000192 <target name="test" description="Run the full test suite" depends="junit-test,deprecated-test"/>
193
Roger Meier62b7cfb2010-10-23 22:25:04 +0000194 <target name="testclient" description="Run a test client" depends="compile-test">
David Reiss2727fab2009-12-09 19:30:01 +0000195 <java classname="org.apache.thrift.test.TestClient"
196 classpathref="test.classpath" failonerror="true">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000197 <arg line="${testargs}"/>
David Reiss2727fab2009-12-09 19:30:01 +0000198 </java>
199 </target>
200
Roger Meier62b7cfb2010-10-23 22:25:04 +0000201 <target name="testserver" description="Run a test server" depends="compile-test">
David Reiss2727fab2009-12-09 19:30:01 +0000202 <java classname="org.apache.thrift.test.TestServer"
203 classpathref="test.classpath" failonerror="true">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000204 <arg line="${testargs}"/>
David Reiss2727fab2009-12-09 19:30:01 +0000205 </java>
206 </target>
207
Roger Meier62b7cfb2010-10-23 22:25:04 +0000208 <target name="testnonblockingserver" description="Run a test nonblocking server" depends="compile-test">
David Reiss2727fab2009-12-09 19:30:01 +0000209 <java classname="org.apache.thrift.test.TestNonblockingServer"
210 classpathref="test.classpath" failonerror="true">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000211 <arg line="${testargs}"/>
David Reiss2727fab2009-12-09 19:30:01 +0000212 </java>
213 </target>
214
Bryan Duxbury249d7cb2009-01-29 01:21:20 +0000215 <target name="generate">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000216 <!-- Generate the thrift gen-java source -->
Bryan Duxbury2845b162009-11-09 15:55:22 +0000217 <exec executable="../../compiler/cpp/thrift" failonerror="true">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000218 <arg line="--gen java:hashcode ${test.thrift.home}/ThriftTest.thrift"/>
Bryan Duxbury249d7cb2009-01-29 01:21:20 +0000219 </exec>
Bryan Duxbury2845b162009-11-09 15:55:22 +0000220 <exec executable="../../compiler/cpp/thrift" failonerror="true">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000221 <arg line="--gen java:hashcode ${test.thrift.home}/DebugProtoTest.thrift"/>
Bryan Duxbury249d7cb2009-01-29 01:21:20 +0000222 </exec>
Bryan Duxbury2845b162009-11-09 15:55:22 +0000223 <exec executable="../../compiler/cpp/thrift" failonerror="true">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000224 <arg line="--gen java:hashcode ${test.thrift.home}/OptionalRequiredTest.thrift"/>
Bryan Duxbury249d7cb2009-01-29 01:21:20 +0000225 </exec>
Bryan Duxbury2845b162009-11-09 15:55:22 +0000226 <exec executable="../../compiler/cpp/thrift" failonerror="true">
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000227 <arg line="--gen java:beans,nocamel ${test.thrift.home}/JavaBeansTest.thrift"/>
Bryan Duxbury249d7cb2009-01-29 01:21:20 +0000228 </exec>
229 </target>
230
Jake Farrellc023d902011-05-20 19:04:13 +0000231 <target name="mvn.ant.tasks.download" depends="setup.init,mvn.ant.tasks.check" unless="mvn.ant.tasks.found">
Jake Farrell4b8faf92011-04-19 21:11:54 +0000232 <get src="${mvn.ant.task.url}/${mvn.ant.task.jar}" dest="${build.tools.dir}/${mvn.ant.task.jar}" usetimestamp="true"/>
Bryan Duxbury547edc72010-03-28 21:02:38 +0000233 </target>
234
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000235 <target name="mvn.ant.tasks.check">
236 <condition property="mvn.ant.tasks.found">
237 <typefound uri="antlib:org.apache.maven.artifact.ant" name="artifact"/>
238 </condition>
Jake Farrell4b8faf92011-04-19 21:11:54 +0000239 </target>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000240
241 <target name="mvn.init" depends="mvn.ant.tasks.download" unless="mvn.finished">
242 <!-- Download mvn ant tasks, download dependencies, and setup pom file -->
Jake Farrell4b8faf92011-04-19 21:11:54 +0000243 <typedef uri="antlib:org.apache.maven.artifact.ant" classpath="${build.tools.dir}/${mvn.ant.task.jar}"/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000244
245 <!-- remote repositories used to download dependencies from -->
246 <artifact:remoteRepository id="central" url="${mvn.repo}"/>
247 <artifact:remoteRepository id="apache" url="${apache.repo}"/>
248
249 <!-- Pom file information -->
250 <artifact:pom id="pom"
251 groupId="${thrift.groupid}"
252 artifactId="${thrift.artifactid}"
253 version="${version}"
254 url="http://thrift.apache.org"
255 name="Apache Thrift"
256 description="Thrift is a software framework for scalable cross-language services development."
257 packaging="pom"
258 >
259 <remoteRepository refid="central"/>
260 <remoteRepository refid="apache"/>
261 <license name="The Apache Software License, Version 2.0" url="${license}"/>
262 <scm connection="scm:svn:http://svn.apache.org/repos/asf/thrift/trunk/"
263 developerConnection="scm:svn:http://svn.apache.org/repos/asf/thrift/trunk/"
264 url="http://svn.apache.org/viewcvs.cgi/thrift"
265 />
266 <!-- Thrift Developers -->
267 <developer id="mcslee" name="Mark Slee"/>
268 <developer id="dreiss" name="David Reiss"/>
269 <developer id="aditya" name="Aditya Agarwal"/>
270 <developer id="marck" name="Marc Kwiatkowski"/>
271 <developer id="jwang" name="James Wang"/>
272 <developer id="cpiro" name="Chris Piro"/>
273 <developer id="bmaurer" name="Ben Maurer"/>
274 <developer id="kclark" name="Kevin Clark"/>
275 <developer id="jake" name="Jake Luciani"/>
276 <developer id="bryanduxbury" name="Bryan Duxbury"/>
277 <developer id="esteve" name="Esteve Fernandez"/>
278 <developer id="todd" name="Todd Lipcon"/>
279 <developer id="geechorama" name="Andrew McGeachie"/>
280 <developer id="molinaro" name="Anthony Molinaro"/>
281 <developer id="roger" name="Roger Meier"/>
Jake Farrell4b8faf92011-04-19 21:11:54 +0000282 <developer id="jfarrell" name="Jake Farrell"/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000283
284 <!-- Thrift dependencies list -->
285 <dependency groupId="org.slf4j" artifactId="slf4j-api" version="1.5.8"/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000286 <dependency groupId="commons-lang" artifactId="commons-lang" version="2.5"/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000287 <dependency groupId="javax.servlet" artifactId="servlet-api" version="2.5"/>
288 <dependency groupId="org.apache.httpcomponents" artifactId="httpclient" version="4.0.1"/>
289 </artifact:pom>
290
291 <!-- Generate the pom file -->
292 <artifact:writepom pomRefId="pom" file="${pom.xml}"/>
293
294 <!-- Download the dependencies -->
295 <artifact:dependencies filesetId="build-dependency-jars" pomRefId="pom"/>
296
297 <!-- Copy the dependencies to the build/lib dir -->
298 <copy todir="${build.dir}/lib">
299 <fileset refid="build-dependency-jars"/>
300 <mapper type="flatten"/>
301 </copy>
302
Jake Farrell6ece9be2011-04-26 15:44:50 +0000303 <!-- Dependencies needed for testing -->
304 <artifact:dependencies filesetId="test-dependency-jars" useScope="runtime">
305 <dependency groupId="org.slf4j" artifactId="slf4j-log4j12" version="1.5.8"/>
306 <dependency groupId="junit" artifactId="junit" version="4.4"/>
307 </artifact:dependencies>
308
309 <!-- Copy the test dependencies to the build/lib dir -->
310 <copy todir="${build.dir}/lib">
311 <fileset refid="test-dependency-jars"/>
312 <mapper type="flatten"/>
313 </copy>
314
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000315 <property name="mvn.finished" value="true"/>
Bryan Duxbury547edc72010-03-28 21:02:38 +0000316 </target>
317
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000318 <macrodef name="signAndDeploy">
319 <!-- Sign and deploy jars to apache repo -->
320 <attribute name="file"/>
321 <attribute name="classifier" default=""/>
322 <attribute name="packaging" default="jar"/>
Jake Farrellc023d902011-05-20 19:04:13 +0000323 <attribute name="pom" default=""/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000324 <sequential>
325 <artifact:mvn fork="true">
326 <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.1:sign-and-deploy-file"/>
327 <arg value="-DrepositoryId=${maven-repository-id}"/>
328 <arg value="-Durl=${maven-repository-url}"/>
Jake Farrellc023d902011-05-20 19:04:13 +0000329 <arg value="-DpomFile=@{pom}"/>
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000330 <arg value="-Dfile=@{file}"/>
331 <arg value="-Dclassifier=@{classifier}"/>
332 <arg value="-Dpackaging=@{packaging}"/>
333 <arg value="-Pgpg"/>
334 </artifact:mvn>
335 </sequential>
336 </macrodef>
Bryan Duxbury547edc72010-03-28 21:02:38 +0000337
Bryan Duxbury55f7ffe2011-03-24 17:24:27 +0000338 <target name="publish" depends="clean,init,test,dist,javadoc,pack.src">
339 <!-- Compile, package, test and then send release to apache maven repo -->
340 <!-- run with: ant -Drelease=true publish-->
Jake Farrellc023d902011-05-20 19:04:13 +0000341 <signAndDeploy file="${pom.xml}" packaging="pom" classifier="" pom="${pom.xml}"/>
342 <signAndDeploy file="${jar.file}" packaging="jar" classifier="" pom="${pom.xml}"/>
343 <signAndDeploy file="${javadoc.jar.file}" packaging="jar" classifier="javadoc" pom="${pom.xml}"/>
344 <signAndDeploy file="${source.tar.gz}" packaging="src" classifier="tar.gz" pom="${pom.xml}"/>
Bryan Duxbury547edc72010-03-28 21:02:38 +0000345 </target>
Mark Slee83c52a82006-06-07 06:51:18 +0000346</project>