ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15811] New: - modify ant task to support subprojects
Date Mon, 06 Jan 2003 05:25:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15811>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15811

modify ant task to support subprojects

           Summary: modify ant task to support subprojects
           Product: Ant
           Version: 1.5.1
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: Iyad.Elayyan@oracle.com
                CC: ant-dev@jakarta.apache.org


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 (or email me), 
would you be kind to include this in the next release.

| 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 subprojects                    -->
    <!-- ============================================ -->
    <target name="clean">
      <ant srcDir="${all.src.path}" target="clean"/>
    </target>

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

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

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

</project>

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message