1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <!--
|
---|
3 | ** Usage
|
---|
4 | ** =====
|
---|
5 | ** To build it run
|
---|
6 | **
|
---|
7 | ** > ant dist
|
---|
8 | **
|
---|
9 | ** To install the generated plugin locally (in you default plugin directory) run
|
---|
10 | **
|
---|
11 | ** > ant install
|
---|
12 | **
|
---|
13 | ** The generated plugin jar is not automatically available in JOSMs plugin configuration
|
---|
14 | ** dialog. You have to check it in first.
|
---|
15 | **
|
---|
16 | ** Use the ant target 'publish' to check in the plugin and make it available to other
|
---|
17 | ** JOSM users:
|
---|
18 | ** set the properties commit.message and plugin.main.version
|
---|
19 | ** and run
|
---|
20 | ** > ant publish
|
---|
21 | **
|
---|
22 | **
|
---|
23 | -->
|
---|
24 | <project name="photo_geotagging" default="dist" basedir=".">
|
---|
25 |
|
---|
26 | <!-- enter the SVN commit message -->
|
---|
27 | <property name="commit.message" value="write elevation to EXIF (see josm #7710)"/>
|
---|
28 | <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
|
---|
29 | <property name="plugin.main.version" value="4762"/>
|
---|
30 |
|
---|
31 | <!--
|
---|
32 | **********************************************************
|
---|
33 | ** include targets that all plugins have in common
|
---|
34 | **********************************************************
|
---|
35 | -->
|
---|
36 | <import file="../build-common.xml"/>
|
---|
37 |
|
---|
38 | <!--
|
---|
39 | **********************************************************
|
---|
40 | ** compile - complies the source tree
|
---|
41 | ** Overrides the target from build-common.xml
|
---|
42 | **********************************************************
|
---|
43 | -->
|
---|
44 | <target name="compile" depends="init">
|
---|
45 | <echo message="compiling sanselan sources ... "/>
|
---|
46 | <javac srcdir="${plugin.src.dir}" excludes="org/openstreetmap/**" debug="true" destdir="${plugin.build.dir}" encoding="iso-8859-1">
|
---|
47 | <compilerarg value="-Xlint:deprecation"/>
|
---|
48 | </javac>
|
---|
49 | <echo message="compiling sources for ${plugin.jar} ... "/>
|
---|
50 | <javac srcdir="${plugin.src.dir}" excludes="org/apache/sanselan/**" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
|
---|
51 | <compilerarg value="-Xlint:deprecation"/>
|
---|
52 | <compilerarg value="-Xlint:unchecked"/>
|
---|
53 | </javac>
|
---|
54 | </target>
|
---|
55 |
|
---|
56 | <!--
|
---|
57 | **********************************************************
|
---|
58 | ** dist - creates the plugin jar
|
---|
59 | **********************************************************
|
---|
60 | -->
|
---|
61 | <target name="dist" depends="compile,revision">
|
---|
62 | <echo message="creating ${ant.project.name}.jar ... "/>
|
---|
63 | <copy todir="${plugin.build.dir}/images">
|
---|
64 | <fileset dir="images"/>
|
---|
65 | </copy>
|
---|
66 | <copy todir="${plugin.build.dir}/data">
|
---|
67 | <fileset dir="data"/>
|
---|
68 | </copy>
|
---|
69 | <copy todir="${plugin.build.dir}">
|
---|
70 | <fileset dir=".">
|
---|
71 | <include name="README"/>
|
---|
72 | </fileset>
|
---|
73 | </copy>
|
---|
74 | <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
|
---|
75 | <!--
|
---|
76 | ************************************************
|
---|
77 | ** configure these properties. Most of them will be copied to the plugins
|
---|
78 | ** manifest file. Property values will also show up in the list available
|
---|
79 | ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
|
---|
80 | **
|
---|
81 | ************************************************
|
---|
82 | -->
|
---|
83 | <manifest>
|
---|
84 | <attribute name="Author" value="Paul Hartmann"/>
|
---|
85 | <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.photo_geotagging.GeotaggingPlugin"/>
|
---|
86 | <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
|
---|
87 | <attribute name="Plugin-Description" value="Write gps position info to the image file header. Run this feature from the right click menu of the image layer."/>
|
---|
88 | <attribute name="Plugin-Icon" value="images/geotagging.png"/>
|
---|
89 | <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Photo_Geotagging"/>
|
---|
90 | <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
|
---|
91 | <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
|
---|
92 | </manifest>
|
---|
93 | </jar>
|
---|
94 | </target>
|
---|
95 |
|
---|
96 | </project>
|
---|