ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
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
Mohammed,

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}"
            descriptordir="${descriptor.dir}">
      <weblogic destdir="${deploymentjars.dir}"
                classpath="${descriptorbuild.classpath}"
                keepgenerated="true" />
      <include name="**/*-ejb-jar.xml"/>
      <exclude name="**/*weblogic*.xml"/>
    </ejbjar>

Please go here
http://jakarta.apache.org/ant/jakarta-ant/docs/ejb.html#ejbjar for more
info. Also, it is not necessary to taskdef ejbjar as you have done
<taskdef name="ejbbuildjar"
         classname="org.apache.tools.ant.taskdefs.optional.ejb.EjbJar"/>

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.

Conor


> -----Original Message-----
> From:	Mohammed Bustany [mailto:mbustany@lavastorm.com]
> Sent:	Tuesday, 28 November 2000 15:00
> To:	ant-user@jakarta.apache.org
> 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
>


Mime
View raw message