ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28820] New: - Concat throws ArrayIndexOutOfBounds
Date Fri, 07 May 2004 00:08:56 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28820>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28820

Concat throws ArrayIndexOutOfBounds

           Summary: Concat throws ArrayIndexOutOfBounds
           Product: Ant
           Version: 1.6.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: avanha@netdelivery.com


Using concat with the fixlastline option fails on an input boundary condition.

java.lang.ArrayIndexOutOfBoundsException: -1
        at org.apache.tools.ant.taskdefs.Concat$MultiReader.read(Concat.java:784
)
        at org.apache.tools.ant.taskdefs.Concat.concatenate(Concat.java:514)
        at org.apache.tools.ant.taskdefs.Concat.cat(Concat.java:463)
        at org.apache.tools.ant.taskdefs.Concat.execute(Concat.java:372)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)

I haven't had a chance to see exactly what the boundary is, but adding an extra
line to one of the last input files read before the failure occurrs works around
the problem.

It would be a nice-to-have if the concat task displayed the path of processed
files at verbose or debug level.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message