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

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

update to checkstyle 7.1

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