Brian-

There are several threads very recently about this (one of which I started
several months ago):

http://marc.theaimsgroup.com/?l=ant-user&m=101114295329626&w=2

What I ended up doing is creating a template manifest file and use it in all
of my EJBs and enterprise archives.

Here's a snippet of the target I use to create the EJBs which uses the
template manifest:

    <ejbjar srcdir="${opel.build}"
            descriptordir="${opel.build}"
            classpath="${opel.classpath}"
            naming="ejb-name"
            manifest="${opel.home}/MANIFEST.MF"
            flatdestdir="true">
      <weblogic destdir="${opel.release}"
                keepgeneric="false"
                rebuild="false"
                wlclasspath="${wls.classpath};${opel.build}"
                noEJBC="${opel.noejbc}"
                newCMP="false">
      </weblogic>
      <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
2.0//
EN"
           location="${opel.home}/ejb-jar_2_0.dtd"/>
      <support dir="${opel.build}"
               includes="**/Local*.class"/>
      <include name="**/ejb-jar.xml"/>
      <exclude name="**/*weblogic*.xml"/>
    </ejbjar>

The template manifest has the "Class-Path" attribute needed for the EJBs and
enterprise archives to function properly once deployed.

Hope this helps!


Cheers!
Eddie

-----Original Message-----
From: Dowd, Brian [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 5:01 AM
To: '[EMAIL PROTECTED]'
Cc: Dowd, Brian
Subject: ejbjar task and manifest.mf


HI,
   I am currently attempting to construct an EAR, and as part of
this I need to make all of my contained WARs and EJB jars
MANIFEST.MF files contain a 

Class-Path: a.jar b.jar c.jar

line, this is easy to achieve in the <ear> task and the <war> task
however I could not find any way to do this in the <ejbjar> task.

Does anyone have any ideas ?  Cheers.

I'm using ant version 1.4

Thanks,
Brian.




Brian Dowd (mailto:[EMAIL PROTECTED])
Global Volatility Convertible Bonds Technology
phone: 020 7260 1375





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to