Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 40298 invoked from network); 25 Oct 2010 09:35:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Oct 2010 09:35:06 -0000 Received: (qmail 35573 invoked by uid 500); 25 Oct 2010 09:35:03 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 34164 invoked by uid 500); 25 Oct 2010 09:35:01 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 34155 invoked by uid 99); 25 Oct 2010 09:35:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 09:35:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 09:34:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A5AA62388A5E; Mon, 25 Oct 2010 09:34:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1027000 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/ant/taskdefs/Delete.java src/main/org/apache/tools/ant/types/AbstractFileSet.java src/tests/antunit/taskdefs/delete-test.xml Date: Mon, 25 Oct 2010 09:34:00 -0000 To: notifications@ant.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101025093400.A5AA62388A5E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bodewig Date: Mon Oct 25 09:34:00 2010 New Revision: 1027000 URL: http://svn.apache.org/viewvc?rev=1027000&view=rev Log: don't ignore fileset's errorOnMissingDir in Modified: ant/core/trunk/WHATSNEW ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Delete.java ant/core/trunk/src/main/org/apache/tools/ant/types/AbstractFileSet.java ant/core/trunk/src/tests/antunit/taskdefs/delete-test.xml Modified: ant/core/trunk/WHATSNEW URL: http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=1027000&r1=1026999&r2=1027000&view=diff ============================================================================== --- ant/core/trunk/WHATSNEW (original) +++ ant/core/trunk/WHATSNEW Mon Oct 25 09:34:00 2010 @@ -164,7 +164,10 @@ Fixed bugs: * would fail if used via its Java API and the File passed into the setJar method was not "normalized" (i.e. contained ".." segments). - Bugzilla Report 50081 + Bugzilla Report 50081. + + * ignored 's errorOnMissingDir attribute + Bugzilla Report 50124. Other changes: -------------- Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Delete.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Delete.java?rev=1027000&r1=1026999&r2=1027000&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Delete.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Delete.java Mon Oct 25 09:34:00 2010 @@ -603,6 +603,10 @@ public class Delete extends MatchingTask fs.setProject(getProject()); } final File fsDir = fs.getDir(); + if (!fs.getErrorOnMissingDir() && + (fsDir == null || !fsDir.exists())) { + continue; + } if (fsDir == null) { throw new BuildException( "File or Resource without directory or file specified"); Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/AbstractFileSet.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/AbstractFileSet.java?rev=1027000&r1=1026999&r2=1027000&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/types/AbstractFileSet.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/types/AbstractFileSet.java Mon Oct 25 09:34:00 2010 @@ -444,6 +444,15 @@ public abstract class AbstractFileSet ex } /** + * Gets whether an error is/shold be thrown if the base directory + * does not exist. + * @since Ant 1.8.2 + */ + public boolean getErrorOnMissingDir() { + return errorOnMissingDir; + } + + /** * Returns the directory scanner needed to access the files to process. * @return a DirectoryScanner instance. */ Modified: ant/core/trunk/src/tests/antunit/taskdefs/delete-test.xml URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/delete-test.xml?rev=1027000&r1=1026999&r2=1027000&view=diff ============================================================================== --- ant/core/trunk/src/tests/antunit/taskdefs/delete-test.xml (original) +++ ant/core/trunk/src/tests/antunit/taskdefs/delete-test.xml Mon Oct 25 09:34:00 2010 @@ -131,4 +131,11 @@ + + + + + +