Debian Codegraph @

debian/patches/00-build.patch

raw symbols SCIP
1 Description: Adjustments to the ant build.xml file.
2 Mainly to use system-provided JARs and not depend on Internet connection.
3 Also adds support to build the translations in the i18n directory.
4 The Debian package build is identified using the Build-Name in the REVISION
5 file and is not considered local build.
6 Author: Giovanni Mascellani <[email protected]>
7 Author: Bas Couwenberg <[email protected]>
8 Forwarded: not-needed
9
10 --- a/build.xml
11 +++ b/build.xml
12 @@ -42,12 +42,14 @@
13 <property name="ivy.jar.dir" location="${tools.dir}/ivy"/>
14 <property name="ivy.jar.file" location="${ivy.jar.dir}/ivy-${ivy.version}.jar"/>
15
16 +<!--
17 <mkdir dir="${ivy.jar.dir}"/>
18 <get src="https://josm.openstreetmap.de/repository/public/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar"
19 dest="${ivy.jar.file}"
20 skipexisting="true"
21 />
22 <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar.file}"/>
23 +-->
24 </target>
25 <target name="init-properties" depends="init-javaversions" description="Initialize properties for the build">
26 <property environment="env"/>
27 @@ -91,6 +93,7 @@
28 <property name="proj-build.dir" location="${base.dir}/build2"/>
29 <property name="script-build.dir" location="${base.dir}/build2"/>
30 <property name="epsg.output" location="${resources.dir}/data/projection/custom-epsg"/>
31 + <property name="antcontrib.jar" value="/usr/share/java/ant-contrib.jar"/>
32 <property name="commons-lang3.jar" location="${tools.dir}/commons-lang3.jar"/>
33 <property name="dist.jar" location="${dist.dir}/josm-custom.jar"/>
34 <property name="dist-optimized.jar" location="${dist.dir}/josm-custom-optimized.jar"/>
35 @@ -119,6 +122,14 @@
36 </not>
37 </condition>
38 <property name="java.library.dir" value="jmods" />
39 + <!-- Java classpath addition (all jar files to compile tests with this) -->
40 + <path id="classpath">
41 + <fileset dir="/usr/share/java">
42 + <include name="gettext-commons.jar"/>
43 + <include name="jmapviewer.jar"/>
44 + </fileset>
45 + </path>
46 + <property name="classpathprop-colon" refid="classpath"/>
47 </target>
48 <target name="init-svn-revision-xml" if="svn.present" depends="init-properties"
49 description="Initialize the REVISION.XML file from SVN information">
50 @@ -147,10 +158,9 @@
51 match=".*git-svn-id: [^@]*@([0-9]+).*(\d{4}-\d{2}-\d{2}.\d{2}\:\d{2}\:\d{2}\s*[+-]\d{2}:?\d{2})\s*$"
52 replace="&lt;info&gt;&lt;entry&gt;&lt;commit revision=&quot;\1&quot;&gt;&lt;date&gt;\2&lt;/date&gt;&lt;/commit&gt;&lt;/entry&gt;&lt;/info&gt;"/>
53 </target>
54 - <target name="create-revision" depends="init-properties,init-svn-revision-xml,init-git-revision-xml"
55 + <target name="create-revision"
56 description="Create the REVISION file to be included in the distribution based on the latest SVN/Git commit">
57 - <xmlproperty file="${base.dir}/REVISION.XML" prefix="version" keepRoot="false" collapseAttributes="true"/>
58 - <delete file="${base.dir}/REVISION.XML"/>
59 + <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
60 <tstamp>
61 <format property="build.tstamp" pattern="yyyy-MM-dd HH:mm:ss"/>
62 </tstamp>
63 @@ -161,9 +171,9 @@
64 # automatically generated by JOSM build.xml - do not edit
65 Revision: ${version.entry.commit.revision}
66 Build-Date: ${build.tstamp}
67 -</echo>
68 - <echo unless:set="releasebuild" file="${resources.dir}/REVISION" append="true">
69 - Is-Local-Build: true
70 +Is-Local-Build: false
71 +Build-Name: Debian
72 +Debian-Release: ${debian.version}
73 </echo>
74 </target>
75 <target name="check-schemas" unless="check-schemas.notRequired" depends="init-properties"
76 @@ -172,7 +182,7 @@ Build-Date: ${build.tstamp}
77 <schema namespace="http://josm.openstreetmap.de/tagging-preset-1.0" file="${resources.dir}/data/tagging-preset.xsd" />
78 </schemavalidate>
79 </target>
80 - <target name="dist" depends="compile,extract-libraries,epsg,copy-resources,check-schemas"
81 + <target name="dist" depends="compile,epsg,copy-resources,check-schemas"
82 description="Main target that builds JOSM and checks XML against schemas">
83 <echo>Revision ${version.entry.commit.revision}</echo>
84 <copy file="CONTRIBUTION" todir="${build.dir}"/>
85 @@ -181,7 +191,7 @@ Build-Date: ${build.tstamp}
86 <copy file="gpl-2.0.txt" todir="${build.dir}"/>
87 <copy file="gpl-3.0.txt" todir="${build.dir}"/>
88 <!-- create josm-custom.jar -->
89 - <delete file="${dist.jar}"/>
90 + <propertyregex property="classpathprop" input="${classpathprop-colon}" global="true" regexp=":" replace=" "/>
91 <jar destfile="${dist.jar}" basedir="${build.dir}" level="${clevel}">
92 <!-- add attribute excludes="**/*BZip2*,**/*Bzip2*" to create a non-bzip2 supporting jar -->
93 <manifest>
94 @@ -191,30 +201,129 @@ Build-Date: ${build.tstamp}
95 <attribute name="Permissions" value="all-permissions"/>
96 <attribute name="Codebase" value="josm.openstreetmap.de"/>
97 <attribute name="Application-Name" value="JOSM - Java OpenStreetMap Editor"/>
98 + <attribute name="Debian-Release" value="${debian.version}"/>
99 + <attribute name="Class-Path" value="${classpathprop}"/>
100 <!-- Java 9 stuff. Entries are safely ignored by Java 8 -->
101 <attribute name="Add-Exports" value="java.base/sun.security.action java.desktop/com.apple.eawt java.desktop/com.sun.imageio.spi java.desktop/com.sun.imageio.plugins.jpeg javafx.graphics/com.sun.javafx.application jdk.deploy/com.sun.deploy.config" />
102 <attribute name="Add-Opens" value="java.base/java.lang java.base/java.nio java.base/jdk.internal.loader java.base/jdk.internal.ref java.desktop/javax.imageio.spi java.desktop/javax.swing.text.html java.prefs/java.util.prefs" />
103 <!-- Indicate that this jar may have version specific classes. Only used in Java9+. -->
104 <attribute name="Multi-Release" value="true"/>
105 </manifest>
106 + <service type="jakarta.json.spi.JsonProvider">
107 + <provider classname="org.eclipse.parsson.JsonProviderImpl"/>
108 + </service>
109 + <service type="org.apache.commons.jcs3.log.LogFactory">
110 + <provider classname="org.apache.commons.jcs3.log.JulLogFactory"/>
111 + <provider classname="org.apache.commons.jcs3.log.Log4j2Factory"/>
112 + </service>
113 </jar>
114 <!-- Sign jar if all environment variables are set -->
115 <signjar jar="${dist.jar}" alias="${env.SIGN_ALIAS}" tsaurl="${env.SIGN_TSA}"
116 keystore="${env.SIGN_KEYSTORE}" storepass="${env.SIGN_STOREPASS}" keypass="${env.SIGN_KEYPASS}" if:set="sign.jar" />
117 </target>
118 <target name="javacc" depends="init" unless="javacc.notRequired" description="Compile the MapCSS compiler">
119 - <ivy:cachepath log="download-only" file="${tools.ivy}" pathid="javacc.classpath" conf="javacc"/>
120 <mkdir dir="${mapcss.dir}/parsergen"/>
121 - <java classname="javacc" fork="true" dir="${mapcss.dir}" failonerror="true">
122 - <classpath path="${tools.dir}/javacc"/>
123 - <classpath refid="javacc.classpath"/>
124 + <exec append="false" executable="javacc" failifexecutionfails="true">
125 <arg value="-DEBUG_PARSER=false"/>
126 <arg value="-DEBUG_TOKEN_MANAGER=false"/>
127 <arg value="-JDK_VERSION=1.${java.lang.version}"/>
128 <arg value="-GRAMMAR_ENCODING=UTF-8"/>
129 <arg value="-UNICODE_INPUT=true"/>
130 + <arg value="-OUTPUT_DIRECTORY=${mapcss.dir}/parsergen"/>
131 <arg value="${mapcss.dir}/MapCSSParser.jj"/>
132 - </java>
133 + </exec>
134 + </target>
135 + <target name="javacc-openinghoursparser" depends="init" unless="javacc.notRequired">
136 + <mkdir dir="${src.dir}/ch/poole/openinghoursparser/parsergen"/>
137 + <exec append="false" executable="javacc" failifexecutionfails="true">
138 + <arg value="-DEBUG_PARSER=false"/>
139 + <arg value="-DEBUG_TOKEN_MANAGER=false"/>
140 + <arg value="-JDK_VERSION=1.${java.lang.version}"/>
141 + <arg value="-GRAMMAR_ENCODING=UTF-8"/>
142 + <arg value="-UNICODE_INPUT=true"/>
143 + <arg value="-OUTPUT_DIRECTORY=${src.dir}/ch/poole/openinghoursparser"/>
144 + <arg value="${src.dir}/ch/poole/openinghoursparser/OpeningHoursParser.jj"/>
145 + </exec>
146 + </target>
147 + <target name="compile-cots" depends="init,javacc-openinghoursparser" description="Compile third-party dependencies not retrieved with Ivy">
148 + <!-- COTS -->
149 + <javac srcdir="${src.dir}" classpathref="classpath"
150 + includes="aQute/**,ch/**,com/**,jakarta/**,org/apache/commons/**,org/eclipse/**,org/jetbrains/annotations/**,org/osgi/**,org/tukaani/**"
151 + excludes="**/package-info.java" nowarn="on" encoding="iso-8859-1"
152 + destdir="${build.dir}" release="${java.lang.version}" debug="on" includeAntRuntime="false">
153 + <!-- get rid of "internal proprietary API" warning -->
154 + <compilerarg value="-XDignore.symbol.file"/>
155 + <exclude name="ch/poole/openinghoursparser/DataTest.java"/>
156 + <exclude name="ch/poole/openinghoursparser/UnitTest.java"/>
157 + <exclude name="com/drew/imaging/FileTypeDetector*"/>
158 + <exclude name="com/drew/imaging/ImageMetadataReader*"/>
159 + <exclude name="com/drew/imaging/avi/**"/>
160 + <exclude name="com/drew/imaging/bmp/**"/>
161 + <exclude name="com/drew/imaging/eps/**"/>
162 + <exclude name="com/drew/imaging/gif/**"/>
163 + <exclude name="com/drew/imaging/heif/**"/>
164 + <exclude name="com/drew/imaging/ico/**"/>
165 + <exclude name="com/drew/imaging/mp3/**"/>
166 + <exclude name="com/drew/imaging/mp4/**"/>
167 + <exclude name="com/drew/imaging/pcx/**"/>
168 + <exclude name="com/drew/imaging/psd/**"/>
169 + <exclude name="com/drew/imaging/quicktime/**"/>
170 + <exclude name="com/drew/imaging/raf/**"/>
171 + <exclude name="com/drew/imaging/riff/**"/>
172 + <exclude name="com/drew/imaging/wav/**"/>
173 + <exclude name="com/drew/imaging/webp/**"/>
174 + <exclude name="com/drew/metadata/avi/**"/>
175 + <exclude name="com/drew/metadata/bmp/**"/>
176 + <exclude name="com/drew/metadata/eps/**"/>
177 + <exclude name="com/drew/metadata/gif/**"/>
178 + <exclude name="com/drew/metadata/heif/**"/>
179 + <exclude name="com/drew/metadata/ico/**"/>
180 + <exclude name="com/drew/metadata/mov/**"/>
181 + <exclude name="com/drew/metadata/mp3/**"/>
182 + <exclude name="com/drew/metadata/mp4/**"/>
183 + <exclude name="com/drew/metadata/pcx/**"/>
184 + <exclude name="com/drew/metadata/wav/**"/>
185 + <exclude name="com/drew/metadata/webp/**"/>
186 + <exclude name="com/drew/tools/**"/>
187 + <exclude name="org/apache/commons/compress/PasswordRequiredException*"/>
188 + <exclude name="org/apache/commons/compress/archivers/**"/>
189 + <exclude name="org/apache/commons/compress/changes/**"/>
190 + <exclude name="org/apache/commons/compress/compressors/bzip2/BZip2Utils*"/>
191 + <exclude name="org/apache/commons/compress/compressors/brotli/**"/>
192 + <exclude name="org/apache/commons/compress/compressors/CompressorStreamFactory*"/>
193 + <exclude name="org/apache/commons/compress/compressors/CompressorStreamProvider*"/>
194 + <exclude name="org/apache/commons/compress/compressors/CompressorException*"/>
195 + <exclude name="org/apache/commons/compress/compressors/FileNameUtil*"/>
196 + <exclude name="org/apache/commons/compress/compressors/deflate/**"/>
197 + <exclude name="org/apache/commons/compress/compressors/gzip/**"/>
198 + <exclude name="org/apache/commons/compress/compressors/lz4/**"/>
199 + <exclude name="org/apache/commons/compress/compressors/lzma/**"/>
200 + <exclude name="org/apache/commons/compress/compressors/lz77support/**"/>
201 + <exclude name="org/apache/commons/compress/compressors/pack200/**"/>
202 + <exclude name="org/apache/commons/compress/compressors/snappy/**"/>
203 + <exclude name="org/apache/commons/compress/compressors/xz/XZUtils*"/>
204 + <exclude name="org/apache/commons/compress/compressors/z/**"/>
205 + <exclude name="org/apache/commons/compress/compressors/zstandard/**"/>
206 + <exclude name="org/apache/commons/compress/java/util/jar/Pack200*"/>
207 + <exclude name="org/apache/commons/compress/harmony/pack200/**"/>
208 + <exclude name="org/apache/commons/compress/harmony/unpack200/**"/>
209 + <exclude name="org/apache/commons/compress/parallel/**"/>
210 + <exclude name="org/apache/commons/compress/utils/ArchiveUtils*"/>
211 + <exclude name="org/apache/commons/jcs3/auxiliary/disk/jdbc/**"/>
212 + <exclude name="org/apache/commons/jcs3/auxiliary/remote/http/client/**"/>
213 + <exclude name="org/apache/commons/jcs3/auxiliary/remote/http/server/RemoteHttpCacheServlet*"/>
214 + <exclude name="org/apache/commons/jcs3/auxiliary/remote/server/RemoteCacheStartupServlet*"/>
215 + <exclude name="org/apache/commons/jcs3/log/Log4j2Factory*"/>
216 + <exclude name="org/apache/commons/jcs3/log/Log4j2LogAdapter*"/>
217 + <exclude name="org/apache/commons/jcs3/utils/servlet/**"/>
218 + <exclude name="org/jetbrains/annotations/Debug.java"/>
219 + <exclude name="org/openstreetmap/gui/jmapviewer/Demo*"/>
220 + </javac>
221 + <copy todir="${build.dir}">
222 + <fileset dir="${src.dir}" includes="ch/poole/**/*.properties" excludes="**/*.java"/>
223 + </copy>
224 + <!-- I18N -->
225 + <ant dir="i18n" />
226 </target>
227 <macrodef name="call-javac-compile">
228 <attribute name="sourcepath" default=""/>
229 @@ -303,17 +412,44 @@ Build-Date: ${build.tstamp}
230 </call-javac-compile>
231 </sequential>
232 </macrodef>
233 - <target name="compile" depends="init,javacc" unless="compile.notRequired" description="Compile JOSM">
234 + <target name="compile" depends="init,javacc,compile-cots" unless="compile.notRequired" description="Compile JOSM">
235 +<!--
236 <ivy:cachepath log="download-only" file="${tools.ivy}" pathid="errorprone.classpath" conf="errorprone"/>
237 <ivy:cachepath log="download-only" file="${tools.ivy}" pathid="errorprone_javac.classpath" conf="errorprone_javac"/>
238 +-->
239 <!-- JOSM -->
240 +<!--
241 <call-javac-compile excludes="**/package-info.java,**/module-info.java,main/**" release="${java.lang.version}"/>
242 +-->
243 <!-- Java 11 specific files (2018-09 LTS) -->
244 +<!--
245 <call-javac-compile-mrjar release="11"/>
246 +-->
247 <!-- Java 17 specific files (2021-09 LTS) -->
248 +<!--
249 <call-javac-compile-mrjar release="17"/>
250 +-->
251 <!-- Java 21 specific files (2023-09 LTS) -->
252 +<!--
253 <call-javac-compile-mrjar release="21"/>
254 +-->
255 + <javac sourcepath="" srcdir="${src.dir}" fork="yes" classpathref="classpath"
256 + excludes="aQute/**,ch/**,com/**,jakarta/**,org/apache/commons/**,org/eclipse/**,org/intellij/**,org/jetbrains/annotations/**,org/openstreetmap/gui/jmapviewer/**,org/osgi/**,org/tukaani/**,**/package-info.java"
257 + destdir="${build.dir}" release="${java.lang.version}" debug="on" includeantruntime="false" encoding="UTF-8">
258 + <compilerarg value="-Xlint:cast"/>
259 + <compilerarg value="-Xlint:deprecation"/>
260 + <compilerarg value="-Xlint:dep-ann"/>
261 + <compilerarg value="-Xlint:divzero"/>
262 + <compilerarg value="-Xlint:empty"/>
263 + <compilerarg value="-Xlint:finally"/>
264 + <compilerarg value="-Xlint:overrides"/>
265 + <!--<compilerarg value="-Xlint:rawtypes"/>-->
266 + <compilerarg value="-Xlint:static"/>
267 + <compilerarg value="-Xlint:try"/>
268 + <compilerarg value="-Xlint:unchecked"/>
269 + <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
270 + <compilerarg value="-XDignore.symbol.file"/>
271 + </javac>
272 </target>
273 <target name="create-resources" depends="create-revision" description="Create generated resource files">
274 <copy todir="${resources.dir}">
275 @@ -337,6 +473,7 @@ Build-Date: ${build.tstamp}
276 </uptodate>
277 <mkdir dir="${build.dir}"/>
278 <mkdir dir="${dist.dir}"/>
279 + <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="${antcontrib.jar}"/>
280 </target>
281 <target name="javadoc" depends="init" description="Generate API documentation from JOSM source files">
282 <javadoc destdir="javadoc"
283 @@ -379,6 +516,7 @@ Build-Date: ${build.tstamp}
284 <delete dir="${src.dir}/org/openstreetmap/josm/data/imagery/types"/>
285 <delete file="${epsg.output}"/>
286 <delete file="${pmd.dir}/cache"/>
287 + <ant target="clean" dir="i18n"/>
288 </target>
289 <macrodef name="init-test-preferences">
290 <attribute name="testfamily"/>
291 @@ -991,6 +1129,7 @@ Build-Date: ${build.tstamp}
292 <pathelement path="${resources.dir}"/>
293 <pathelement path="${proj-classpath}"/>
294 <pathelement path="${proj-build.dir}"/>
295 + <path refid="classpath"/>
296 </classpath>
297 <arg value="${base.dir}"/>
298 </java>
299 @@ -1072,12 +1211,14 @@ Build-Date: ${build.tstamp}
300 <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-with-all-dependencies.png"/>
301 </target>
302 <target name="resolve" depends="init-ivy" unless="resolve.notRequired" description="Resolve Ivy dependencies">
303 +<!--
304 <ivy:settings file="${base.dir}/ivysettings.xml"/>
305 <ivy:resolve log="download-only" file="${base.dir}/ivy.xml" keep="true"/>
306 <ivy:cachepath log="download-only" pathid="compile.path" conf="compile"/>
307 <ivy:cachepath log="download-only" pathid="runtime.path" conf="runtime"/>
308 <ivy:cachefileset log="download-only" setid="runtime.fileset" conf="runtime"/>
309 <ivy:cachepath log="download-only" pathid="test.path" conf="test"/>
310 +-->
311 </target>
312 <target name="extract-libraries" depends="resolve" description="Extract libraries to build dir">
313 <unzip dest="${build.dir}">
314 --- a/i18n/build.xml
315 +++ b/i18n/build.xml
316 @@ -1,7 +1,7 @@
317 <?xml version="1.0" encoding="utf-8"?>
318 <project name="JOSM i18n" default="build" basedir=".">
319 <!-- compilation properties -->
320 - <property name="josm.build.dir" value="../core"/>
321 + <property name="josm.build.dir" value=".."/>
322 <property name="josm.resources.dir" value="${josm.build.dir}/resources"/>
323 <property name="josm.presets" value="${josm.resources.dir}/data/defaultpresets.xml"/>
324 <property name="plugin.dir" value="../plugins"/>
325 @@ -14,8 +14,8 @@
326 <property name="po.build.dir" value="${i18n.build.dir}"/>
327 <property name="ant.build.javac.target" value="1.5"/>
328 <property name="gettext.keywords" value="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3"/>
329 - <property name="gettexttasks.jar" value="lib/gettext-ant-tasks-0.9.7.jar"/>
330 - <property name="antcontrib.jar" value="lib/ant-contrib-1.0b3.jar"/>
331 + <property name="gettexttasks.jar" value="/usr/share/java/gettext-ant-tasks.jar"/>
332 + <property name="antcontrib.jar" value="/usr/share/java/ant-contrib.jar"/>
333 <property name="grand.jar" value="lib/grand-1.9.5.jar"/>
334 <target name="init" description="Loads the Ant gettext and contrib tasks">
335 <taskdef name="gettext-extract" classname="org.xnap.commons.ant.gettext.GettextExtractKeysTask" classpath="${gettexttasks.jar}"/>
336 @@ -68,7 +68,7 @@
337 <target name="po/josm.pot" description="Extracts message keys from the source code" depends="trans_.java,init,filterpluginsources">
338 <gettext-extract keysFile="josm.pot" poDirectory="po" keywords="${gettext.keywords} --exclude-file=excludes.pot">
339 <!-- core.pot -->
340 - <fileset dir="${josm.build.dir}/src" includes="**/*.java"/>
341 + <fileset dir="${josm.build.dir}/src/org/openstreetmap/josm" includes="**/*.java"/>
342 <fileset dir="${i18n.build.dir}" includes="specialmessages.java"/>
343 <fileset dir="${i18n.build.dir}" includes="trans_presets.java"/>
344 <fileset dir="${josm.resources.dir}/data/validator" includes="*.mapcss"/>
345 @@ -87,9 +87,9 @@
346 <arg line="po/core.pot po/maplist.pot po/presets.pot"/>
347 </exec>
348 </target>
349 - <target name="po/core.pot" description="Extracts message keys from the JOSM core source code" depends="init">
350 + <target name="po/core.pot" description="Extracts message keys from the JOSM core source code" depends="builddir,init">
351 <gettext-extract keysFile="core.pot" poDirectory="po" keywords="${gettext.keywords} --exclude-file=excludes.pot">
352 - <fileset dir="${josm.build.dir}/src" includes="**/*.java"/>
353 + <fileset dir="${josm.build.dir}/src/org/openstreetmap/josm" includes="**/*.java"/>
354 <fileset dir="${i18n.build.dir}" includes="specialmessages.java"/>
355 <fileset dir="${josm.resources.dir}/data/validator" includes="*.mapcss"/>
356 <fileset dir="${josm.resources.dir}/styles/standard" includes="*.mapcss"/>
357 @@ -117,9 +117,14 @@
358 <fileset dir="${i18n.build.dir}" includes="trans_surveyor.java"/>
359 </gettext-extract>
360 </target>
361 - <target name="build">
362 + <target name="build.check">
363 + <condition property="build.run">
364 + <not><available file="build-timestamp"/></not>
365 + </condition>
366 + </target>
367 + <target name="build" depends="build.check" if="build.run">
368 <antcall target="buildcore"/>
369 - <antcall target="buildplugins"/>
370 + <touch file="build-timestamp"/>
371 </target>
372 <target name="buildplugins" depends="init">
373 <foreach param="path" target="plugintrans" parallel="true" maxThreads="8">
374 @@ -138,13 +143,12 @@
375 <param name="path" value="${plugin}"/>
376 </antcall>
377 </target>
378 - <target name="buildcore" depends="pot">
379 + <target name="buildcore">
380 <antcall target="coretrans"/>
381 - <antcall target="pluginlisttrans"/>
382 </target>
383 - <target name="coretrans" depends="po/core+maplist+presets.pot">
384 + <target name="coretrans" depends="po/core.pot">
385 <exec executable="perl" failonerror="true">
386 - <arg line="i18n.pl --potfile=po/core+maplist+presets.pot --basedir=${i18n.install.dir}/ po/*.po"/>
387 + <arg line="i18n.pl --potfile=po/core.pot --basedir=${i18n.install.dir}/ po/*.po"/>
388 </exec>
389 </target>
390 <target name="pluginlisttrans" depends="po/pluginlist.pot">
391 @@ -182,15 +186,14 @@
392 </if>
393 <delete dir="${po.build.dir}/plugin_${dir}"/>
394 </target>
395 + <target name="dist" depends="build">
396 + <copy todir="../build">
397 + <fileset dir="build"/>
398 + </copy>
399 + </target>
400 <target name="clean">
401 <delete dir="${i18n.build.dir}"/>
402 - <delete file="build.dot"/>
403 - <delete file="build.png"/>
404 - <delete>
405 - <fileset dir="po" includes="*.*~" defaultexcludes="false"/>
406 - <fileset dir="po" includes="*.po" defaultexcludes="false"/>
407 - <fileset dir="po" includes="*.pot" defaultexcludes="false"/>
408 - </delete>
409 + <delete file="build-timestamp"/>
410 </target>
411 <target name="test" depends="pot">
412 <mkdir dir="${i18n.build.dir}/test"/>