Val,
This is how we acomplished it for Websphere 4.0.1 with ant 1.4.1.
For us, the key was to use IBM's jvm rather than Sun's.
Hope it helps.
Donal
<!-- <target name="wsejbc" depends="prepare"> -->
<target name="wsejbc" depends="prepare" >
<java classname="com.ibm.etools.ejbdeploy.EJBDeploy"
fork="yes" jvm="${websphere_home}/AppServer/java/bin/java" >
<jvmarg value="-Dwebsphere.lib.dir=${websphere_home}/AppServer/lib"/>
<sysproperty key="PATH" value="${websphere_home}/AppServer/java/bin"
/>
<arg line="${ejb-lib.dir}/ejb-blwrapper-sr.jar ${appServer.temp.dir}
${ejb-websphere-deployed.dir}/blwrapper-ws40.jar -cp
${jar.dir}/PAKServer.jar" />
<classpath>
<pathelement path="${websphere_home}/AppServer/lib"/>
<pathelement path="${websphere_home}/AppServer/lib/csicpi.jar"/>
<pathelement path="${websphere_home}/AppServer/lib/j2ee.jar"/>
<pathelement location
="${websphere_home}/AppServer/deploytool/itp/plugins/com.ibm.etools.ejbdeplo
y/runtime/batch.jar"/>
<pathelement location="${jar.dir}/PAKServer.jar"/>
<pathelement
location="${websphere_home}/AppServer/deploytool/itp/plugins/org.eclipse.cor
e.boot/boot.jar"/>
<pathelement
location="${websphere_home}/AppServer/lib/xerces.jar"/>
</classpath>
</java>
<unjar src="${ejb-websphere-deployed.dir}/blwrapper-ws40.jar"
dest="${appServer.temp.dir}" />
<delete dir="${ejb-websphere-deployed.dir}/blwrapper-ws40.jar"
verbose="true"/>
<copy todir="${appServer.temp.dir}/META-INF" >
<fileset dir="${ejb-dd-lib.dir}">
<include name="ibm-ejb*.xmi"/>
</fileset>
</copy>
<jar jarfile="${ejb-websphere-deployed.dir}/blwrapper-ws40.jar"
basedir="${appServer.temp.dir}"
/>
</target>
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 6:58 AM
Subject: Automated build of J2EE app using Ant for WebSphere 4
> I have started to use Ant, and have been able to run simple tasks.
> Now I am faced with a big task to automate code-generation -> build ->
> deploy process involving the whole thing, Java code, EJBs, Servlets into
> WebSphere 4.0.3.
> Any help, pointers, examples, especially a sample (or samples of)
> build.xml (s) to build the key parts (EJBs, etc.), will be much
> appreciated.
> Best regards,
> Val.
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>