summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/tutorials
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-05-29 08:46:06 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-05-29 08:46:06 +0000
commit8904a42a2b81ea39737cc26d7a6cb88e9826b647 (patch)
tree211e036f11f7cfee9b1006d4fa6be2e37e150da8 /sca-java-1.x/trunk/tutorials
parentd69aa136e63ee800ff63d4d4ace9c553f5049db1 (diff)
Fix OpenEJB classpath problems on JDK 5 (TUSCANY-3576)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@949356 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/tutorials')
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml21
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/binaries/src/main/resources/build-defs.xml3
2 files changed, 17 insertions, 7 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml
index 08ff42ba2e..1a3c960ba6 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml
@@ -104,7 +104,7 @@
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-files" files resource to bring in
+ modules and creates a path with id "openejb-path" to bring in
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"
@@ -652,9 +652,9 @@
</condition>
</target>
- <!-- If running from a maven build, the OpenEJB jars are in binaries/target/openejb -->
+ <!-- If running from a complete build, the OpenEJB jars are in binaries/target/openejb -->
<target name="#binaries-openejb" unless="#openejb-dir">
- <condition property="#openejb-reldir" value="../../binaries/target/openejb">
+ <condition property="#openejb-dir" value="../../binaries/target/openejb">
<available file="../../binaries/target/openejb" type="dir"/>
</condition>
</target>
@@ -663,11 +663,22 @@
<target name="#tuscany-openejb" if="#openejb-dir">
<path id="openejb-path">
<fileset dir="${#openejb-dir}"/>
- <fileset dir="${env.TUSCANY_HOME}/lib"/>
+ <!-- The openejb directory doesn't include all dependencies, so bring these in from Tuscany -->
+ <fileset dir="${env.TUSCANY_HOME}/lib">
+ <!-- exclude some jars to prevent them being loaded by OpenEJB -->
+ <exclude name="tuscany-sca-manifest.jar"/>
+ <exclude name="ode-*.jar"/>
+ <exclude name="jaxb-xjc-*.jar"/>
+ <exclude name="jython-*.jar"/>
+ <exclude name="activemq-all-*.jar"/>
+ <exclude name="js-*.jar"/>
+ <exclude name="org.apache.felix.main-*.jar"/>
+ <exclude name="saxon-*.jar"/>
+ </fileset>
</path>
</target>
- <!-- Could be running from an ant build of a svn checkout, so try the OPENEJB_HOME environment variable -->
+ <!-- If OpenEJB jars not found in lib or binaries, try the OPENEJB_HOME environment variable -->
<target name="#env-openejb" unless="#openejb-dir">
<condition property="#openejb-home" value="${env.OPENEJB_HOME}/lib">
<available file="${env.OPENEJB_HOME}/lib" type="dir"/>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/binaries/src/main/resources/build-defs.xml b/sca-java-1.x/trunk/tutorials/travelsample/binaries/src/main/resources/build-defs.xml
index 1fb9a327f0..1be4bb9b45 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/binaries/src/main/resources/build-defs.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/binaries/src/main/resources/build-defs.xml
@@ -30,10 +30,9 @@
</path>
<path id="scatours.tuscany-openejb">
+ <fileset dir="${env.TUSCANY_HOME}/lib"/>
<!-- We need the following if the jars were built using ant and have no manifest classpath -->
<fileset dir="../openejb"/>
- <!-- The openejb directory doesn't include all dependencies, so bring these in from Tuscany -->
- <fileset dir="${env.TUSCANY_HOME}/lib"/>
</path>
<path id="scatours.openejb-runtime">