Changeset 36028 in osm for applications/editors


Ignore:
Timestamp:
2022-10-19T21:45:06+02:00 (2 years ago)
Author:
taylor.smock
Message:

Fix #22455: NPE when opening GeoPackage

This updates the merge-services.jar file using a fork
( https://github.com/JOSM/merge-jar-services ), which
allows us to merge the service files every time we do
a build. The fork also fixes the annoying issue where
service files not ending in a newline will have a
newline appended.

Location:
applications/editors/josm/plugins/geotools
Files:
1 deleted
2 edited

Legend:

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

    r36015 r36028  
    4848    <target name="merge-geotools-services" depends="fetch_dependencies">
    4949        <taskdef resource="org/pescuma/mergeservices/antlib.xml" classpath="tools/merge-services.jar" />
    50         <delete dir="jar/META-INF/services"/>
     50        <delete dir="jar/"/>
     51        <mkdir dir="jar"/>
    5152        <merge-services dest="jar">
    5253            <fileset dir="lib">
     
    5657            </fileset>
    5758        </merge-services>
    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>
     59        <!-- We currently don't like shipping maven pom files or other "useless" files (see #21667) -->
     60        <delete includeEmptyDirs="true">
     61            <fileset dir="jar">
     62                <include name="META-INF/maven/**/*"/>
     63                <include name="META-INF/maven"/>
     64                <include name="META-INF/ECLIPSE*"/>
     65                <include name="META-INF/eclipse*"/>
     66                <include name="META-INF/INDEX.LIST"/>
     67                <include name="META-INF/MANIFEST.MF"/>
     68                <include name="META-INF/**/module-info.class"/>
     69            </fileset>
     70        </delete>
    6271
    6372        <merge-text-files mergefile="META-INF/javax.media.jai.registryFile.jai" targetdir="jar"/>
     
    7180    **********************************************************
    7281    -->
    73     <target name="post-dist">
     82    <target name="post-dist" depends="merge-geotools-services">
    7483        <move file="${plugin.jar}" todir="${plugin.build.dir}" />
    7584        <jar destfile="${plugin.jar}" filesetmanifest="merge" manifestencoding="UTF-8">
     
    8796        </jar>
    8897        <delete file="${plugin.build.dir}/${ant.project.name}.jar" />
     98        <delete dir="jar" />
    8999    </target>
    90100
Note: See TracChangeset for help on using the changeset viewer.