summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/branches/sca-java-travelsample-1.0
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-05-16 23:12:07 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-05-16 23:12:07 +0000
commit38f87ce5ee3e4c7631598c32f3330e13b2ba73c4 (patch)
treebf61a219f8090c20eb68cd5a9634a70f4e486097 /sca-java-1.x/branches/sca-java-travelsample-1.0
parent18658ff2a130e911504a17768966532372f89488 (diff)
Pass OpenEJB jars to build.xml as <path> instead of <files>
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@944937 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/branches/sca-java-travelsample-1.0')
-rw-r--r--sca-java-1.x/branches/sca-java-travelsample-1.0/antdefs.xml31
-rw-r--r--sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb/build.xml2
-rw-r--r--sca-java-1.x/branches/sca-java-travelsample-1.0/services/smsgateway-ejb/build.xml2
3 files changed, 20 insertions, 15 deletions
diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/antdefs.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/antdefs.xml
index c0a6e3ff9c..004e777ab1 100644
--- a/sca-java-1.x/branches/sca-java-travelsample-1.0/antdefs.xml
+++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/antdefs.xml
@@ -653,41 +653,46 @@
<!-- If running from a downloaded distribution, the OpenEJB jars are in lib/openejb -->
<target name="#lib-openejb">
- <condition property="#openejb-reldir" value="../../../lib/openejb">
+ <condition property="#openejb-dir" value="../../../lib/openejb">
<available file="../../../lib/openejb" type="dir"/>
</condition>
</target>
<!-- If running from a maven build, the OpenEJB jars are in binaries/target/openejb -->
- <target name="#binaries-openejb" unless="#openejb-reldir">
+ <target name="#binaries-openejb" unless="#openejb-dir">
<condition property="#openejb-reldir" value="../../binaries/target/openejb">
<available file="../../binaries/target/openejb" type="dir"/>
</condition>
</target>
- <!-- Add the Tuscany runtime to the OpenEJB directory -->
- <target name="#tuscany-openejb" if="#openejb-reldir">
- <property name="#openejb-tuscany" value=""/>
- <dirname property="#ejbdir" file="${#openejb-reldir}"/>
- <property name="#openejb-dir" value="${#ejbdir}/openejb"/>
+ <!-- Set the path as the OpenEJB directory and the Tuscany runtime -->
+ <target name="#tuscany-openejb" if="#openejb-dir">
+ <path id="openejb-path">
+ <fileset dir="${#openejb-dir}"/>
+ <fileset dir="${env.TUSCANY_HOME}/lib"/>
+ </path>
</target>
<!-- Could be running from an ant build of a svn checkout, so try the OPENEJB_HOME environment variable -->
<target name="#env-openejb" unless="#openejb-dir">
- <condition property="#openejb-dir" value="${env.OPENEJB_HOME}/lib">
+ <condition property="#openejb-home" value="${env.OPENEJB_HOME}/lib">
<available file="${env.OPENEJB_HOME}/lib" type="dir"/>
</condition>
</target>
+ <!-- Set the path as the OPENEJB_HOME directory -->
+ <target name="#home-openejb" if="#openejb-home">
+ <path id="openejb-path">
+ <fileset dir="${#openejb-home}"/>
+ </path>
+ <property name="#openejb-dir" value="${#openejb-home}"/>
+ </target>
+
<!-- For use as a dependency of "run" targets that need OpenEJB -->
- <target name="locate-openejb" depends="#lib-openejb, #binaries-openejb, #tuscany-openejb, #env-openejb">
+ <target name="locate-openejb" depends="#lib-openejb, #binaries-openejb, #tuscany-openejb, #env-openejb, #home-openejb">
<fail unless="#openejb-dir">
Error: Couldn't find OpenEJB dependencies.
</fail>
- <files id="openejb-files">
- <include if="#openejb-dir" name="${#openejb-dir}/*"/>
- <include if="#openejb-tuscany" name="${env.TUSCANY_HOME}/lib/*"/>
- </files>
</target>
<!-- check to see if we are running on JDK 6 -->
diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb/build.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb/build.xml
index f77f400079..c8a2f6bd6e 100644
--- a/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb/build.xml
+++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb/build.xml
@@ -38,7 +38,7 @@
<pathelement location="target/${ant.project.name}.jar"/>
<path refid="compile-path"/>
<pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
- <fileset dir="${openejb-dir}"/>
+ <path refid="openejb-path"/>
</classpath>
</java>
</target>
diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/services/smsgateway-ejb/build.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/services/smsgateway-ejb/build.xml
index 94e17736af..be1d774335 100644
--- a/sca-java-1.x/branches/sca-java-travelsample-1.0/services/smsgateway-ejb/build.xml
+++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/services/smsgateway-ejb/build.xml
@@ -28,7 +28,7 @@
fork="true" failonerror="true">
<classpath>
<pathelement location="target/${ant.project.name}.jar"/>
- <files refid="openejb-files"/>
+ <path refid="openejb-path"/>
</classpath>
</java>
</target>