You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2009/04/29 15:20:53 UTC

DO NOT REPLY [Bug 47117] New: Concat resource doesn't calculate its size

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
        <length>
            <concat>
                <fileset file="*"/>
            </concat>
        </length>
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.

DO NOT REPLY [Bug 47117] Concat resource doesn't calculate its size

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47117

Antoine Levy-Lambert <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.8.0RC1                    |1.8.0

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47117] Concat resource doesn't calculate its size

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47117

Antoine Levy-Lambert <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.8Alpha (nightly)          |1.8.0RC1

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47117] Concat resource doesn't calculate its size

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47117

Antoine Levy-Lambert <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.8.0                       |1.8.1

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47117] Concat resource doesn't calculate its size

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47117

Antoine Levy-Lambert <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.8.1                       |1.8.2

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.