From 944ad04200573757638bb073e45251ddd425f6a7 Mon Sep 17 00:00:00 2001 From: Antoine Levy-Lambert Date: Thu, 22 May 2003 07:27:51 +0000 Subject: [PATCH] Removed ignoremissingbuildfile, following a remark of DD (Dominique Devienne) in bugzilla. fileset(s) should be used in the case where some directories do not contain a build file. PR: 18715 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274606 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/subant.html | 28 +++++++++---------- .../org/apache/tools/ant/taskdefs/SubAnt.xml | 2 +- .../org/apache/tools/ant/taskdefs/SubAnt.java | 22 +-------------- 3 files changed, 15 insertions(+), 37 deletions(-) diff --git a/docs/manual/CoreTasks/subant.html b/docs/manual/CoreTasks/subant.html index b0829d495..e1330705f 100644 --- a/docs/manual/CoreTasks/subant.html +++ b/docs/manual/CoreTasks/subant.html @@ -123,7 +123,7 @@ String - + Optional @@ -176,18 +176,6 @@ - - - ignoremissingbuildfile - - - Sets whether to continue or fail with a build exception if the build file is missing, false by default. - - - boolean - - - inheritall @@ -299,7 +287,7 @@ Adds a file set to the implicit build path.

Note that the directories will be added to the build path in no particular order, so if order is significant, one should use a file list instead! - Note that the directories will be added to the build path in no particular order, so if order is significant, one should use a file list instead!]]> + Note that the directories will be added to the build path in no particular order, so if order is significant, one should use a file list instead!]]> @@ -402,7 +390,7 @@ - Example + Examples

@@ -437,6 +425,16 @@ where a file called build.xml can be found. All properties whose name starts with "foo" are passed, their names are changed to start with "bar" instead

+
+          <subant target="compile" genericantfile="/opt/project/build1.xml">
+             <dirset dir="." includes="projects*"/>
+          </subant>
+        
+

+ assuming the subdirs of the project dir are called projects1, projects2, projects3 + this snippet will execute the compile target of /opt/project/build1.xml, + setting the basedir to projects1, projects2, projects3 +

diff --git a/proposal/xdocs/src/org/apache/tools/ant/taskdefs/SubAnt.xml b/proposal/xdocs/src/org/apache/tools/ant/taskdefs/SubAnt.xml index f1326c78c..61a14a5c5 100644 --- a/proposal/xdocs/src/org/apache/tools/ant/taskdefs/SubAnt.xml +++ b/proposal/xdocs/src/org/apache/tools/ant/taskdefs/SubAnt.xml @@ -24,7 +24,7 @@ -
+
         <project name="subant" default="subant1">
         <property name="build.dir" value="subant.build"/>
diff --git a/src/main/org/apache/tools/ant/taskdefs/SubAnt.java b/src/main/org/apache/tools/ant/taskdefs/SubAnt.java
index d283f1709..d6fede705 100644
--- a/src/main/org/apache/tools/ant/taskdefs/SubAnt.java
+++ b/src/main/org/apache/tools/ant/taskdefs/SubAnt.java
@@ -112,7 +112,6 @@ public class SubAnt
     private boolean inheritAll = false;
     private boolean inheritRefs = false;
     private boolean failOnError = true;
-    private boolean ignoreMissingBuildFile = false;
     private String output  = null;
 
     private Vector properties = new Vector();
@@ -140,7 +139,6 @@ public class SubAnt
         }
 */
         for (int i=0; i