Skip to content

Commit

Permalink
Fix missing JBIG2ImageReaderSpi support in PDFBOX (#999)
Browse files Browse the repository at this point in the history
Closes #992
  • Loading branch information
tresf authored Aug 5, 2022
1 parent aeadb1b commit 86f87e3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,22 @@
<exclude name="**/META-INF/services/**"/>
</fileset>
</delete>

<!-- Merge META-INF/services from PDFBOX and TwelveMonkeys -->
<!-- find the TwelveMonkeys jar -->
<path id="imageio-jpeg.found">
<first>
<fileset dir="lib/imaging/">
<include name="imageio-jpeg*.jar"/>
</fileset>
</first>
</path>
<pathconvert property="imageio-jpeg.path" refid="imageio-jpeg.found"/>
<!-- merge service entries for ImageReaderSpi -->
<concat destfile="${out.dir}/libs-temp/META-INF/services/javax.imageio.spi.ImageReaderSpi" fixlastline="true">
<zipentry zipfile="${pdfbox.path}" name="META-INF/services/javax.imageio.spi.ImageReaderSpi"/>
<zipentry zipfile="${imageio-jpeg.path}" name="META-INF/services/javax.imageio.spi.ImageReaderSpi"/>
</concat>
</target>

<!-- install override.crt for "community" branded builds -->
Expand Down

0 comments on commit 86f87e3

Please sign in to comment.