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)
cwd
$WL_HOME/samples/server/medrec/build/physicianEar/physSessionEjbs/ejb-jar.xml
<!-- 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}"/>
<tstamp/>
</target>
<target name="BuildEjbDescriptors" depends="prepare">
<javadoc sourcefiles="${src}/*Bean.java"
sourcepath="${src}"
destdir="${src}"
doclet="EJBGen"
docletpath="../../ejbgen.jar">
</javadoc>
</target>
<target name="compile" depends="BuildEjbDescriptors">
<javac srcdir="${src}" destdir="${build}" />
</target>
<target name="default" depends="compile">
</target>
</project>
//so to build the ejbs...
ant -f ejb-jar.xml
HTH
Martin--
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" <
[email protected]>
To: <
[email protected]>
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
jars...one 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 combinations...it 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
http://sourceforge.net/projects/jplateChief Architect JavaPIM
http://sourceforge.net/projects/javapim---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]For additional commands, e-mail:
[email protected] http://www.nabble.com/file/p11146758/workspace-2.jpeg--
View this message in context:
http://www.nabble.com/ANT-Build-script-for-J2EE-projects%28in-RAD%29-with-cyclic-dependancies%21-Urgent-please-help%21-tf3929508.html#a11146758Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]For additional commands, e-mail:
[email protected]---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]For additional commands, e-mail:
[email protected]