ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <>
Subject <ejbjar> task, and properties files trouble
Date Sat, 26 Oct 2002 00:34:59 GMT
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="${}"/>
    <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=""/>
        <attribute name="Implementation-Version" value="${planlock.version} ${TODAY}"/>

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

    <ejbjar dependency="full"
        <!-- doesn't work with Ant 1.5
    <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}/" />

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

I'm simplying <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.

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

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

View raw message