ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deacon, Garrett (DST-CLT)" <>
Subject RE: ejbjar issue
Date Fri, 20 Dec 2002 17:59:10 GMT
BTW here is the latest version of the task sorry for the double email


 <target name="dist" depends="compile"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}/lib"/>

    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file
	<ejbjar descriptordir="${theBuild.ejbConfig.dir}"
	   srcdir="${theBuild.classes.dir}" >
            <pathelement path="${theBuild.classes.dir}"/>
            <pathelement location="${weblogic.lib.dir}/weblogic.jar"/>
			<pathelement location="${common.j2ee.dist}"/>
		<include name="**/*-ejb-jar.xml"/>
        <exclude name="**/*weblogic*.xml"/>
		<weblogic destdir="${dist}/lib" newCMP="true"
compiler="javac" >
location="${weblogic.lib.dir}/weblogic.jar" />
				<pathelement location="${common.j2ee.dist}"

Well the ejbjar task runs but ant seems to be skipping the weblogic task.
The output is a "generic" jar.  And when I don't put a destdir attrib in the
ejbjar tag no jar file is generated.

Anybody got a clue on this one?

Thanx in advance again ... X-(

Deacon, Garrett (DST-CLT) wrote:
> I am not sure if I am missing the Jakarta-BCEL library. 

Download from here

unzip and place the bcel.jar in your ANT_HOME/lib dir.

> I don't see any
> classes in the ant or option.jar files is it a seperate set of libraries
> if its so intgral to 1.5.1 why is it not part of the dist.  I must be
> missing something.

Not everyone who uses Ant will use <ejbjar>. Not everyone who uses <ejbjar> 
will need to have a dependency analyzer. You can avoid the warning by 
setting the dependency attribute to "none"

Ant does not bundle any of the supporting libraries for optional components.

This would make the Ant distribution massive.


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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message