From fd0eee20f49a36074b408179ec973146700a0252 Mon Sep 17 00:00:00 2001 From: nash Date: Sun, 25 Apr 2010 21:19:33 +0000 Subject: Use dependencies packaged within travel sample distribution in preference to environment variable settings git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@937878 13f79535-47bb-0310-9956-ffa450edef68 --- .../trunk/tutorials/travelsample/antdefs.xml | 167 +++++++++++++++++++-- .../clients/currency-converter-ws-jaxws/build.xml | 21 +-- .../launchers/notification-ejb/build.xml | 4 +- .../travelsample/services/smsgateway-ejb/build.xml | 4 +- .../services/smsgateway-jaxws/build.xml | 21 +-- 5 files changed, 159 insertions(+), 58 deletions(-) (limited to 'sca-java-1.x/trunk') diff --git a/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml index 3a7ad87548..ceb36979ac 100644 --- a/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml +++ b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml @@ -27,9 +27,12 @@ This build file has been tested with JDK 5 update 22 and JDK 6 update 7. When invoking a build.xml file that imports this file, the following - environment variables must be set: + environment variable must be set: TUSCANY_HOME A directory containing the Tuscany SCA binary distribution. This build file has been tested with Tuscany SCA version 1.6. + + When building from a svn checkout (but not when building from a downloaded + distribution), the following environment variables must be set: JUNIT_JAR The location of the JUnit jar file. This build file has been tested with JUnit version 4.5. JAXWS_HOME (only if using JDK 5) A directory containing the JAX-WS @@ -88,6 +91,15 @@ "add-implementation-web" Adds implementation.web support to the installed Tuscany SCA binary distribution if not already there. + This file also defines the following targets for use with the "depends" + attribute on targets in the build.xml file: + "locate-openejb" Locates the OpenEJB dependencies needed by some + modules and sets the "openejb-dir" property to a directory + containing these dependencies. + "locate-jaxws" Locates the JAX-WS dependencies needed by some modules + when running on JDK 5, and creates a path with id "jaxws-path" + to bring in these dependencies. + All other targets defined by this file (with names starting with "#") are for internal use within this file and should not be used externally. --> @@ -97,9 +109,6 @@ Error: Please set the TUSCANY_HOME environment variable. - - Error: Please set the JUNIT_JAR environment variable. - @@ -144,6 +153,7 @@ + + + + + + + + + + + + + + + + + + + + + + + - - - - + Error: Could not find wsimport executable or jaxws-tools.jar. - + + + + - + @@ -364,21 +398,51 @@ + + + + + + + + + + + + + + Error: Couldn't find JUnit jar file. + + + + + + + + + + + + + + + + - + - + - + @@ -386,7 +450,7 @@ - + @@ -553,6 +617,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Error: Couldn't find OpenEJB dependencies. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Error: Couldn't find JAX-WS dependencies. + + + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/build.xml index 116f2999ba..a1181373c9 100644 --- a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/build.xml +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/build.xml @@ -34,7 +34,7 @@ - + @@ -42,23 +42,4 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/build.xml index ec1416635c..ddb8ae32e5 100644 --- a/sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/build.xml +++ b/sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/build.xml @@ -29,13 +29,13 @@ - + - + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml index cc7456ac52..ac75efa6ca 100644 --- a/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml +++ b/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml @@ -23,12 +23,12 @@ - + - + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jaxws/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jaxws/build.xml index 6c57e2420b..bdbf07c42f 100644 --- a/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jaxws/build.xml +++ b/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jaxws/build.xml @@ -23,7 +23,7 @@ - + @@ -31,23 +31,4 @@ - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3