source: subversion/applications/editors/josm/plugins/photoadjust/build.xml @ 30130

Last change on this file since 30130 was 30130, checked in by holgermappt, 6 years ago

Initial checkin of JOSM PhotoAdjust? plugin.

  • Property svn:mime-type set to application/xml
File size: 3.8 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3** This is the build file for a JOSM photoadjust plugin.
4** Based on template revision 29839.
5**
6** Usage
7** =====
8** Call "ant help" to get possible build targets.
9**
10-->
11<project name="photoadjust" default="dist" basedir=".">
12
13    <!-- enter the SVN commit message -->
14    <property name="commit.message" value="Commit message"/>
15    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
16    <property name="plugin.main.version" value="6392"/>
17
18    <!-- Configure these properties (replace "..." accordingly).
19         See http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
20    -->
21    <property name="plugin.author" value="Holger Mappt"/>
22    <property name="plugin.class" value="org.openstreetmap.josm.plugins.photoadjust.PhotoAdjustPlugin"/>
23    <property name="plugin.description" value="Make photos movable and position them on the map."/>
24    <property name="plugin.icon" value="images/photoadjust.png"/>
25    <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/PhotoAdjust"/>
26    <!--<property name="plugin.early" value="..."/>-->
27    <!--<property name="plugin.requires" value="..."/>-->
28    <!--<property name="plugin.stage" value="..."/>-->
29   
30    <property name="josm" location="../../core/dist/josm-custom.jar"/>
31    <property name="plugin.dist.dir" value="../../dist"/>
32    <property name="plugin.javadoc.dir" location="javadoc"/>
33    <property name="gettexttasks.jar" value="../../i18n/lib/gettext-ant-tasks-0.9.7.jar"/>
34       
35    <!-- ** include targets that all plugins have in common ** -->
36    <import file="../build-common.xml"/>
37
38    <!--
39    **********************************************************
40    ** javadoc - create the plugin documentation
41    **********************************************************
42    -->
43    <target name="javadoc" description="generate documentation">
44        <javadoc destdir="${plugin.javadoc.dir}"
45                sourcepath="${plugin.src.dir}"
46                windowtitle="${ant.project.name}"
47                linksource="true">
48            <link href="../../../core/javadoc"/>
49            <link href="http://josm.openstreetmap.de/doc/"/>
50            <link href="http://docs.oracle.com/javase/6/docs/api"/>
51        </javadoc>
52    </target>
53
54    <!--
55    **********************************************************
56    ** gettext - string extraction and merge
57    **********************************************************
58    -->
59    <target name="gettext-init" description="Loads the Ant gettext and contrib tasks.">
60        <taskdef name="gettext-extract" classname="org.xnap.commons.ant.gettext.GettextExtractKeysTask" classpath="${gettexttasks.jar}"/>
61        <taskdef name="gettext-merge" classname="org.xnap.commons.ant.gettext.GettextMergeKeysTask" classpath="${gettexttasks.jar}"/>
62    </target>
63    <target name="pot" description="Extract translatable strings from source." depends="gettext-init">
64        <mkdir dir="po"/>
65        <gettext-extract keysFile="photoadjust.pot" poDirectory="po" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3">
66            <fileset dir="src" includes="**/*.java"/>
67        </gettext-extract>
68    </target>
69    <target name="pomerge" description="Merge extracted strings into language files." depends="gettext-init">
70        <gettext-merge keysFile="photoadjust.pot" poDirectory="po"/>
71    </target>
72    <target name="poimport" description="Import the PO files from the tarball launchpad-export.tar.gz exported from Launchpad.">
73        <exec executable="perl">
74            <arg line="importpo.pl"/>
75        </exec>
76    </target>
77    <target name="lang" description="Prepare *.lang files in data directory.">
78        <exec executable="perl">
79            <arg line="../../i18n/i18n.pl data po/*.po"/>
80        </exec>
81    </target>
82</project>
Note: See TracBrowser for help on using the repository browser.