1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <!--
|
---|
3 | ** This is a template build file for a JOSM plugin.
|
---|
4 | **
|
---|
5 | ** Maintaining versions
|
---|
6 | ** ====================
|
---|
7 | ** see README.template
|
---|
8 | **
|
---|
9 | ** Usage
|
---|
10 | ** =====
|
---|
11 | ** To build it run
|
---|
12 | **
|
---|
13 | ** > ant dist
|
---|
14 | **
|
---|
15 | ** To install the generated plugin locally (in you default plugin directory) run
|
---|
16 | **
|
---|
17 | ** > ant install
|
---|
18 | **
|
---|
19 | ** The generated plugin jar is not automatically available in JOSMs plugin configuration
|
---|
20 | ** dialog. You have to check it in first.
|
---|
21 | **
|
---|
22 | ** Use the ant target 'publish' to check in the plugin and make it available to other
|
---|
23 | ** JOSM users:
|
---|
24 | ** set the properties commit.message and plugin.main.version
|
---|
25 | ** and run
|
---|
26 | ** > ant publish
|
---|
27 | **
|
---|
28 | **
|
---|
29 | -->
|
---|
30 | <project name="videomapping" default="dist" basedir=".">
|
---|
31 |
|
---|
32 | <!-- enter the SVN commit message -->
|
---|
33 | <property name="commit.message" value="videomapping"/>
|
---|
34 | <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
|
---|
35 | <property name="plugin.main.version" value="4980"/>
|
---|
36 |
|
---|
37 | <!--
|
---|
38 | **********************************************************
|
---|
39 | ** include targets that all plugins have in common
|
---|
40 | **********************************************************
|
---|
41 | -->
|
---|
42 | <import file="../build-common.xml"/>
|
---|
43 |
|
---|
44 | <property name="vlcj" value="${plugin.lib.dir}/vlcj-2.1.0.jar"/>
|
---|
45 | <property name="jna" value="${plugin.lib.dir}/jna-3.4.0.jar"/>
|
---|
46 | <property name="platform" value="${plugin.lib.dir}/platform-3.4.0.jar"/>
|
---|
47 | <!-- classpath -->
|
---|
48 | <path id="classpath">
|
---|
49 | <pathelement path="${josm}"/>
|
---|
50 | <pathelement location="${vlcj}"/>
|
---|
51 | <!--Add extra libraries -->
|
---|
52 | <pathelement location="${jna}"/>
|
---|
53 | <pathelement location="${platform}"/>
|
---|
54 | <fileset dir="../log4j/lib">
|
---|
55 | <include name="**/*.jar"/>
|
---|
56 | </fileset>
|
---|
57 | </path>
|
---|
58 | <!--
|
---|
59 | **********************************************************
|
---|
60 | ** compile - complies the source tree
|
---|
61 | ** Overrides the target from build-common.xml
|
---|
62 | **********************************************************
|
---|
63 | -->
|
---|
64 | <target name="compile" depends="init">
|
---|
65 | <echo message="compiling sources for ${plugin.jar} ..."/>
|
---|
66 | <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}">
|
---|
67 | <compilerarg value="-Xlint:deprecation"/>
|
---|
68 | <compilerarg value="-Xlint:unchecked"/>
|
---|
69 | </javac>
|
---|
70 | </target>
|
---|
71 |
|
---|
72 | <!--
|
---|
73 | **********************************************************
|
---|
74 | ** dist - creates the plugin jar
|
---|
75 | **********************************************************
|
---|
76 | -->
|
---|
77 | <target name="dist" depends="compile,revision">
|
---|
78 | <echo message="creating ${ant.project.name}.jar ... "/>
|
---|
79 | <copy todir="${plugin.build.dir}/resources">
|
---|
80 | <fileset dir="resources"/>
|
---|
81 | </copy>
|
---|
82 | <copy todir="${plugin.build.dir}/images">
|
---|
83 | <fileset dir="images"/>
|
---|
84 | </copy>
|
---|
85 | <copy todir="${plugin.build.dir}/data">
|
---|
86 | <fileset dir="data"/>
|
---|
87 | </copy>
|
---|
88 | <copy todir="${plugin.build.dir}">
|
---|
89 | <fileset dir=".">
|
---|
90 | <include name="README"/>
|
---|
91 | <include name="LICENSE"/>
|
---|
92 | </fileset>
|
---|
93 | </copy>
|
---|
94 | <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
|
---|
95 | <!--
|
---|
96 | ************************************************
|
---|
97 | ** configure these properties. Most of them will be copied to the plugins
|
---|
98 | ** manifest file. Property values will also show up in the list available
|
---|
99 | ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
|
---|
100 | **
|
---|
101 | ************************************************
|
---|
102 | -->
|
---|
103 | <manifest>
|
---|
104 | <attribute name="Author" value="Matthias Meißer"/>
|
---|
105 | <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.videomapping.VideoPlugin"/>
|
---|
106 | <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
|
---|
107 | <attribute name="Plugin-Description" value="(This Plugin is currently work in progress!!!) Links and syncs a georeferenced video against a GPS track, to use it for identify visible objects."/>
|
---|
108 | <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/VideoMapping"/>
|
---|
109 | <attribute name="Plugin-Icon" value="images/videomapping.png"/>
|
---|
110 | <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
|
---|
111 | <attribute name="Plugin-Requires" value="log4j"/>
|
---|
112 | <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
|
---|
113 | </manifest>
|
---|
114 | <!--added to bundle libs-->
|
---|
115 | <zipfileset src="${jna}"/>
|
---|
116 | <zipfileset src="${platform}"/>
|
---|
117 | <zipfileset src="${vlcj}"/>
|
---|
118 | </jar>
|
---|
119 | </target>
|
---|
120 | </project>
|
---|