You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Matt Lyon <ma...@stargus.com> on 2003/02/10 22:59:24 UTC

Manifest for EJBJAR?

Hi,

Is anyone aware of a workaround to place a custom Manifest in an ejbjar generated by Ant? The <jar/> and <war/> tasks both support the nested <manifest/> parameter, but the <ejbjar/> task does not. Basically, I want the standard Manifest.mf that gets stuffed inside my ejbjar to also contain some informational name/attribute value pairs of my own design.

Matt

Re: Manifest for EJBJAR?

Posted by Reginald Sherwood <rs...@imagictv.com>.
Matt,

I do something similiar to the following.  Basically I have a template
Manifest.MF that I copy into a given dir and do a sub on certain key fields.
Here is a cut down version. Ex:

       <!-- Update MANIFEST.MF -->
        <copy file="MANIFEST.MF" todir="${packaging}/foo/META-INF"
overwrite="yes">
        <filterset>
          <filter token="CLASSPATH" value="Class-Path: log4j.jar foo.jar
bar.jar" />
         </filterset>
       </copy>

        <!-- Put everything in DEPLOYABLE_MyJar into the MyJar.jar file -->
        <jar jarfile="${packaging}/MyJar.jar"
manifest="${packaging}/foo/META-INF/MANIFEST.MF"
basedir="${packaging}/MyJar"/>

        <!-- Compile Beans with weblogic ejbc and create the
DEPLOYABLE_MyJar.jar in ${deploy}/lib -->
        <java classname="weblogic.ejbc" fork="yes" >
        <arg value="-compiler"/>
          <arg value="javac"/>
          <arg value="${packaging}/MyJar.jar"/>
          <arg value="${packaging}/DEPLOYABLE_MyJar.jar"/>
              <classpath path="${classpath}"/>
        </java>

Hope that helps

Reg

----- Original Message -----
From: "Matt Lyon" <ma...@stargus.com>
To: "Ant-User (E-mail)" <us...@ant.apache.org>
Sent: Monday, February 10, 2003 5:59 PM
Subject: Manifest for EJBJAR?


Hi,

Is anyone aware of a workaround to place a custom Manifest in an ejbjar
generated by Ant? The <jar/> and <war/> tasks both support the nested
<manifest/> parameter, but the <ejbjar/> task does not. Basically, I want
the standard Manifest.mf that gets stuffed inside my ejbjar to also contain
some informational name/attribute value pairs of my own design.

Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org