source: osm/applications/editors/josm/plugins/CustomizePublicTransportStop/build.xml@ 32172

Last change on this file since 32172 was 32068, checked in by donvip, 9 years ago

fix #josm12503 - i18n description

File size: 4.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project name="josm-CustomizePublicTransportStop-plugin" default="dist" basedir=".">
3
4 <property name="ant.build.javac.target" value="1.7"/>
5 <property name="ant.build.javac.source" value="1.7"/>
6
7 <property name="plugin.build.dir" value="build" />
8 <property name="plugin.src.dir" value="src" />
9 <property name="plugin.dist.dir" value="../../dist" />
10 <property name="plugin.jar" value="${plugin.dist.dir}/CustomizePublicTransportStop.jar" />
11 <property name="josm" location="../../dist/josm-custom.jar"/>
12
13 <target name="init">
14 <available file="build.properties" property="build.properties.present" />
15 <fail unless="build.properties.present">**
16 ** Property file 'build.properties' doesn't exist.
17 ** Create a copy from 'build.properties.template' and update the properties
18 ** according to your local environment.
19 </fail>
20 <property file="build.properties" />
21
22 <path id="compile.path">
23 <pathelement location="${josm}" />
24 <fileset dir="lib">
25 <include name="**/*.jar"/>
26 </fileset>
27 </path>
28
29 <mkdir dir="${plugin.build.dir}" />
30 </target>
31
32 <target name="compile" depends="init">
33 <echo message="compiling sources for ${plugin.jar} ... " />
34 <echo>Classpath includes ${josm}</echo>
35 <javac srcdir="src" classpathref="compile.path" debug="true" destdir="${plugin.build.dir}" includeantruntime="false" encoding="UTF-8">
36 <compilerarg value="-Xlint:deprecation" />
37 <compilerarg value="-Xlint:unchecked" />
38 </javac>
39 </target>
40
41 <target name="dist" depends="clean,init,compile" description="Create the plugin jar">
42 <tstamp>
43 <format property="plugin.build.date" pattern="yyyy-MM-dd hh:mm aa" />
44 </tstamp>
45
46 <copy todir="${plugin.build.dir}/images">
47 <fileset dir="images">
48 <include name="**/*.png" />
49 </fileset>
50 </copy>
51 <copy todir="${plugin.build.dir}/data">
52 <fileset dir="data">
53 <include name="**/*.*" />
54 </fileset>
55 </copy>
56
57 <copy todir="${plugin.build.dir}">
58 <fileset dir=".">
59 <include name="README" />
60 <include name="LICENSE" />
61 <include name="README.*" />
62 <include name="GPL-v3.0.txt" />
63 <include name="GPL-v2.0.txt" />
64 </fileset>
65 </copy>
66
67 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
68 <manifest>
69 <attribute name="Author" value="Rodion Scherbakov" />
70 <attribute name="Plugin-Class" value="ru.rodsoft.openstreetmap.josm.plugins.customizepublictransportstop.CustomizePublicTransportStopPlugin" />
71 <attribute name="Plugin-Date" value="${plugin.build.date}" />
72 <attribute name="Plugin-Description" value="Customization of public transport stops." />
73 <attribute name="Plugin-Icon" value="images/bus.png"/>
74 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/CustomizePublicTransportStop" />
75 <attribute name="Plugin-Mainversion" value="${josm.required.version}" />
76 <attribute name="Plugin-Version" value="0.2" />
77 <attribute name="RU_Plugin-Description" value="Настройка остановки общественного транспорта в соответствии со стандартом" />
78 </manifest>
79 </jar>
80 </target>
81
82 <target name="clean" description="Clean the build environment">
83 <delete dir="${plugin.build.dir}" />
84 </target>
85
86 <target name="osm-svn-install" depends="">
87 <echo>Installing the plugin in ${local.osm.svn.path}</echo>
88 <copy file="${plugin.jar}" todir="${local.osm.svn.path}" />
89 </target>
90
91 <!-- ************************************************************************************ -->
92 <!-- * Targets for compiling and running tests -->
93 <!-- ************************************************************************************ -->
94
95 <target name="dev-install" depends="dist">
96 <echo>Installing the plugin in ${local.install.path}</echo>
97 <copy file="${plugin.jar}" todir="C:\Users\bwr57_000\AppData\Roaming\JOSM\plugins" />
98 </target>
99</project>
Note: See TracBrowser for help on using the repository browser.