File: build.xml

package info (click to toggle)
josm-plugins 0.0.svn33112+ds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,052 kB
  • ctags: 784
  • sloc: java: 4,572; xml: 1,327; makefile: 55; python: 19
file content (77 lines) | stat: -rw-r--r-- 3,540 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="utf-8"?>
<project name="routing" default="dist" basedir=".">

    <!-- enter the SVN commit message -->
    <property name="commit.message" value="added one-way support in roundabouts"/>
    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    <property name="plugin.main.version" value="10580"/>

    <property name="jgrapht" value="/usr/share/java/jgrapht0.8.jar"/>
    <property name="log4j" value="/usr/share/java/log4j-1.2.jar"/>


    <!--
    **********************************************************
    ** include targets that all plugins have in common
    **********************************************************
    -->
    <import file="../build-common.xml"/>

    <!-- classpath -->
    <path id="classpath">
        <pathelement path="${josm}"/>
        <pathelement path="${jgrapht}"/>
        <pathelement path="${log4j}"/>
    </path>
    <!--
    **********************************************************
    ** compile - complies the source tree
    ** Overrides the target from build-common.xml
    **********************************************************
    -->
    <target name="compile" depends="init">
        <echo message="compiling sources for ${plugin.jar} ..."/>
        <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}" includeantruntime="false">
            <compilerarg value="-Xlint:deprecation"/>
            <compilerarg value="-Xlint:unchecked"/>
        </javac>
    </target>

    <!-- Generate distribution -->
    <target name="dist" depends="compile" description="Generate distribution">
        <copy todir="${plugin.build.dir}/images">
            <fileset dir="images"/>
        </copy>
        <copy todir="${plugin.build.dir}/data">
            <fileset dir="data"/>
        </copy>
        <copy todir="${plugin.build.dir}/">
            <fileset dir="resources">
                <include name="*.xml"/>
            </fileset>
        </copy>
        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifestencoding="UTF-8">
        <!--
        ************************************************
        ** configure these properties. Most of them will be copied to the plugins
        ** manifest file. Property values will also show up in the list available
        ** plugins: https://josm.openstreetmap.de/wiki/Plugins.
        **
        ************************************************
        -->
            <manifest>
                <attribute name="Author" value="Jose Vidal &lt;vidalfree@gmail.com&gt;, Juangui Jordán &lt;juangui@gmail.com&gt;, Hassan S &lt;hassan.sabirin@gmail.com&gt;"/>
                <attribute name="Plugin-Class" value="com.innovant.josm.plugin.routing.RoutingPlugin"/>
                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
                <attribute name="Plugin-Description" value="Provides routing capabilities."/>
                <attribute name="Plugin-Icon" value="images/preferences/routing.png"/>
                <attribute name="Plugin-Link" value="https://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/>
                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
                <attribute name="Plugin-Stage" value="50"/>
                <attribute name="Plugin-Requires" value="log4j"/>
                <attribute name="Class-Path" value="${jgrapht} ${log4j}"/>
            </manifest>
        </jar>
    </target>
    <target name='revision' />
</project>