You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Iyad Elayyan <Iy...@oracle.com> on 2003/01/02 09:52:20 UTC

RE: ant task calling subprojects

and again

-----Original Message-----
From: Iyad Elayyan [mailto:Iyad.Elayyan@oracle.com]
Sent: Wednesday, December 18, 2002 11:08 PM
To: holtdl@yahoo.com
Cc: ant-dev@jakarta.apache.org
Subject: RE: ant task calling subprojects


FYI...
anyone!

-----Original Message-----
From: Iyad Elayyan [mailto:Iyad.Elayyan@oracle.com]
Sent: Tuesday, December 17, 2002 9:17 PM
To: holtdl@yahoo.com
Cc: ant-dev@apache.org
Subject: ant task calling subprojects


Hi Diane,
I modified the <ant> task to add a srcDir attribute which is a path of
subprojects to go through and build. I maintained compatibility with the dir
attribute. below is an example and attached is my modification, would you be
kind to include this in the next release.

PS. remember we talked about this and I just got around to actually doing
it. also I lost your email id and I wasn't getting any response from
ant-dev@jakarta.apache.org.

| Iyad Elayyan, x72374
| j2eedev_us
| Oracle Corporation
common.xml
~~~~~~~~~~
    <path id="all.src.path">
        <pathelement location="subproject1"/>
        <pathelement location="subproject2"/>
        <pathelement location="subproject3"/>
    </path>
    <property name="all.src.path" refid="all.src.path" />

build.xml
~~~~~~~~~
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE project [<!ENTITY common SYSTEM "file:./common.xml">]>

<project name="src" default="all" basedir=".">

    &common;

    <!--
=================================================================== -->
    <!-- call clean on
            -->
    <!--
=================================================================== -->
    <target name="clean">
      <ant srcDir="${all.src.path}" target="clean"/>
    </target>

    <!--
=================================================================== -->
    <!-- call compile on
            -->
    <!--
=================================================================== -->
    <target name="compile">
      <ant srcDir="${all.src.path}" target="compile"/>
    </target>

    <!--
=================================================================== -->
    <!-- call jar on
            -->
    <!--
=================================================================== -->
    <target name="jar">
      <ant srcDir="${all.src.path}" target="jar"/>
    </target>

    <!--
=================================================================== -->
    <!-- call all on
            -->
    <!--
=================================================================== -->
    <target name="all">
      <ant srcDir="${all.src.path}" target="all"/>
    </target>

</project>

RE: ant task calling subprojects

Posted by Iyad Elayyan <Iy...@oracle.com>.
FYI...
anyone!

-----Original Message-----
From: Iyad Elayyan [mailto:Iyad.Elayyan@oracle.com]
Sent: Tuesday, December 17, 2002 9:17 PM
To: holtdl@yahoo.com
Cc: ant-dev@apache.org
Subject: ant task calling subprojects


Hi Diane,
I modified the <ant> task to add a srcDir attribute which is a path of
subprojects to go through and build. I maintained compatibility with the dir
attribute. below is an example and attached is my modification, would you be
kind to include this in the next release.

PS. remember we talked about this and I just got around to actually doing
it. also I lost your email id and I wasn't getting any response from
ant-dev@jakarta.apache.org.

| Iyad Elayyan, x72374
| j2eedev_us
| Oracle Corporation
common.xml
~~~~~~~~~~
    <path id="all.src.path">
        <pathelement location="subproject1"/>
        <pathelement location="subproject2"/>
        <pathelement location="subproject3"/>
    </path>
    <property name="all.src.path" refid="all.src.path" />

build.xml
~~~~~~~~~
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE project [<!ENTITY common SYSTEM "file:./common.xml">]>

<project name="src" default="all" basedir=".">

    &common;

    <!--
=================================================================== -->
    <!-- call clean on
            -->
    <!--
=================================================================== -->
    <target name="clean">
      <ant srcDir="${all.src.path}" target="clean"/>
    </target>

    <!--
=================================================================== -->
    <!-- call compile on
            -->
    <!--
=================================================================== -->
    <target name="compile">
      <ant srcDir="${all.src.path}" target="compile"/>
    </target>

    <!--
=================================================================== -->
    <!-- call jar on
            -->
    <!--
=================================================================== -->
    <target name="jar">
      <ant srcDir="${all.src.path}" target="jar"/>
    </target>

    <!--
=================================================================== -->
    <!-- call all on
            -->
    <!--
=================================================================== -->
    <target name="all">
      <ant srcDir="${all.src.path}" target="all"/>
    </target>

</project>