ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Automated build of J2EE app using Ant for WebSphere 4
Date Mon, 19 Aug 2002 15:27:48 GMT
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:
Thank you very much.

"Donal Quinlan" <>
16/08/2002 04:20 PM
Please respond to "Ant Users List"

        To:     "Ant Users List" <>
        Subject:        Re: Automated build of J2EE app using Ant for WebSphere 4


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.


<!-- <target name="wsejbc" depends="prepare"> -->
  <target name="wsejbc" depends="prepare" >
      <java classname=""
  fork="yes" jvm="${websphere_home}/AppServer/java/bin/java" >
       <sysproperty key="PATH" 
       <arg line="${ejb-lib.dir}/ejb-blwrapper-sr.jar 
${ejb-websphere-deployed.dir}/blwrapper-ws40.jar -cp
${jar.dir}/PAKServer.jar" />
          <pathelement path="${websphere_home}/AppServer/lib"/>
          <pathelement path="${websphere_home}/AppServer/lib/csicpi.jar"/>
          <pathelement path="${websphere_home}/AppServer/lib/j2ee.jar"/>
          <pathelement location
          <pathelement location="${jar.dir}/PAKServer.jar"/>
     <unjar src="${ejb-websphere-deployed.dir}/blwrapper-ws40.jar"
dest="${appServer.temp.dir}" />
     <delete dir="${ejb-websphere-deployed.dir}/blwrapper-ws40.jar"
     <copy  todir="${appServer.temp.dir}/META-INF" >
         <fileset dir="${ejb-dd-lib.dir}">
              <include name="ibm-ejb*.xmi"/>
     <jar jarfile="${ejb-websphere-deployed.dir}/blwrapper-ws40.jar"

----- Original Message -----
From: <>
To: "'Ant Users List'" <>
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:   <>
For additional commands, e-mail: <>

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