Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 28483 invoked from network); 9 Mar 2009 14:45:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2009 14:45:27 -0000 Received: (qmail 56153 invoked by uid 500); 9 Mar 2009 14:45:26 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 56116 invoked by uid 500); 9 Mar 2009 14:45:26 -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 56107 invoked by uid 99); 9 Mar 2009 14:45:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 07:45:26 -0700 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, 09 Mar 2009 14:45:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B044523888CA; Mon, 9 Mar 2009 14:45:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r751695 - in /ant/core/trunk/src: main/org/apache/tools/ant/taskdefs/Tar.java main/org/apache/tools/ant/types/ArchiveFileSet.java tests/antunit/taskdefs/tar-test.xml Date: Mon, 09 Mar 2009 14:44:58 -0000 To: notifications@ant.apache.org From: stevel@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090309144505.B044523888CA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: stevel Date: Mon Mar 9 14:44:52 2009 New Revision: 751695 URL: http://svn.apache.org/viewvc?rev=751695&view=rev Log: Bug 46812 - no longer takes a fileset ref (regression) -changed the overrode the Datattype.getCheckedRef() logic in ArchiveFileSet, delegating to the overridden getRef in all such cases; the subclasses all do their fileset imports there. Added a test. Not changed WHATSNEW unless there's evidence that this test fails in Ant1.7.1 Added: ant/core/trunk/src/tests/antunit/taskdefs/tar-test.xml - copied, changed from r750829, ant/core/trunk/src/tests/antunit/taskdefs/unzip-test.xml Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tar.java ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tar.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tar.java?rev=751695&r1=751694&r2=751695&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tar.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tar.java Mon Mar 9 14:44:52 2009 @@ -676,7 +676,7 @@ * @return true if the collection is a fileset. * @since Ant 1.7 */ - protected static final boolean isFileFileSet(ResourceCollection rc) { + protected static boolean isFileFileSet(ResourceCollection rc) { return rc instanceof FileSet && rc.isFilesystemOnly(); } @@ -687,7 +687,7 @@ * @return a list of the filenames. * @since Ant 1.7 */ - protected static final String[] getFileNames(FileSet fs) { + protected static String[] getFileNames(FileSet fs) { DirectoryScanner ds = fs.getDirectoryScanner(fs.getProject()); String[] directories = ds.getIncludedDirectories(); String[] filesPerSe = ds.getIncludedFiles(); Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java?rev=751695&r1=751694&r2=751695&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java Mon Mar 9 14:44:52 2009 @@ -197,6 +197,21 @@ } /** + * Performs the check for circular references and returns the + * referenced object. + * This is an override which does not delegate to the superclass; instead it invokes + * {@link #getRef(Project)}, because that conains the special support for fileset + * references, which can be handled by all ArchiveFileSets. + * @param p the Ant Project instance against which to resolve references. + * @return the dereferenced object. + * @throws BuildException if the reference is invalid (circular ref, wrong class, etc). + * @since Ant 1.8 + */ + protected Object getCheckedRef(Project p) { + return getRef(p); + } + + /** * Prepend this prefix to the path for each archive entry. * Prevents both prefix and fullpath from being specified * Copied: ant/core/trunk/src/tests/antunit/taskdefs/tar-test.xml (from r750829, ant/core/trunk/src/tests/antunit/taskdefs/unzip-test.xml) URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/tar-test.xml?p2=ant/core/trunk/src/tests/antunit/taskdefs/tar-test.xml&p1=ant/core/trunk/src/tests/antunit/taskdefs/unzip-test.xml&r1=750829&r2=751695&rev=751695&view=diff ============================================================================== --- ant/core/trunk/src/tests/antunit/taskdefs/unzip-test.xml (original) +++ ant/core/trunk/src/tests/antunit/taskdefs/tar-test.xml Mon Mar 9 14:44:52 2009 @@ -16,7 +16,7 @@ limitations under the License. --> - @@ -24,47 +24,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + +