source: osm/utils/josm/plugins/lang/fr/build.xml@ 1646

Last change on this file since 1646 was 1469, checked in by imi, 18 years ago

fixed build scripts of josm language plugins

File size: 1.4 KB
Line 
1<project name="lang-fr" default="install" basedir=".">
2
3 <property name="language" value="fr" />
4
5 <target name="init">
6 <mkdir dir="bin" />
7 </target>
8
9 <target name="compile" depends="init">
10 <javac srcdir="src" classpath="../../../../editors/josm/dist/josm-custom.jar" destdir="bin" />
11 </target>
12
13 <!-- install entry point for eclipse user -->
14 <target name="jar">
15 <jar destfile="${user.home}/.josm/plugins/lang-${language}.jar" basedir="bin">
16 <manifest>
17 <attribute name="Plugin-Class" value="org.openstreetmap.josm.TranslationLoader_${language}" />
18 <attribute name="Plugin-Description" value="French translation." />
19 <attribute name="Plugin-Early" value="true" />
20 </manifest>
21 </jar>
22 </target>
23
24 <target name="install" depends="compile,gettext,jar" />
25
26
27
28 <target name="find">
29 <exec executable="find" output="alljava.txt">
30 <arg line="../../../../editors/josm/src ../ -name '*.java'"/>
31 </exec>
32 </target>
33
34 <target name="xgettext">
35 <exec executable="xgettext">
36 <arg line="-ktr -ktrn:1,2 -ktrc -kmarktr -Ljava -okeys.pot -falljava.txt"/>
37 </exec>
38 </target>
39
40 <target name="msgmerge">
41 <exec executable="msgmerge">
42 <arg line="-U ${language}.po keys.pot"/>
43 </exec>
44 </target>
45
46 <target name="gettext" depends="find,xgettext,msgmerge">
47 <exec executable="msgfmt">
48 <arg line="--java2 -dbin -rorg.openstreetmap.josm.Translation -l${language} ${language}.po"/>
49 </exec>
50 </target>
51
52</project>
Note: See TracBrowser for help on using the repository browser.