Grokbase Groups Ant user June 2007
FAQ
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

--
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#a11144903
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Search Discussions

  • Scot P. Floess at Jun 15, 2007 at 6:30 pm
    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/jplate
    Chief Architect JavaPIM http://sourceforge.net/projects/javapim


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • UCU at Jun 15, 2007 at 7:59 pm
    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/jplate
    Chief 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#a11146758
    Sent from the Ant - Users mailing list archive at Nabble.com.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Lewis, Cory (Genworth) at Jun 15, 2007 at 8:06 pm
    RAD comes with its own set of ant tasks, which should handle most of
    this for you.

    buildWorkspace should do it all in one shot, or you can go project by
    project with projectBuild.

    http://publib.boulder.ibm.com/infocenter/radhelp/v6r0m1/index.jsp?topic=
    /com.ibm.etools.j2eeapp.doc/topics/tantworkspacebuild.html
    -----Original Message-----
    From: UCU
    Sent: Friday, June 15, 2007 4:00 PM
    To: [email protected]
    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/jplate
    Chief 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-tf392
    9508.html#a11146758
    Sent 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]
  • UCU at Jun 19, 2007 at 6:44 pm
    Was wondering if anyone knows where to find a sample complete build file
    which uses ProjectBuild. ProjectSetBuild etc.

    thanks!






    Lewis, Cory (Genworth) wrote:
    RAD comes with its own set of ant tasks, which should handle most of
    this for you.

    buildWorkspace should do it all in one shot, or you can go project by
    project with projectBuild.

    http://publib.boulder.ibm.com/infocenter/radhelp/v6r0m1/index.jsp?topic=
    /com.ibm.etools.j2eeapp.doc/topics/tantworkspacebuild.html
    -----Original Message-----
    From: UCU
    Sent: Friday, June 15, 2007 4:00 PM
    To: [email protected]
    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/jplate
    Chief 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-tf392
    9508.html#a11146758
    Sent 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]

    --
    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#a11200513
    Sent from the Ant - Users mailing list archive at Nabble.com.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Martin Gainty at Jun 15, 2007 at 8:19 pm
    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/jplate
    Chief 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#a11146758
    Sent 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]

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriesant
postedJun 15, '07 at 6:09p
activeJun 19, '07 at 6:44p
posts6
users4
websiteant.apache.org

People

Translate

site design / logo © 2023 Grokbase