ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: Error buffer size
Date Wed, 24 Sep 2003 15:50:02 GMT
This is a bug in ant.

It looks like if the properties file
is empty, the loadproperties task
will still try to read it and use
readFully with a buffer size of 0.

This will be fixed in the next nightly
build.

Peter

On Wednesday 24 September 2003 15:23, Blanchet Samuel wrote:
> Hi all,
>
> Have you ever seen this error ?
>
> What can I do ?
>
> BUILD FAILED
> java.lang.IllegalArgumentException: Buffer size must be greater than 0
>         at
> org.apache.tools.ant.util.FileUtils.readFully(FileUtils.java:1096) at
> org.apache.tools.ant.filters.util.ChainReaderHelper.readFully
> ChainReaderHelper.java:267) at
> org.apache.tools.ant.taskdefs.LoadProperties.execute(LoadProperties.java:16
>4) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:272)
> at org.apache.tools.ant.Task.perform(Task.java:401)
>         at org.apache.tools.ant.Target.execute(Target.java:347)
>         at org.apache.tools.ant.Target.performTasks(Target.java:374)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1228)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1085)
>         at org.apache.tools.ant.Main.runBuild(Main.java:661)
>         at org.apache.tools.ant.Main.startAnt(Main.java:220)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:162)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:85)
>
> Thanks
>
>  Sam


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


Mime
View raw message