source: osm/applications/editors/josm/plugins/photoadjust/build.xml@ 30886

Last change on this file since 30886 was 30884, checked in by holgermappt, 10 years ago

<gettext-extract> must be in a build file in the main directory, otherwise it doesn't extract because the path to the source files will be wrong.

  • Property svn:mime-type set to text/xml
File size: 2.8 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="photoadjust" default="dist" basedir=".">
3
4 <!-- enter the SVN commit message -->
5 <property name="commit.message" value="Commit message"/>
6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
7 <property name="plugin.main.version" value="7001"/>
8
9 <!-- Configure these properties (replace "..." accordingly).
10 See http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
11 -->
12 <property name="plugin.author" value="holgermappt"/>
13 <property name="plugin.class" value="org.openstreetmap.josm.plugins.photoadjust.PhotoAdjustPlugin"/>
14 <property name="plugin.description" value="Make photos movable and position them on the map."/>
15 <property name="plugin.icon" value="images/photoadjust.png"/>
16 <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/PhotoAdjust"/>
17 <!--<property name="plugin.early" value="..."/>-->
18 <!--<property name="plugin.requires" value="..."/>-->
19 <!--<property name="plugin.stage" value="..."/>-->
20
21 <property name="josm" location="../../core/dist/josm-custom.jar"/>
22 <property name="plugin.dist.dir" value="../../dist"/>
23 <property name="plugin.javadoc.dir" location="javadoc"/>
24
25 <!-- ** include targets that all plugins have in common ** -->
26 <import file="../build-common.xml"/>
27 <!-- ** internationalization ** -->
28 <import file="i18n/build-i18n.xml"/>
29
30 <target name="pot" description="Extract translatable strings from source." depends="gettext-init">
31 <mkdir dir="${plugin.po.dir}"/>
32 <gettext-extract keysFile="${ant.project.name}.pot" poDirectory="${plugin.po.dir}" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3">
33 <fileset dir="${plugin.src.dir}" includes="**/*.java"/>
34 </gettext-extract>
35 <echo file="${plugin.po.dir}/${ant.project.name}.pot" append="true">
36#. Plugin ${ant.project.name}
37#: build.xml:1
38msgid "${plugin.description}"
39msgstr ""
40</echo>
41 </target>
42
43 <!--
44 **********************************************************
45 ** javadoc - create the plugin documentation
46 **********************************************************
47 -->
48 <target name="javadoc" description="generate documentation">
49 <javadoc destdir="${plugin.javadoc.dir}"
50 sourcepath="${plugin.src.dir}"
51 windowtitle="${ant.project.name}"
52 linksource="true">
53 <link href="../../../core/javadoc"/>
54 <link href="http://josm.openstreetmap.de/doc/"/>
55 <link href="http://docs.oracle.com/javase/7/docs/api"/>
56 </javadoc>
57 </target>
58
59 <target name="additional-manifest">
60 <antcall target="mftrans"/>
61 </target>
62</project>
Note: See TracBrowser for help on using the repository browser.