Changeset 5153 in osm for applications/editors/josm/plugins/lang
- Timestamp:
- 2007-10-24T20:13:09+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/lang/build.xml
r5147 r5153 1 1 <project name="lang" default="install-all" basedir="."> 2 2 3 <!-- compilation properties --> 4 <property name="josm.build.dir" value="../../core"/> 5 <property name="josm.home.dir" value="${user.home}/.josm"/> 6 <property name="josm" location="../../core/dist/josm-custom.jar" /> 7 <property name="plugin.build.dir" value="build"/> 8 <property name="plugin.dist.dir" value="../dist"/> 9 <property name="plugin.name" value="${ant.project.name}"/> 10 <property name="plugin.jar" value="../dist/${plugin.name}.jar"/> 11 3 12 4 <!-- compilation properties --> 5 <property name="josm.build.dir" value="../../core"/> 6 <property name="josm.home.dir" value="${user.home}/.josm"/> 7 <property name="plugin.build.dir" value="bin"/> 8 <property name="plugin.name" value="${ant.project.name}"/> 9 <property name="plugin.jar" value="${plugin.name}.jar"/> 10 <property name="plugins" value=".."/> 11 13 <target name="dist" depends="install-all"> 14 </target> 15 12 16 <target name="install-all" depends="josm-build,keys.pot"> 13 17 <ant target="install"><property name="language" value="de"/></ant> … … 18 22 19 23 <target name="install"> 20 <mkdir dir="${language}/b in"/>21 <mkdir dir="dist"/> 22 <javac srcdir="${language}/src" classpath="${josm.build.dir}/dist/josm-custom.jar" destdir="${language}/b in" />24 <mkdir dir="${language}/build"/> 25 <mkdir dir="../dist"/> 26 <javac srcdir="${language}/src" classpath="${josm.build.dir}/dist/josm-custom.jar" destdir="${language}/build" /> 23 27 24 28 <exec executable="msgmerge"> … … 27 31 28 32 <exec executable="msgfmt"> 29 <arg line="--java2 -d${language}/b in-rorg.openstreetmap.josm.Translation -l${language} ${language}/${language}.po"/>33 <arg line="--java2 -d${language}/build -rorg.openstreetmap.josm.Translation -l${language} ${language}/${language}.po"/> 30 34 </exec> 31 35 32 <copy file="i18n.properties" todir="${language}/b in/org/openstreetmap/josm" />36 <copy file="i18n.properties" todir="${language}/build/org/openstreetmap/josm" /> 33 37 34 <jar destfile="dist/lang-${language}.jar" basedir="${language}/b in">38 <jar destfile="../dist/lang-${language}.jar" basedir="${language}/build"> 35 39 <manifest> 36 40 <attribute name="Plugin-Class" value="org.openstreetmap.josm.TranslationLoader_${language}" /> … … 58 62 59 63 <target name="clean"> 60 <delete dir="build" /> 61 <delete dir="dist" /> 62 <delete dir="${plugin.jar}" /> 64 <ant target="clean_lang"><property name="language" value="de"/></ant> 65 <ant target="clean_lang"><property name="language" value="fr"/></ant> 66 <ant target="clean_lang"><property name="language" value="ro"/></ant> 67 <ant target="clean_lang"><property name="language" value="en_GB"/></ant> 68 <delete dir="${plugin.build.dir}" /> 69 </target> 70 71 <target name="clean_lang"> 72 <delete file="../dist/lang-${language}.jar" /> 73 <delete dir="${language}/build"/> 63 74 </target> 64 75
Note:
See TracChangeset
for help on using the changeset viewer.