source: osm/applications/editors/josm/plugins/build-common.xml@ 32894

Last change on this file since 32894 was 32894, checked in by donvip, 8 years ago

update to error-prone 2.0.12

File size: 26.4 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3** Template for the build targets common to all plugins
4** ====================================================
5**
6** To override a property, add it to the plugin build.xml _before_
7** this template has been imported.
8** To override a target, add it _after_ this template has been imported.
9**
10** Paths are relative to the build.xml that imports this template.
11**
12-->
13<project name="plugin_common" basedir="." xmlns:jacoco="antlib:org.jacoco.ant">
14
15 <property name="josm" location="../../core/dist/josm-custom.jar"/>
16 <property name="josm.test.build.dir" location="../../core/test/build"/>
17 <property name="groovy.jar" location="../00_core_tools/groovy-all-2.4.7.jar"/>
18 <property name="error_prone_ant.jar" location="../00_core_tools/error_prone_ant-2.0.12.jar"/>
19 <property name="checkstyle.jar" location="../00_core_tools/checkstyle/checkstyle-7.1-all.jar"/>
20 <property name="findbugs-ant.jar" location="../00_core_tools/findbugs/findbugs-ant.jar"/>
21 <property name="annotations.jar" location="../00_core_tools/findbugs/annotations.jar"/>
22 <property name="plugin.build.dir" location="build"/>
23 <property name="plugin.test.dir" location="test"/>
24 <property name="plugin.src.dir" location="src"/>
25 <property name="plugin.lib.dir" location="lib"/>
26 <!-- this is the directory where the plugin jar is copied to -->
27 <property name="plugin.dist.dir" location="../../dist"/>
28 <property name="ant.build.javac.target" value="1.8"/>
29 <property name="ant.build.javac.source" value="1.8"/>
30 <property name="plugin.jar" location="${plugin.dist.dir}/${ant.project.name}.jar"/>
31 <property name="javac.compiler" value="com.google.errorprone.ErrorProneAntCompilerAdapter" />
32
33 <!-- For Windows-specific stuff -->
34 <condition property="isWindows">
35 <os family="Windows"/>
36 </condition>
37 <target name="-jaxb_win" if="isWindows">
38 <property name="xjc" value="${java.home}\..\bin\xjc.exe" />
39 </target>
40 <target name="-jaxb_nix" unless="isWindows">
41 <property name="xjc" value="${java.home}/../bin/xjc" />
42 </target>
43
44 <!-- To be overriden in plugin build file before inclusion if other plugins are required -->
45 <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}" includes="nothing"/>
46
47 <path id="plugin.classpath">
48 <pathelement location="${josm}"/>
49 <fileset dir="${plugin.lib.dir}" erroronmissingdir="no">
50 <include name="**/*.jar"/>
51 <exclude name="**/*-sources.jar"/>
52 <exclude name="**/*-javadoc.jar"/>
53 </fileset>
54 <fileset refid="plugin.requires.jars"/>
55 </path>
56
57 <!--
58 **********************************************************
59 ** init - initializes the build
60 **********************************************************
61 -->
62 <target name="init">
63 <mkdir dir="${plugin.build.dir}"/>
64 </target>
65 <!--
66 **********************************************************
67 ** compile - compiles the source tree
68 **********************************************************
69 -->
70 <target name="pre-compile">
71 <!-- to be overidden by plugins that need to perform additional tasks before compiling -->
72 </target>
73 <target name="compile" depends="init, pre-compile" unless="skip-compile">
74 <echo message="compiling sources for ${plugin.jar} ..."/>
75 <javac compiler="${javac.compiler}" srcdir="src" debug="true" destdir="${plugin.build.dir}" includeantruntime="false" encoding="UTF-8">
76 <compilerclasspath>
77 <pathelement location="${error_prone_ant.jar}"/>
78 </compilerclasspath>
79 <compilerarg value="-Xlint:deprecation"/>
80 <compilerarg value="-Xlint:unchecked"/>
81 <compilerarg value="-Xep:ReferenceEquality:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
82 <compilerarg line="-Xmaxwarns 1000"/>
83 <classpath refid="plugin.classpath"/>
84 </javac>
85 </target>
86 <!--
87 **********************************************************
88 ** setup-dist - copies files for distribution
89 **********************************************************
90 -->
91 <target name="setup-dist-default">
92 <copy todir="${plugin.build.dir}/resources" failonerror="no" includeemptydirs="no">
93 <fileset dir="resources"/>
94 </copy>
95 <copy todir="${plugin.build.dir}/images" failonerror="no" includeemptydirs="no">
96 <fileset dir="images"/>
97 </copy>
98 <copy todir="${plugin.build.dir}/data" failonerror="no" includeemptydirs="no">
99 <fileset dir="data"/>
100 </copy>
101 <copy todir="${plugin.build.dir}">
102 <fileset dir=".">
103 <include name="README"/>
104 <include name="LICENSE*"/>
105 <include name="*GPL*"/>
106 </fileset>
107 </copy>
108 </target>
109 <target name="setup-dist">
110 <antcall target="setup-dist-default" />
111 </target>
112 <!--
113 **********************************************************
114 ** dist - creates the plugin jar
115 **********************************************************
116 -->
117 <target name="dist" depends="compile,revision" unless="skip-dist">
118 <echo message="creating ${ant.project.name}.jar ... "/>
119 <antcall target="setup-dist" />
120 <delete file="MANIFEST" failonerror="no"/>
121 <manifest file="MANIFEST" mode="update">
122 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
123 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
124 <attribute name="Plugin-Class" value="${plugin.class}" />
125 <attribute name="Plugin-Description" value="${plugin.description}" />
126 <attribute name="Plugin-Date" value="${version.entry.commit.date}" />
127 <attribute name="Author" value="${plugin.author}"/>
128 </manifest>
129 <antcall target="add-manifest-attribute">
130 <param name="manifest.attribute" value="Plugin-Link"/>
131 <param name="property.name" value="plugin.link"/>
132 <param name="property.value" value="${plugin.link}"/>
133 </antcall>
134 <antcall target="add-manifest-attribute">
135 <param name="manifest.attribute" value="Plugin-Icon"/>
136 <param name="property.name" value="plugin.icon"/>
137 <param name="property.value" value="${plugin.icon}"/>
138 </antcall>
139 <antcall target="add-manifest-attribute">
140 <param name="manifest.attribute" value="Plugin-Early"/>
141 <param name="property.name" value="plugin.early"/>
142 <param name="property.value" value="${plugin.early}"/>
143 </antcall>
144 <antcall target="add-manifest-attribute">
145 <param name="manifest.attribute" value="Plugin-Requires"/>
146 <param name="property.name" value="plugin.requires"/>
147 <param name="property.value" value="${plugin.requires}"/>
148 </antcall>
149 <antcall target="add-manifest-attribute">
150 <param name="manifest.attribute" value="Plugin-Stage"/>
151 <param name="property.name" value="plugin.stage"/>
152 <param name="property.value" value="${plugin.stage}"/>
153 </antcall>
154 <antcall target="add-manifest-attribute">
155 <param name="manifest.attribute" value="Plugin-Canloadatruntime"/>
156 <param name="property.name" value="plugin.canloadatruntime"/>
157 <param name="property.value" value="${plugin.canloadatruntime}"/>
158 </antcall>
159 <antcall target="additional-manifest" />
160 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="MANIFEST" manifestencoding="UTF-8">
161 <restrict>
162 <not><or>
163 <name name="META-INF/maven/*"/>
164 <name name="META-INF/DEPENDENCIES"/>
165 <name name="META-INF/LICENSE"/>
166 <name name="META-INF/NOTICE"/>
167 <name name="META-INF/*.RSA"/>
168 <name name="META-INF/*.SF"/>
169 </or></not>
170 <archives>
171 <zips>
172 <fileset dir="${plugin.lib.dir}" includes="*.jar" excludes="*-sources.jar, *-javadoc.jar" erroronmissingdir="no"/>
173 </zips>
174 </archives>
175 </restrict>
176 </jar>
177 <delete file="MANIFEST" failonerror="no"/>
178 <antcall target="post-dist" />
179 </target>
180 <target name="post-dist">
181 <!-- to be overidden by plugins that need to perform additional tasks on resulting jar -->
182 </target>
183 <target name="add-manifest-attribute" depends="check-manifest-attribute" if="have-${property.name}">
184 <manifest file="MANIFEST" mode="update">
185 <attribute name="${manifest.attribute}" value="${property.value}" />
186 </manifest>
187 </target>
188 <!-- target to add additional entries, empty in commons -->
189 <target name="additional-manifest">
190 </target>
191 <target name="check-manifest-attribute">
192 <condition property="have-${property.name}">
193 <and>
194 <isset property="${property.name}"/>
195 <not>
196 <equals arg1="${property.value}" arg2=""/>
197 </not>
198 <not>
199 <equals arg1="${property.value}" arg2="..."/>
200 </not>
201 </and>
202 </condition>
203 </target>
204 <!--
205 **********************************************************
206 ** revision - extracts the current revision number for the
207 ** file build.number and stores it in the XML property
208 ** version.*
209 **********************************************************
210 -->
211 <!--
212 ** Initializes the REVISION.XML file from SVN information
213 -->
214 <target name="init-svn-revision-xml" unless="skip-revision">
215 <exec append="false" output="REVISION.XML" executable="svn" failifexecutionfails="false" resultproperty="svn.info.result">
216 <env key="LANG" value="C"/>
217 <arg value="info"/>
218 <arg value="--xml"/>
219 <arg value="."/>
220 </exec>
221 <condition property="svn.info.fail">
222 <not><equals arg1="${svn.info.result}" arg2="0" /></not>
223 </condition>
224 </target>
225 <!--
226 ** Initializes the REVISION.XML file from git-svn information.
227 Obtains the revision from the git-svn-id field.
228 -->
229 <target name="init-git-svn-revision-xml" if="svn.info.fail" unless="skip-revision">
230 <exec append="false" output="REVISION.XML" executable="git" failifexecutionfails="false" resultproperty="git.svn.info.result">
231 <arg value="log"/>
232 <arg value="-1"/>
233 <arg value="--grep=git-svn-id"/>
234 <!--
235 %B: raw body (unwrapped subject and body)
236 %n: new line
237 %ai: author date, ISO 8601 format
238 -->
239 <arg value="--pretty=format:%B%n%ai"/>
240 <arg value="."/>
241 </exec>
242 <replaceregexp file="REVISION.XML" flags="s"
243 match=".*git-svn-id: [^@]*@([0-9]+).*(\d{4}-\d{2}-\d{2}.\d{2}\:\d{2}\:\d{2}\s*[+-]\d{2}:?\d{2})\s*$"
244 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;"/>
245 <condition property="git.svn.fail">
246 <not>
247 <and>
248 <equals arg1="${git.svn.info.result}" arg2="0" />
249 <length file="REVISION.XML" when="greater" length="1" />
250 </and>
251 </not>
252 </condition>
253 </target>
254 <!--
255 ** Initializes the REVISION.XML file from git (w/o svn) information.
256 Uses Unix date as revision number.
257 -->
258 <target name="init-git-revision-xml" if="git.svn.fail" unless="skip-revision">
259 <exec append="false" output="REVISION.XML" executable="git" failifexecutionfails="false" resultproperty="git.info.result">
260 <arg value="log"/>
261 <arg value="-1"/>
262 <arg value="--pretty=format:%at%n%ai"/>
263 <arg value="."/>
264 </exec>
265 <replaceregexp file="REVISION.XML" flags="s"
266 match="\s*(\d*)\s+(\d{4}-\d{2}-\d{2}.\d{2}\:\d{2}\:\d{2}\s*[+-]\d{2}:?\d{2})\s*$"
267 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;"/>
268 <condition property="git.fail">
269 <not>
270 <and>
271 <equals arg1="${git.info.result}" arg2="0" />
272 <length file="REVISION.XML" when="greater" length="1" />
273 </and>
274 </not>
275 </condition>
276 </target>
277 <target name="init-revision-fallback" if="git.fail" unless="skip-revision">
278 <tstamp>
279 <format property="current.time" pattern="yyyy-MM-dd'T'HH:mm:ss.SSS" />
280 </tstamp>
281 <echo file="REVISION.XML"><![CDATA[<info><entry><commit revision="UNKNOWN"><date>${current.time}</date></commit></entry></info>]]></echo>
282 </target>
283 <target name="revision" depends="init-svn-revision-xml, init-git-svn-revision-xml, init-git-revision-xml, init-revision-fallback" unless="skip-revision">
284 <xmlproperty file="REVISION.XML" prefix="version" keepRoot="false" collapseAttributes="true"/>
285 <delete file="REVISION.XML"/>
286 </target>
287 <!--
288 **********************************************************
289 ** clean - clean up the build environment
290 **********************************************************
291 -->
292 <target name="clean">
293 <delete dir="${plugin.build.dir}"/>
294 <delete file="${plugin.jar}"/>
295 </target>
296 <!--
297 **********************************************************
298 ** install - install the plugin in your local JOSM installation
299 **********************************************************
300 -->
301 <target name="install" depends="dist">
302 <property environment="env"/>
303 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins">
304 <and>
305 <os family="windows"/>
306 </and>
307 </condition>
308 <condition property="josm.plugins.dir" value="${user.home}/Library/JOSM/plugins">
309 <and>
310 <os family="mac"/>
311 </and>
312 </condition>
313 <condition property="josm.plugins.dir" value="${user.home}/.josm/plugins">
314 <and>
315 <not><os family="windows"/></not>
316 <not><os family="mac"/></not>
317 </and>
318 </condition>
319 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
320 </target>
321 <!--
322 ************************** Publishing the plugin ***********************************
323 -->
324 <!--
325 ** extracts the JOSM release for the JOSM version in ../core and saves it in the
326 ** property ${coreversion.info.entry.revision}
327 **
328 -->
329 <target name="core-info">
330 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
331 <env key="LANG" value="C"/>
332 <arg value="info"/>
333 <arg value="--xml"/>
334 <arg value="../../core"/>
335 </exec>
336 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
337 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
338 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
339 <delete file="core.info.xml"/>
340 </target>
341 <!--
342 ** commits the source tree for this plugin
343 -->
344 <target name="commit-current">
345 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
346 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
347 <env key="LANG" value="C"/>
348 <arg value="commit"/>
349 <arg value="-m"/>
350 <arg value="${commit.message}"/>
351 <arg value="."/>
352 </exec>
353 </target>
354 <!--
355 ** updates (svn up) the source tree for this plugin
356 -->
357 <target name="update-current">
358 <echo>Updating plugin source ...</echo>
359 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
360 <env key="LANG" value="C"/>
361 <arg value="up"/>
362 <arg value="."/>
363 </exec>
364 <echo>Updating ${plugin.jar} ...</echo>
365 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
366 <env key="LANG" value="C"/>
367 <arg value="up"/>
368 <arg value="../dist/${plugin.jar}"/>
369 </exec>
370 </target>
371 <!--
372 ** commits the plugin.jar
373 -->
374 <target name="commit-dist">
375 <echo>
376 ***** Properties of published ${plugin.jar} *****
377 Commit message : '${commit.message}'
378 Plugin-Mainversion: ${plugin.main.version}
379 JOSM build version: ${coreversion.info.entry.revision}
380 Plugin-Version : ${version.entry.commit.revision}
381 ***** / Properties of published ${plugin.jar} *****
382
383 Now commiting ${plugin.jar} ...
384 </echo>
385 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
386 <env key="LANG" value="C"/>
387 <arg value="-m"/>
388 <arg value="${commit.message}"/>
389 <arg value="commit"/>
390 <arg value="${plugin.jar}"/>
391 </exec>
392 </target>
393 <!-- ** make sure svn is present as a command line tool ** -->
394 <target name="ensure-svn-present">
395 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
396 <env key="LANG" value="C"/>
397 <arg value="--version"/>
398 </exec>
399 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
400 <!-- return code not set at all? Most likely svn isn't installed -->
401 <condition>
402 <not>
403 <isset property="svn.exit.code"/>
404 </not>
405 </condition>
406 </fail>
407 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
408 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
409 <condition>
410 <isfailure code="${svn.exit.code}"/>
411 </condition>
412 </fail>
413 </target>
414
415 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
416 </target>
417
418 <path id="test.classpath">
419 <fileset dir="../00_core_test_lib">
420 <include name="**/*.jar"/>
421 </fileset>
422 <fileset dir="${plugin.test.dir}/lib" erroronmissingdir="no">
423 <include name="**/*.jar"/>
424 <exclude name="**/*-sources.jar"/>
425 <exclude name="**/*-javadoc.jar"/>
426 </fileset>
427 <fileset dir="lib" erroronmissingdir="no">
428 <include name="**/*.jar"/>
429 <exclude name="**/*-sources.jar"/>
430 <exclude name="**/*-javadoc.jar"/>
431 </fileset>
432 <pathelement path="${plugin.test.dir}/data"/>
433 <pathelement path="${josm.test.build.dir}/unit"/>
434 <pathelement path="${josm}"/>
435 <pathelement path="${plugin.jar}"/>
436 <pathelement path="${groovy.jar}"/>
437 <pathelement path="${annotations.jar}"/>
438 </path>
439 <macrodef name="init-test-preferences">
440 <sequential>
441 <copy file="../00_core_test_config/preferences.template.xml" tofile="../00_core_test_config/unit-josm.home/preferences.xml"/>
442 <replace file="../00_core_test_config/unit-josm.home/preferences.xml" encoding="UTF-8" token="@OSM_USERNAME@" value="${osm.username}"/>
443 <replace file="../00_core_test_config/unit-josm.home/preferences.xml" encoding="UTF-8" token="@OSM_PASSWORD@" value="${osm.password}"/>
444 </sequential>
445 </macrodef>
446 <target name="check-test">
447 <available file="${plugin.test.dir}" type="dir" property="test.present"/>
448 </target>
449 <target name="test-init" depends="check-test" if="test.present">
450 <mkdir dir="${plugin.test.dir}/build"/>
451 <mkdir dir="${plugin.test.dir}/build/unit"/>
452 <mkdir dir="${plugin.test.dir}/report"/>
453 <init-test-preferences/>
454 </target>
455 <target name="test-clean">
456 <delete dir="${plugin.test.dir}/build"/>
457 <delete dir="${plugin.test.dir}/report"/>
458 <delete file="${plugin.test.dir}/jacoco.exec" />
459 <delete file="../00_core_test_config/unit-josm.home/preferences.xml" />
460 <delete dir="../00_core_test_config/unit-josm.home/cache" failonerror="false"/>
461 </target>
462 <target name="test-compile" depends="test-init,dist" if="test.present">
463 <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpath="${groovy.jar}"/>
464 <sequential>
465 <groovyc srcdir="${plugin.test.dir}/unit" destdir="${plugin.test.dir}/build/unit" encoding="UTF-8">
466 <classpath>
467 <fileset refid="plugin.requires.jars"/>
468 <path refid="test.classpath"/>
469 </classpath>
470 <javac debug="on" encoding="UTF-8">
471 <compilerarg value="-Xlint:all"/>
472 <compilerarg value="-Xlint:-serial"/>
473 </javac>
474 </groovyc>
475 </sequential>
476 </target>
477 <target name="test" depends="dist, test-clean, test-compile" if="test.present"
478 description="Run unit tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
479 <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml" classpath="../00_core_tools/jacocoant.jar" />
480 <sequential>
481 <echo message="Running unit tests with JUnit"/>
482 <jacoco:coverage destfile="${plugin.test.dir}/jacoco.exec">
483 <junit printsummary="yes" fork="true" forkmode="once" dir="${basedir}">
484 <jvmarg value="-Dfile.encoding=UTF-8"/>
485 <sysproperty key="josm.home" value="../00_core_test_config/unit-josm.home"/>
486 <sysproperty key="josm.test.data" value="${plugin.test.dir}/data"/>
487 <sysproperty key="java.awt.headless" value="true"/>
488 <sysproperty key="suppressPermanentFailure" value="${suppressPermanentFailure}"/>
489 <classpath>
490 <fileset refid="plugin.requires.jars"/>
491 <path refid="test.classpath"/>
492 <pathelement path="${plugin.test.dir}/build/unit"/>
493 </classpath>
494 <formatter type="plain"/>
495 <formatter type="xml"/>
496 <batchtest fork="yes" todir="${plugin.test.dir}/report">
497 <fileset dir="${plugin.test.dir}/build/unit" includes="**/*Test.class"/>
498 </batchtest>
499 </junit>
500 </jacoco:coverage>
501 </sequential>
502 </target>
503
504 <target name="checkstyle">
505 <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties" classpath="${checkstyle.jar}"/>
506 <checkstyle config="../00_core_tools/checkstyle/josm_checks.xml">
507 <fileset dir="${basedir}/src" includes="**/*.java" excludes="com/google/**/*.java,
508 crosby/**/*.java,
509 edu/princeton/**/*.java,
510 net/boplicity/**/*.java,
511 org/apache/**/*.java,
512 org/dinopolis/**/*.java,
513 org/kaintoch/**/*.java,
514 org/marvinproject/**/*.java,
515 org/netbeans/**/*.java,
516 org/openstreetmap/josm/plugins/ohe/parser/**/*.java,
517 org/openstreetmap/josm/plugins/roadsigns/javacc/**/*.java,
518 org/osgeo/**/*.java,
519 pdfimport/pdfbox/operators/**/*.java
520 "/>
521 <fileset dir="${basedir}/test" includes="**/*.java" erroronmissingdir="false"/>
522 <formatter type="xml" toFile="checkstyle-josm-${ant.project.name}.xml"/>
523 </checkstyle>
524 </target>
525
526 <target name="findbugs" depends="dist">
527 <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${findbugs-ant.jar}"/>
528 <path id="findbugs-classpath">
529 <fileset dir="../00_core_tools/findbugs/">
530 <include name="*.jar"/>
531 </fileset>
532 </path>
533 <property name="findbugs-classpath" refid="findbugs-classpath"/>
534 <findbugs output="xml"
535 outputFile="findbugs-josm-${ant.project.name}.xml"
536 classpath="${findbugs-classpath}"
537 pluginList=""
538 excludeFilter="../findbugs-filter.xml"
539 effort="default"
540 reportLevel="low"
541 >
542 <auxClasspath refid="plugin.classpath" />
543 <sourcePath path="${basedir}/src" />
544 <class location="${plugin.jar}" />
545 </findbugs>
546 </target>
547
548 <target name="runjosm" depends="install">
549 <java jar="${josm}" fork="true"/>
550 </target>
551
552 <target name="profilejosm" depends="install">
553 <nbprofiledirect>
554 </nbprofiledirect>
555 <java jar="${josm}" fork="true">
556 <jvmarg value="${profiler.info.jvmargs.agent}"/>
557 </java>
558 </target>
559 <!--
560 ** shows a help text
561 -->
562 <target name="help">
563 <echo>
564 You can use following targets:
565 * dist This default target builds the plugin jar file
566 * clean Cleanup automatical created files
567 * test Run unit tests (if any)
568 * publish Checkin source code, build jar and checkin plugin jar
569 (requires proper entry for SVN commit message!)
570 * install Install the plugin in current system
571 * runjosm Install plugin and start josm
572 * profilejosm Install plugin and start josm in profiling mode
573
574 There are other targets, which usually should not be called manually.
575 </echo>
576 </target>
577</project>
Note: See TracBrowser for help on using the repository browser.