The only quirk in getting the manifestclasspath task to work is that ejbjar task doesn't support nested manifest entries, only a manifest attribute on the task. my work around is to have a jar task immediately after the ejbjar task which updates only the manifest in the jar:
<target name="create.ejb.jar" description="creates the deployable ejb jar"> <manifestclasspath directory="${basedir}/build" property="manifest.class.path"> <classpath refid="ejb.classpath"/> </manifestclasspath> <ejbjar naming="basejarname" basejarname="ejb" dependency="full" destdir="${basedir}" flatdestdir="true" srcdir="${basedir.build.web-inf.classes}" descriptordir="${basedir.build.web-inf.src}/gen"> <support dir="${basedir.build.web-inf.classes}"> <include name="**/validation.xml" /> <include name="**/*Validator*.class" /> <include name="**/*.properties" /> </support> <weblogic destdir="${basedir.stage}" wlclasspath="blah, blah, blah" compiler="javac" ejbcclass="weblogic.ejbc"> <classpath> <pathelement location="${basedir.build.web-inf.classes}" /> <fileset dir="${basedir.build.web-inf.lib}"> <include name="**/*.jar" /> </fileset> </classpath> </weblogic> <include name="**/ejb-jar.xml" /> <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" location="${project.dir}/dtd/ejb-jar.dtd" /> <dtd publicId="-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN" location="${project.dir}/dtd/validator_1_0.dtd" /> </ejbjar> <!-- debugging, remove when complete. --> <echo>${manifest.class.path}</echo> <!-- update the manifest.mf file in the ejb.jar --> <jar destfile="${basedir.stage}/ejb.jar" update="true"> <manifest> <attribute name="Class-Path" value="${manifest.class.path}"/> </manifest> </jar> </target> > -----Original Message----- > From: Mark Lybarger > Sent: Friday, August 20, 2004 11:14 AM > To: Ant Users List > Subject: RE: generate manifest.mf file > > > http://jakarta.apache.org/hivemind/hivemind/ant/ManifestClassPath.html > > this seems really similar perhaps. who knows. > > > -----Original Message----- > > From: Dominique Devienne [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 20, 2004 11:09 AM > > To: Ant Users List > > Subject: RE: generate manifest.mf file > > > > > > > From: Mark Lybarger [mailto:[EMAIL PROTECTED] > > > > > > ok, i found it in the main hivemind distro. again, thanks > a bundle! > > > > Really? This is my own task, not published anywhere that I > > know of. The > > term buildmagic is a common one, and I doubt this task will be in > > HiveMind. > > > > Either you compile it yourself, or you dig up the pure Ant solution. > > --DD > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]