Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using JetAce in Ant build script

4 views
Skip to first unread message

kennyz

unread,
Jun 11, 2001, 12:20:03 PM6/11/01
to
I am trying to automate the "build a deployable EJB" task within our
build system, which uses Ant.

I have made this work (see extract from my buildfile below) but it is
not a very elegant solution. I was wondering if anyone out there has
come up with something better.

Thanks, Ken.

Note that the property ${jetace.jars} corresponds to the 6 jars I
found in the path that jetace.bat uses to launch jetace.

<java fork="yes" classname="com.ibm.ejb.jetjar.JetAceMain"
dir="${websphere.ccproxy.dir}" >
<jvmarg value="-DJETACE_WORK_DIR=${jetace.work.dir}" />
<!-- I have passed in the classpath using this kludge rather
than the normal classpath structure for a reason - Ant
substitutes values in classpath elements and jvmargs in
different ways. Although java will interpret them the
same way, JetAce seems to have a check which
demands that the JETACE_WORK_DIR looks exactly the same
in the -D arg and the classpath. -->
<jvmarg value="-cp" />
<jvmarg value="${jetace.work.dir}{path.separator}${jetace.jars}"
/>
<arg value="ccproxy-websphere.xml" />
</java>

0 new messages