ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <fer...@frii.com>
Subject trouble getting <ejbjar> task to use manifest.mf and include properties files
Date Mon, 28 Oct 2002 20:26:30 GMT
My apologies for the second post, but I've received no answers yet. 

I'm using Ant 1.5 and the <ejbjar> task. I'm trying to make the jar file
use the manifest that I've created dynamically and I'm also trying to
include a properties file. Neither of these requests are being included
in the final jar file.

Please see the target I'm using: 

    <manifest file="${gen-src.dir}/planlock/META-INF/MANIFEST.MF">
    <attribute name="Built-By" value="${user.name}"/>
    <section name="com/digitalglobe/mp">
        <attribute name="Specification-Title" value="LTP"/>
        <attribute name="Specification-Version" value="${ltp.version}"/>
        <attribute name="Specification-Vendor" value="DigitalGlobe Incorporated"/>
        <attribute name="Implementation-Title" value="com.digitalglobe.mp.db.planlock"/>
        <attribute name="Implementation-Version" value="${planlock.version} ${TODAY}"/>

        <attribute name="Implementation-Vendor" value="DigitalGlobe Incorporated"/>
    </section>
    </manifest>

    <ejbjar dependency="full"
        destdir="${dist.dir}" 
        genericjarsuffix=""
        <!-- doesn't work with Ant 1.5
        manifest="${gen-src.dir}/planlock/META-INF/MANIFEST.MF" 
        -->
        naming="ejb-name"
        srcdir="${build.dir}">
    <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
         location="${etc.dir}/ejb-jar_2_0.dtd" />
    <dtd publicId="-//JBoss//DTD JBOSS//EN"
         location="${etc.dir}/jboss.dtd" />
    <jboss destdir="${dist.dir}" />
    <classpath refid="project.class.path" />
    <support dir="${basedir}">
        <include name="${gen-src.dir}/planlock/META-INF/ejb-jar.xml" />
        <include name="${gen-src.dir}/planlock/META-INF/jboss.xml" />

        <include name="${gen-src.dir}/planlock/MANIFEST.MF" />
        <include name="${etc.dir}/dao.properties" />

        <include name="${build.dir}/com.digitalglobe.util.db.dbif.DAO.class" />
        <include name="${build.dir}/com.digitalglobe.util.db.dbif.DAOFactory.class" />
        <include name="${build.dir}/com.digitalglobe.mp.db.planlock.PlanLockDAOImpl.class"
/>
    </support>
    </ejbjar>

I'm simply <include>ing the manifest and the properties file, but
they're not being picked up. I've tried many different variations on this,
none of which have worked yet. BTW, what happened to the 'manifest'
attribute to the <ejbjar> task? I believe it was there in Ant 1.4,
wasn't it?

I started using the <ejbjar> task because I wanted to take advantage of
the features of BCEL for the beans I'm currently developing. However,
I'm to the point where I'm almost ready to go back to using the <jar>
task and forcing things into the jar.

Thanks, 
Bruce
--
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'



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


Mime
View raw message