summaryrefslogtreecommitdiff
path: root/java/build.xml
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2012-05-11 15:36:49 +0000
committerRobert Gemmell <robbie@apache.org>2012-05-11 15:36:49 +0000
commitf423571bb4239a65945e2bc52b2e64f9e2163042 (patch)
tree4f125010b7a11e047ff17922102e6776dd6b0071 /java/build.xml
parent9bb5ada379722f35f12bce387cc71af1172bc2c5 (diff)
downloadqpid-python-f423571bb4239a65945e2bc52b2e64f9e2163042.tar.gz
QPID-3994: use Ivy to download the main component dependencies during the build, and the optional bdb-je dependency on request, enabling removal of the main component dependencies from the repository and the 'source release' artifacts.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1337211 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/build.xml')
-rw-r--r--java/build.xml22
1 files changed, 20 insertions, 2 deletions
diff --git a/java/build.xml b/java/build.xml
index 1de6c8f49c..0905d650d4 100644
--- a/java/build.xml
+++ b/java/build.xml
@@ -18,7 +18,7 @@
- under the License.
-
-->
-<project name="AMQ Java" default="build">
+<project name="AMQ Java" xmlns:ivy="antlib:org.apache.ivy.ant" default="build">
<import file="common.xml"/>
@@ -156,7 +156,7 @@
<touch file="${qpid.jar}"/>
</target>
- <target name="build" description="build the project">
+ <target name="build" depends="retrieve-dependencies" description="build the project">
<iterate target="build"/>
<antcall target="manifest"/>
</target>
@@ -296,4 +296,22 @@
<target name="eclipse" description="build eclipse project and classpath files">
<iterate target="eclipse"/>
</target>
+
+ <!-- check the following properties which must be specified by the user-->
+ <target name="check-upload-props-exist" description="check that the required properties have been set">
+ <fail unless="nexus.user" message="You must supply the 'nexus.user' property"/>
+ <fail unless="nexus.password" message="You must supply the 'nexus.password' property"/>
+ <fail unless="maven.artifact.dir" message="You must supply the 'maven.artifact.dir' property"/>
+ </target>
+
+ <target name="perform-nexus-upload">
+ <ivy:configure file="ivysettings.nexus.xml"/>
+ <ivy:resolve file="ivy.nexus.xml"/>
+ <ivy:deliver/>
+ <ivy:publish publishivy="false" resolver="nexus"
+ artifactspattern="${maven.artifact.dir}/[organisation]/[module]/[artifact]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/>
+ </target>
+
+ <target name="upload" depends="load-ivy, check-upload-props-exist, perform-nexus-upload"/>
+
</project>