ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Lyon" <>
Subject RE: Manifest for EJBJAR?
Date Tue, 11 Feb 2003 19:39:40 GMT

I came up with a similar approach, where after creating the ejbjar, I move it to a temp directory,
extract the contents, and then jar them back up again with a <jar> task that contains
an inline <manifest> param. Seems to work a treat. Thanks for your suggestion as well.


-----Original Message-----
From: Reginald Sherwood []
Sent: Monday, February 10, 2003 6:11 PM
To: Ant Users List
Subject: Re: Manifest for EJBJAR?


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"
          <filter token="CLASSPATH" value="Class-Path: log4j.jar foo.jar
bar.jar" />

        <!-- Put everything in DEPLOYABLE_MyJar into the MyJar.jar file -->
        <jar jarfile="${packaging}/MyJar.jar"

        <!-- 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}"/>

Hope that helps


----- Original Message -----
From: "Matt Lyon" <>
To: "Ant-User (E-mail)" <>
Sent: Monday, February 10, 2003 5:59 PM
Subject: Manifest for EJBJAR?


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 that gets stuffed inside my ejbjar to also contain
some informational name/attribute value pairs of my own design.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message