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

Last change on this file since 34399 was 34097, checked in by stoecker, 7 years ago

http to https

  • Property svn:mime-type set to text/xml
File size: 3.6 KB
RevLine 
[28592]1<?xml version="1.0" encoding="utf-8"?>
2<project name="geotools" default="dist" basedir=".">
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 -->
[33337]6 <property name="plugin.main.version" value="10899"/>
[30734]7
[28995]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"/>
[30999]12 <property name="plugin.canloadatruntime" value="true"/>
[31755]13 <property name="plugin.requires" value="jts;ejml"/>
[28995]14 <property name="plugin.stage" value="20"/>
15
16 <!-- ** include targets that all plugins have in common ** -->
17 <import file="../build-common.xml"/>
[31755]18
19 <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
20 <include name="jts.jar"/>
21 <include name="ejml.jar"/>
22 </fileset>
23
[32813]24 <target name="merge-geotools-services">
25 <taskdef resource="org/pescuma/mergeservices/antlib.xml" classpath="tools/merge-services.jar" />
26 <delete dir="jar/META-INF/services"/>
27 <merge-services dest="jar">
28 <fileset dir="lib">
29 <include name="**/*.jar" />
30 <exclude name="**/*-javadoc.jar" />
31 <exclude name="**/*-source.jar" />
32 </fileset>
33 </merge-services>
34 </target>
35
[28592]36 <!--
37 **********************************************************
[29013]38 ** post-dist - replaces files from the generated jar
[28592]39 **********************************************************
40 -->
[29007]41 <target name="post-dist">
[30734]42 <move file="${plugin.jar}" todir="${plugin.build.dir}" />
[31768]43 <jar destfile="${plugin.jar}" filesetmanifest="merge" manifestencoding="UTF-8">
[29013]44 <fileset dir="jar"/>
[30734]45 <zipfileset src="${plugin.build.dir}/${ant.project.name}.jar">
[29007]46 <exclude name="*.class"/>
[30734]47 <exclude name="*.html"/>
[29013]48 <exclude name="META-INF/**/*"/>
[29007]49 <exclude name="javax/*.txt"/>
[30734]50 </zipfileset>
51 <zipfileset src="${plugin.build.dir}/${ant.project.name}.jar">
52 <include name="META-INF/MANIFEST.MF"/>
[31599]53 <include name="META-INF/javax.media.jai.registryFile.jai"/>
[30734]54 </zipfileset>
55 </jar>
56 <delete file="${plugin.build.dir}/${ant.project.name}.jar" />
[29007]57 </target>
[31744]58
59 <!--
60 **********************************************************
61 ** additional-manifest - add additional manifest entries
62 **********************************************************
63 -->
64 <target name="additional-manifest">
65 <manifest file="MANIFEST" mode="update">
66 <!-- JAI requires a vendor name for some of its deep internals,
[34097]67 see https://stackoverflow.com/a/18495658/2257172 -->
[31744]68 <attribute name="Specification-Title" value="JOSM GeoTools plugin"/>
[33930]69 <attribute name="Specification-Version" value="19.0"/>
[31744]70 <attribute name="Specification-Vendor" value="JOSM developers" />
71 <attribute name="Implementation-Title" value="org.openstreetmap.josm.plugins.geotools" />
[33930]72 <attribute name="Implementation-Version" value="19.0" />
[31744]73 <attribute name="Implementation-Vendor" value="JOSM developers"/>
74 </manifest>
75 </target>
[28592]76</project>
Note: See TracBrowser for help on using the repository browser.