ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: ANT Build script for J2EE projects(in RAD) with cyclic dependancies! Urgent please help!
Date Fri, 15 Jun 2007 20:18:44 GMT
Any solution will be specific to the appserver which is hosting the ejb
So an example is BEA Weblogic 8.1
(assuming WL_HOME is set to the folder where weblogic is installed)


<!-- This is a ejb-jar.xml build file for ant  -->
<project name="DefaultProjectName" default="default" >

  <property name="build" value="build"/>
  <property name="src" value="src"/>

  <target name="prepare">
    <mkdir dir="${build}"/>

  <target name="BuildEjbDescriptors" depends="prepare">
    <javadoc sourcefiles="${src}/*"

  <target name="compile" depends="BuildEjbDescriptors">
    <javac srcdir="${src}" destdir="${build}" />

  <target name="default" depends="compile">


//so to build the ejbs...
ant -f ejb-jar.xml

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "UCU" <>
To: <>
Sent: Friday, June 15, 2007 3:59 PM
Subject: Re: ANT Build script for J2EE projects(in RAD) with cyclic 
dependancies! Urgent please help!

> Ideally I would like to have 1 build script and multiple jars for each
> project. The way I reference the other classes is through the javabuild
> path. That is I right click on the ejb project in RAD..and go to the Java
> Build path, where I see the rest of the ejb projects in my RAD
> workspace,then select the ones that I need to reference. I have uploaded
> images just as a reference to make it more clear.
> Since I can build one project (with it java path set to point to the 
> others
> it needs to reference) in RAD, and RAD figures out the cyclic dependancies
> without any problem, I am assuming there must be some way to do the same
> using ANT.
> Hope this clarifies my requirement. Please let me know if you need any
> further information. Thanks for the help!
> Scot P. Floess wrote:
>> So, you want one build script or many?  Additionally, how do each
>> project refer to the classes in the other?  Do you do something with the
>> source path?  How do you want to compile this thing?  Different
>> jar?
>> UCU wrote:
>>> Hello all! I have about 8 J2EE/ejb projects in a RAD environment for
>>> which I
>>> am trying to create a build script, and almost all of them are
>>> interdependant. For example,
>>> a.Project 1 references classes in Project 2,Project 3. Project 8.
>>> b.Project 2 references classes from Project 1 and Project Project 3 and
>>> Project 4.
>>> c.Project 4 references classes in Project 1 ,Project 2 and Project 3
>>> and various other gets very complicated.
>>> I am having a very tough time creating a build script for this.
>>> Whats the best way to resolve this issue? Would appreciate any input.
>>> Thanks in advance!!
>>> UCU
>> -- 
>> Scot P. Floess
>> 27 Lake Royale
>> Louisburg, NC  27549
>> 252-478-8087 (Home)
>> 919-392-6730 (Work)
>> Chief Architect JPlate
>> Chief Architect JavaPIM
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
> -- 
> View this message in context: 
> Sent from the Ant - Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message