ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Val.Danukarja...@bmo.com
Subject Re: Automated build of J2EE app using Ant for WebSphere 4
Date Mon, 19 Aug 2002 15:27:48 GMT
Donal,
I was expecting a much more complicated "build.xml" file,
with the details on how to build the EJB jar file, 
how to build the WAR file, how to build the EAR file, etc.
Don't we need to do all of that?

Your target depends on the completion of "prepare"
<target name="wsejbc" depends="prepare">
How does your "prepare" look like?

If it is too long to be sent to the mailing list, 
appreciate if you can send it directly to my address: 
val.danukarjanto@bmo.com
Thank you very much.
Val.






"Donal Quinlan" <donal@savvion.com>
16/08/2002 04:20 PM
Please respond to "Ant Users List"

 
        To:     "Ant Users List" <ant-user@jakarta.apache.org>
        cc: 
        Subject:        Re: Automated build of J2EE app using Ant for WebSphere 4


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: <Val.Danukarjanto@bmo.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message