ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Porter" <brett.por...@gmail.com>
Subject Re: OT - Maven woes
Date Fri, 15 Sep 2006 06:06:48 GMT
The example basically does "copy everything from src/main/resources
with filters". I assume you have images in there too.

You should setup a separate resource directory for filtering - maybe
replace the one in the example with src/main/filtered-resources. Or,
you can add an includes or excludes to the one in the example.

It's 4pm here (Sydney, Australia).

- Brett

On 15/09/06, Kevin Jackson <foamdino@gmail.com> wrote:
> > Here's a working example: http://jira.codehaus.org/browse/MNG-2561
>
> Hi, thanks for the cookbook example.
>
> My problem now is that if I use filtering, I get exceptions thrown
> during testing, these exceptions aren't thrown if I remove the
> filter/resources sections from my pom.  Is this a known issue?  Is
> there anything I have to do to get my tests to pass without throwing
> exceptions?
>
> some output:
>
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> java.util.zip.ZipException: oversubscribed literal/length tree
>         at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140)
>         at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
>         at java.io.FilterInputStream.read(FilterInputStream.java:66)
>         at com.sun.imageio.plugins.png.PNGImageReader.decodePass(PNGImageReader.
> java:1165)
>         at com.sun.imageio.plugins.png.PNGImageReader.decodeImage(PNGImageReader
> .java:1276)
>         at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.j
> ava:1362)
>         at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1
> 579)
>         at javax.imageio.ImageIO.read(ImageIO.java:1400)
>         at javax.imageio.ImageIO.read(ImageIO.java:1322)
>         at com.seanergie.persistence.ImageFile.initSizes(ImageFile.java:101)
>         at com.seanergie.persistence.ImageFile.<init>(ImageFile.java:63)
>         at com.seanergie.persistence.ImageFileTest.constructTestImageFile(ImageF
> ileTest.java:18)
>
> As I said, if I remove the resources/filters from the pom, the tests
> pass, so there's something fishy going on when maven uses filters.
>
> Thanks for your help so far (btw what time is it for you?)
>
> Kev
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>


-- 
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/

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


Mime
View raw message