From e4c35d5b84d5a900124af468f3576fed84409da7 Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Sun, 6 May 2012 22:59:04 +0000 Subject: NO-JIRA: use Ivy to download the dependencies - Merge upload.xml into main common.xml/build.xml file, functionality is now the upload target. - Update the global build target to automatically download Ivy if required and retrieve dependencys (can be overriden). - Add configurable support for resolving against an m2 repo (default, central repo), or a flat folder of jars in the filesystem (as previously used). - Update build process to allow using full filename for the javacc dependency. - Update jython version to allow downloading the dependency, clarify that its the 'standalone' version in use. - Update ivy files to use variables instead of hard coded values for project version etc. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/dep_removal@1334816 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/build.xml | 22 +++++++++- qpid/java/common.xml | 71 +++++++++++++++++++++++++++++- qpid/java/common/build.xml | 7 ++- qpid/java/ivy.nexus.xml | 57 ++++++++++++++++++++++++ qpid/java/ivy.retrieve.xml | 56 ++++++++++++++++++++++++ qpid/java/ivy.xml | 57 ------------------------ qpid/java/ivysettings-nexus.xml | 30 ------------- qpid/java/ivysettings.nexus.xml | 29 ++++++++++++ qpid/java/ivysettings.retrieve.xml | 32 ++++++++++++++ qpid/java/upload.xml | 90 -------------------------------------- 10 files changed, 269 insertions(+), 182 deletions(-) create mode 100644 qpid/java/ivy.nexus.xml create mode 100644 qpid/java/ivy.retrieve.xml delete mode 100644 qpid/java/ivy.xml delete mode 100644 qpid/java/ivysettings-nexus.xml create mode 100644 qpid/java/ivysettings.nexus.xml create mode 100644 qpid/java/ivysettings.retrieve.xml delete mode 100644 qpid/java/upload.xml (limited to 'qpid/java') diff --git a/qpid/java/build.xml b/qpid/java/build.xml index 1de6c8f49c..0905d650d4 100644 --- a/qpid/java/build.xml +++ b/qpid/java/build.xml @@ -18,7 +18,7 @@ - under the License. - --> - + @@ -156,7 +156,7 @@ - + @@ -296,4 +296,22 @@ + + + + + + + + + + + + + + + + + diff --git a/qpid/java/common.xml b/qpid/java/common.xml index 2059e0aeb9..1ce5db04f3 100644 --- a/qpid/java/common.xml +++ b/qpid/java/common.xml @@ -18,7 +18,7 @@ - under the License. - --> - + @@ -82,6 +82,7 @@ + @@ -90,6 +91,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -141,7 +180,7 @@ - + @@ -221,6 +260,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + ant build diff --git a/qpid/java/common/build.xml b/qpid/java/common/build.xml index fe96f384d5..4cb565ca42 100644 --- a/qpid/java/common/build.xml +++ b/qpid/java/common/build.xml @@ -98,10 +98,15 @@ public class QpidBuildVersion + + + + + + javacchome="${module.build}"/> diff --git a/qpid/java/ivy.nexus.xml b/qpid/java/ivy.nexus.xml new file mode 100644 index 0000000000..61ae9f315b --- /dev/null +++ b/qpid/java/ivy.nexus.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/qpid/java/ivy.retrieve.xml b/qpid/java/ivy.retrieve.xml new file mode 100644 index 0000000000..6b7d1dfa18 --- /dev/null +++ b/qpid/java/ivy.retrieve.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/qpid/java/ivy.xml b/qpid/java/ivy.xml deleted file mode 100644 index cc891094a3..0000000000 --- a/qpid/java/ivy.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/qpid/java/ivysettings-nexus.xml b/qpid/java/ivysettings-nexus.xml deleted file mode 100644 index 1d9c393e23..0000000000 --- a/qpid/java/ivysettings-nexus.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/qpid/java/ivysettings.nexus.xml b/qpid/java/ivysettings.nexus.xml new file mode 100644 index 0000000000..03f84f9f7c --- /dev/null +++ b/qpid/java/ivysettings.nexus.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + diff --git a/qpid/java/ivysettings.retrieve.xml b/qpid/java/ivysettings.retrieve.xml new file mode 100644 index 0000000000..c4287cee16 --- /dev/null +++ b/qpid/java/ivysettings.retrieve.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + diff --git a/qpid/java/upload.xml b/qpid/java/upload.xml deleted file mode 100644 index 9f2fd6819b..0000000000 --- a/qpid/java/upload.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - Targets for uploading releases to ASF's Nexus instance - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Ivy can be leveraged either by installing it in the Ant lib dir yourself, -or by running the following command in qpid/java to place it in the -qpid/java/lib/ivy lib folder: - - ant -buildfile upload.xml download-ivy - -The publishing task should be run once the release process has otherwise -been completed and the artifacts signed. It can be performed from the -qpid/java directory with a command as follows: - - ant -buildfile upload.xml -Dnexus.user=<apache_username> -Dnexus.password=<password> - -Dmaven.artifact.dir=<path to maven repo structure from release process> - -Note: if you are behind a proxy server it is necessary to give Ant the -proxy settings by doing something like: - -export ANT_OPTS="-Dhttp.proxyHost=<host> -Dhttp.proxyPort=<port> -Dhttps.proxyHost=<host> -Dhttps.proxyPort=<port>" - - - -- cgit v1.2.1