source: osm/applications/editors/josm/plugins/geotools/build.xml@ 35903

Last change on this file since 35903 was 35903, checked in by taylor.smock, 3 years ago

geotools: run ant merge-geotools-services

This should fix the services issues seen in #21803.

This also updates geotools to 26.2.

  • Property svn:mime-type set to text/xml
File size: 4.1 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2 <project name="geotools" default="dist" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
3 <!-- enter the SVN commit message -->
4 <property name="commit.message" value="Commit message"/>
5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
6 <property name="plugin.main.version" value="10899"/>
7
8 <property name="plugin.author" value="Don-vip"/>
9 <property name="plugin.class" value="org.openstreetmap.josm.plugins.geotools.GeoToolsPlugin"/>
10 <property name="plugin.description" value="Provides parts of the GeoTools library for other JOSM plugins. Not meant to be installed directly by users, but rather as a dependency for other plugins."/>
11 <property name="plugin.icon" value="images/compass.png"/>
12 <property name="plugin.canloadatruntime" value="true"/>
13 <property name="plugin.requires" value="ejml;apache-commons;jaxb;jts"/>
14 <property name="plugin.stage" value="20"/>
15
16 <!-- ** include targets that all plugins have in common ** -->
17 <import file="../build-common.xml"/>
18
19 <target name="pre-compile" depends="fetch_dependencies">
20 <!-- include fetch_dependencies task -->
21 </target>
22
23 <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
24 <include name="apache-commons.jar"/>
25 <include name="ejml.jar"/>
26 <include name="jaxb.jar"/>
27 <include name="jts.jar"/>
28 </fileset>
29
30 <target name="merge-geotools-services" depends="fetch_dependencies">
31 <taskdef resource="org/pescuma/mergeservices/antlib.xml" classpath="tools/merge-services.jar" />
32 <delete dir="jar/META-INF/services"/>
33 <merge-services dest="jar">
34 <fileset dir="lib">
35 <include name="**/*.jar" />
36 <exclude name="**/*-javadoc.jar" />
37 <exclude name="**/*-source.jar" />
38 </fileset>
39 </merge-services>
40 <echo>Check the updated files in jar/META-INF/services for lines where two
41 services got merged. Example:
42 org.geotools.coverage.util.FilterFunction_isCoverageorg.geotools.filter.AreaFunction
43 </echo>
44 </target>
45
46 <!--
47 **********************************************************
48 ** post-dist - replaces files from the generated jar
49 **********************************************************
50 -->
51 <target name="post-dist">
52 <move file="${plugin.jar}" todir="${plugin.build.dir}" />
53 <jar destfile="${plugin.jar}" filesetmanifest="merge" manifestencoding="UTF-8">
54 <fileset dir="jar"/>
55 <zipfileset src="${plugin.build.dir}/${ant.project.name}.jar">
56 <exclude name="*.class"/>
57 <exclude name="*.html"/>
58 <exclude name="META-INF/**/*"/>
59 <exclude name="javax/*.txt"/>
60 </zipfileset>
61 <zipfileset src="${plugin.build.dir}/${ant.project.name}.jar">
62 <include name="META-INF/MANIFEST.MF"/>
63 <include name="META-INF/javax.media.jai.registryFile.jai"/>
64 </zipfileset>
65 </jar>
66 <delete file="${plugin.build.dir}/${ant.project.name}.jar" />
67 </target>
68
69 <!--
70 **********************************************************
71 ** additional-manifest - add additional manifest entries
72 **********************************************************
73 -->
74 <target name="additional-manifest">
75 <manifest file="MANIFEST" mode="update">
76 <!-- JAI requires a vendor name for some of its deep internals,
77 see https://stackoverflow.com/a/18495658/2257172 -->
78 <attribute name="Specification-Title" value="JOSM GeoTools plugin"/>
79 <attribute name="Specification-Version" value="${gt.version}"/>
80 <attribute name="Specification-Vendor" value="JOSM developers" />
81 <attribute name="Implementation-Title" value="org.openstreetmap.josm.plugins.geotools" />
82 <attribute name="Implementation-Version" value="${gt.version}" />
83 <attribute name="Implementation-Vendor" value="JOSM developers"/>
84 </manifest>
85 </target>
86</project>
Note: See TracBrowser for help on using the repository browser.