ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Cody Johnston <paul.c...@lucidainc.com>
Subject Re: Manifest file in Weblogic ejbjar task
Date Wed, 14 Nov 2001 02:57:51 GMT
On Tuesday 13 November 2001 12:51 am, you wrote:
> Hi,
> I understand that Weblogic recently has a new feature
> for defining some classpath values in the Manifest
> file of the ejb Jar.
> Does anybody know whether Ant 1.4.1 or 5 alpha
> supports that? Because I tried to put the manifest
> attribute in the ejbjar task (which I think it is an
> undocumented feature because I had to go to the source
> code to find it). Ant doesn't complain about that, but
> it doesn't seem to do what I intended it to do as
> well.
>

Herry,

It seems to work for me, I'm using:

$ ant -version
Ant version 1.4 compiled on September 3 2001

Here is my task (not fully optimized):

  <!-- build ejb jars -->
  <target name="ejbjar" depends="compile,jar" >
    <ejbjar srcdir="${build.classes}" 
            descriptordir="${home.src}/conf" 
            manifest="${home.src}/conf/ejb-manifest.mf">
      <classpath refid="build.classpath"/>
      <weblogic destdir="${build.deploy}" newCMP="true" compiler="default" 
keepgeneric="false">
        <wlclasspath>
	  <fileset dir="${home.lib}">
	    <include name="**/*.jar"/>
	    <include name="**/*.zip"/>
	  </fileset>
	  <fileset dir="${build.lib}">
	    <include name="**/*.jar"/>
	  </fileset>
	  <pathelement location="${weblogic.home}/lib/weblogic.jar"/> 
	</wlclasspath>
      </weblogic>
      <include name="**/*-ejb-jar.xml"/>
      <exclude name="**/*weblogic*.xml"/>
      <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 
1.1//EN"
           location="${home.src}/dtd/ejb-jar-1.1.dtd"/>
      <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"
           location="${home.src}/dtd/weblogic-ejb-jar-6.0.0.dtd"/>
    </ejbjar>
  </target>

HTH,
Paul

> Any idea?
>
> Thanks in advance
>
> Herry
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Events Guide - Entertainment, community events and more!
> http://events.yahoo.com.sg/

--
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