summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/branches/sca-java-travelsample-1.0
diff options
context:
space:
mode:
Diffstat (limited to '')
-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>