Ignore:
Timestamp:
2022-08-23T20:06:58+02:00 (3 years ago)
Author:
taylor.smock
Message:

Fix #22303: Open drone image as background image

  • Add additional files to be merged in META-INF for JAI (this fixes an issue where ShadedRelief could not be found). This is done by modifying build.xml to concat multiple files with the same path and name in different jar files together
  • Add CompressorSpi and DecompressorSpi so that compressed image formats can be read. This requires us to call CompressionRegistry#registerApplicationClasspathSpis with the geotools plugin classloader.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/geotools/build.xml

    r35959 r36015  
    11<?xml version="1.0" encoding="utf-8"?>
    2   <project name="geotools" default="dist" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
     2  <project name="geotools" default="dist" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:rsel="antlib:org.apache.tools.ant.types.resources.selectors">
    33    <!-- enter the SVN commit message -->
    44    <property name="commit.message" value="Commit message"/>
     
    2929        <!--<include name="jackson.jar"/>-->
    3030    </fileset>
     31    <macrodef name="merge-text-files">
     32      <attribute name="mergefile"/>
     33      <attribute name="targetdir"/>
     34      <sequential>
     35        <concat destfile="@{targetdir}/@{mergefile}">
     36          <restrict>
     37            <rsel:name name="@{mergefile}"/>
     38            <archives>
     39                <zips>
     40                    <fileset dir="${plugin.lib.dir}" includes="*.jar" excludes="*-sources.jar, *-javadoc.jar" erroronmissingdir="no"/>
     41                </zips>
     42            </archives>
     43          </restrict>
     44        </concat>
     45      </sequential>
     46    </macrodef>
    3147
    3248    <target name="merge-geotools-services" depends="fetch_dependencies">
     
    4056            </fileset>
    4157        </merge-services>
    42     <echo>Check the updated files in jar/META-INF/services for lines where two
    43     services got merged. Example:
    44     org.geotools.coverage.util.FilterFunction_isCoverageorg.geotools.filter.AreaFunction
    45     </echo>
     58        <echo>Check the updated files in jar/META-INF/services for lines where two
     59        services got merged. Example:
     60        org.geotools.coverage.util.FilterFunction_isCoverageorg.geotools.filter.AreaFunction
     61        </echo>
     62
     63        <merge-text-files mergefile="META-INF/javax.media.jai.registryFile.jai" targetdir="jar"/>
     64        <merge-text-files mergefile="META-INF/registryFile.jai"                 targetdir="jar"/>
     65        <merge-text-files mergefile="META-INF/registryFile.jaiext"              targetdir="jar"/>
    4666    </target>
    4767
Note: See TracChangeset for help on using the changeset viewer.