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.
Is is possible to get the files that caused the problem?
Fixed in cvs, Thanks for the report
I am having the same problem with Apache Ant version 1.6.5 compiled on June 2 2005.
Please submit an example to evoke this undesirable behavior. Thanks!
Sorry I thought our build machine was using Ant version 1.6.5 but it actually was using 1.6.0 my mistake.