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

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

see #josm11390, see #josm12472 - Update to error-prone 2.0.11

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