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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to