Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 74127 invoked from network); 29 Apr 2009 13:21:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Apr 2009 13:21:16 -0000 Received: (qmail 41341 invoked by uid 500); 29 Apr 2009 13:21:16 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 41302 invoked by uid 500); 29 Apr 2009 13:21:16 -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 41293 invoked by uid 99); 29 Apr 2009 13:21:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2009 13:21:16 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2009 13:21:14 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 43552234C004; Wed, 29 Apr 2009 06:20:53 -0700 (PDT) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 47117] New: Concat resource doesn't calculate its size X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: st_lazarov@yahoo.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: 1.8.0 X-Bugzilla-Changed-Fields: Message-ID: Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 29 Apr 2009 06:20:53 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=47117 Summary: Concat resource doesn't calculate its size Product: Ant Version: 1.8Alpha (nightly) Platform: PC OS/Version: Windows XP Status: NEW Severity: enhancement Priority: P2 Component: Core tasks AssignedTo: notifications@ant.apache.org ReportedBy: st_lazarov@yahoo.com Currently the following code will return Resource.UNKNOWN_SIZE, i.e. print "[length] Size unknown for concat ..." Instead, it should return the size in bytes of the output stream resulted in concatenating the resources specified in "concat" The current behavior is due to ConcatResource not overriding getSize() (most of the classes extending Resource do that) The difficulty with ConcatResource compared to other Resources is that ConcatResource should effectively be executed before we are able to get its length. However, this shouldn't be an issue because we meant exactly that with the sample code provided above. That is, for some tasks that can be used as resources seems to be normal the tasks to be executed before they can be used as resources. If we don't provide this enhancement, the users will be forced to workaround in a similar way: they will execute the task (in the above case - output the concatenation in a file) and then use the output of the task as a resource. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.