ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject RE: How can I make ant keep the generated java souce code during the ejbc phase
Date Tue, 28 Nov 2000 09:05:30 GMT

I am not sure which version of ant you are using. I would recommend
upgrading to version 1.2. In version 1.2 it is possible to specify a
keepgenerated attribute (although, this is currently undocumented).
There has, however, been a reasonably significant change to the ejbjar
task syntax and how it supports vendor specific deployment tools.

For weblogic, you would use ejbjar as follows

    <ejbjar srcdir="${build.classes}"
      <weblogic destdir="${deploymentjars.dir}"
                keepgenerated="true" />
      <include name="**/*-ejb-jar.xml"/>
      <exclude name="**/*weblogic*.xml"/>

Please go here for more
info. Also, it is not necessary to taskdef ejbjar as you have done
<taskdef name="ejbbuildjar"

since it is part of the standard ant distribution and included in
optional.jar (and ant.jar)

You should not need to modify ant.bat.


> -----Original Message-----
> From:	Mohammed Bustany []
> Sent:	Tuesday, 28 November 2000 15:00
> To:
> Subject:	Q: How can I make ant keep the generated java
> souce code during the ejbc phase
> How can I make ant keep the generated source code during the
> building of the
> EJB jar phase?
> I've enclosed the the ant script (ant.bat) as well as the
> build file (build.xml).
> I've tried various flags inside build.xml and ant.bat but none worked.
> I'm not subscribed to this news group and I would greatly
> appreciate it if you
> you would respond directly to me (as well as the newsgroup).
> Thank you
> Mohammed

View raw message