Java IRC bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-impl.xml 34KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. *** GENERATED FROM project.xml - DO NOT EDIT ***
  4. *** EDIT ../build.xml INSTEAD ***
  5. For the purpose of easier reading the script
  6. is divided into following sections:
  7. - initialization
  8. - compilation
  9. - jar
  10. - execution
  11. - debugging
  12. - javadoc
  13. - junit compilation
  14. - junit execution
  15. - junit debugging
  16. - applet
  17. - cleanup
  18. -->
  19. <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="charliebravo-impl">
  20. <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
  21. <!--
  22. ======================
  23. INITIALIZATION SECTION
  24. ======================
  25. -->
  26. <target name="-pre-init">
  27. <!-- Empty placeholder for easier customization. -->
  28. <!-- You can override this target in the ../build.xml file. -->
  29. </target>
  30. <target depends="-pre-init" name="-init-private">
  31. <property file="nbproject/private/config.properties"/>
  32. <property file="nbproject/private/configs/${config}.properties"/>
  33. <property file="nbproject/private/private.properties"/>
  34. </target>
  35. <target depends="-pre-init,-init-private" name="-init-user">
  36. <property file="${user.properties.file}"/>
  37. <!-- The two properties below are usually overridden -->
  38. <!-- by the active platform. Just a fallback. -->
  39. <property name="default.javac.source" value="1.4"/>
  40. <property name="default.javac.target" value="1.4"/>
  41. </target>
  42. <target depends="-pre-init,-init-private,-init-user" name="-init-project">
  43. <property file="nbproject/configs/${config}.properties"/>
  44. <property file="nbproject/project.properties"/>
  45. </target>
  46. <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
  47. <available file="${manifest.file}" property="manifest.available"/>
  48. <condition property="manifest.available+main.class">
  49. <and>
  50. <isset property="manifest.available"/>
  51. <isset property="main.class"/>
  52. <not>
  53. <equals arg1="${main.class}" arg2="" trim="true"/>
  54. </not>
  55. </and>
  56. </condition>
  57. <condition property="manifest.available+main.class+mkdist.available">
  58. <and>
  59. <istrue value="${manifest.available+main.class}"/>
  60. <isset property="libs.CopyLibs.classpath"/>
  61. </and>
  62. </condition>
  63. <condition property="have.tests">
  64. <or>
  65. <available file="${test.src.dir}"/>
  66. </or>
  67. </condition>
  68. <condition property="have.sources">
  69. <or>
  70. <available file="${src.src3.dir}"/>
  71. <available file="${src.src2.dir}"/>
  72. <available file="${src.src.dir}"/>
  73. <available file="${src.dir}"/>
  74. </or>
  75. </condition>
  76. <condition property="netbeans.home+have.tests">
  77. <and>
  78. <isset property="netbeans.home"/>
  79. <isset property="have.tests"/>
  80. </and>
  81. </condition>
  82. <condition property="no.javadoc.preview">
  83. <and>
  84. <isset property="javadoc.preview"/>
  85. <isfalse value="${javadoc.preview}"/>
  86. </and>
  87. </condition>
  88. <property name="run.jvmargs" value=""/>
  89. <property name="javac.compilerargs" value=""/>
  90. <property name="work.dir" value="${basedir}"/>
  91. <condition property="no.deps">
  92. <and>
  93. <istrue value="${no.dependencies}"/>
  94. </and>
  95. </condition>
  96. <property name="javac.debug" value="true"/>
  97. <property name="javadoc.preview" value="true"/>
  98. <property name="application.args" value=""/>
  99. <property name="source.encoding" value="${file.encoding}"/>
  100. <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  101. <and>
  102. <isset property="javadoc.encoding"/>
  103. <not>
  104. <equals arg1="${javadoc.encoding}" arg2=""/>
  105. </not>
  106. </and>
  107. </condition>
  108. <property name="javadoc.encoding.used" value="${source.encoding}"/>
  109. <property name="includes" value="**"/>
  110. <property name="excludes" value=""/>
  111. <property name="do.depend" value="false"/>
  112. <condition property="do.depend.true">
  113. <istrue value="${do.depend}"/>
  114. </condition>
  115. <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
  116. <and>
  117. <isset property="jaxws.endorsed.dir"/>
  118. <available file="nbproject/jaxws-build.xml"/>
  119. </and>
  120. </condition>
  121. </target>
  122. <target name="-post-init">
  123. <!-- Empty placeholder for easier customization. -->
  124. <!-- You can override this target in the ../build.xml file. -->
  125. </target>
  126. <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  127. <fail unless="src.src3.dir">Must set src.src3.dir</fail>
  128. <fail unless="src.src2.dir">Must set src.src2.dir</fail>
  129. <fail unless="src.src.dir">Must set src.src.dir</fail>
  130. <fail unless="src.dir">Must set src.dir</fail>
  131. <fail unless="test.src.dir">Must set test.src.dir</fail>
  132. <fail unless="build.dir">Must set build.dir</fail>
  133. <fail unless="dist.dir">Must set dist.dir</fail>
  134. <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  135. <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  136. <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  137. <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  138. <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  139. <fail unless="dist.jar">Must set dist.jar</fail>
  140. </target>
  141. <target name="-init-macrodef-property">
  142. <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
  143. <attribute name="name"/>
  144. <attribute name="value"/>
  145. <sequential>
  146. <property name="@{name}" value="${@{value}}"/>
  147. </sequential>
  148. </macrodef>
  149. </target>
  150. <target name="-init-macrodef-javac">
  151. <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  152. <attribute default="${src.src3.dir}:${src.src2.dir}:${src.src.dir}:${src.dir}" name="srcdir"/>
  153. <attribute default="${build.classes.dir}" name="destdir"/>
  154. <attribute default="${javac.classpath}" name="classpath"/>
  155. <attribute default="${includes}" name="includes"/>
  156. <attribute default="${excludes}" name="excludes"/>
  157. <attribute default="${javac.debug}" name="debug"/>
  158. <attribute default="/does/not/exist" name="sourcepath"/>
  159. <element name="customize" optional="true"/>
  160. <sequential>
  161. <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
  162. <classpath>
  163. <path path="@{classpath}"/>
  164. </classpath>
  165. <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
  166. <customize/>
  167. </javac>
  168. </sequential>
  169. </macrodef>
  170. <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
  171. <attribute default="${src.src3.dir}:${src.src2.dir}:${src.src.dir}:${src.dir}" name="srcdir"/>
  172. <attribute default="${build.classes.dir}" name="destdir"/>
  173. <attribute default="${javac.classpath}" name="classpath"/>
  174. <sequential>
  175. <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
  176. <classpath>
  177. <path path="@{classpath}"/>
  178. </classpath>
  179. </depend>
  180. </sequential>
  181. </macrodef>
  182. <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
  183. <attribute default="${build.classes.dir}" name="destdir"/>
  184. <sequential>
  185. <fail unless="javac.includes">Must set javac.includes</fail>
  186. <pathconvert pathsep="," property="javac.includes.binary">
  187. <path>
  188. <filelist dir="@{destdir}" files="${javac.includes}"/>
  189. </path>
  190. <globmapper from="*.java" to="*.class"/>
  191. </pathconvert>
  192. <delete>
  193. <files includes="${javac.includes.binary}"/>
  194. </delete>
  195. </sequential>
  196. </macrodef>
  197. </target>
  198. <target name="-init-macrodef-junit">
  199. <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
  200. <attribute default="${includes}" name="includes"/>
  201. <attribute default="${excludes}" name="excludes"/>
  202. <attribute default="**" name="testincludes"/>
  203. <sequential>
  204. <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
  205. <batchtest todir="${build.test.results.dir}">
  206. <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  207. <filename name="@{testincludes}"/>
  208. </fileset>
  209. </batchtest>
  210. <classpath>
  211. <path path="${run.test.classpath}"/>
  212. </classpath>
  213. <syspropertyset>
  214. <propertyref prefix="test-sys-prop."/>
  215. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  216. </syspropertyset>
  217. <formatter type="brief" usefile="false"/>
  218. <formatter type="xml"/>
  219. <jvmarg line="${run.jvmargs}"/>
  220. </junit>
  221. </sequential>
  222. </macrodef>
  223. </target>
  224. <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  225. <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
  226. <attribute default="${main.class}" name="name"/>
  227. <attribute default="${debug.classpath}" name="classpath"/>
  228. <attribute default="" name="stopclassname"/>
  229. <sequential>
  230. <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
  231. <classpath>
  232. <path path="@{classpath}"/>
  233. </classpath>
  234. </nbjpdastart>
  235. </sequential>
  236. </macrodef>
  237. <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
  238. <attribute default="${build.classes.dir}" name="dir"/>
  239. <sequential>
  240. <nbjpdareload>
  241. <fileset dir="@{dir}" includes="${fix.classes}">
  242. <include name="${fix.includes}*.class"/>
  243. </fileset>
  244. </nbjpdareload>
  245. </sequential>
  246. </macrodef>
  247. </target>
  248. <target name="-init-debug-args">
  249. <property name="version-output" value="java version &quot;${ant.java.version}"/>
  250. <condition property="have-jdk-older-than-1.4">
  251. <or>
  252. <contains string="${version-output}" substring="java version &quot;1.0"/>
  253. <contains string="${version-output}" substring="java version &quot;1.1"/>
  254. <contains string="${version-output}" substring="java version &quot;1.2"/>
  255. <contains string="${version-output}" substring="java version &quot;1.3"/>
  256. </or>
  257. </condition>
  258. <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  259. <istrue value="${have-jdk-older-than-1.4}"/>
  260. </condition>
  261. <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  262. <os family="windows"/>
  263. </condition>
  264. <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  265. <isset property="debug.transport"/>
  266. </condition>
  267. </target>
  268. <target depends="-init-debug-args" name="-init-macrodef-debug">
  269. <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  270. <attribute default="${main.class}" name="classname"/>
  271. <attribute default="${debug.classpath}" name="classpath"/>
  272. <element name="customize" optional="true"/>
  273. <sequential>
  274. <java classname="@{classname}" dir="${work.dir}" fork="true">
  275. <jvmarg line="${debug-args-line}"/>
  276. <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  277. <jvmarg line="${run.jvmargs}"/>
  278. <classpath>
  279. <path path="@{classpath}"/>
  280. </classpath>
  281. <syspropertyset>
  282. <propertyref prefix="run-sys-prop."/>
  283. <mapper from="run-sys-prop.*" to="*" type="glob"/>
  284. </syspropertyset>
  285. <customize/>
  286. </java>
  287. </sequential>
  288. </macrodef>
  289. </target>
  290. <target name="-init-macrodef-java">
  291. <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
  292. <attribute default="${main.class}" name="classname"/>
  293. <element name="customize" optional="true"/>
  294. <sequential>
  295. <java classname="@{classname}" dir="${work.dir}" fork="true">
  296. <jvmarg line="${run.jvmargs}"/>
  297. <classpath>
  298. <path path="${run.classpath}"/>
  299. </classpath>
  300. <syspropertyset>
  301. <propertyref prefix="run-sys-prop."/>
  302. <mapper from="run-sys-prop.*" to="*" type="glob"/>
  303. </syspropertyset>
  304. <customize/>
  305. </java>
  306. </sequential>
  307. </macrodef>
  308. </target>
  309. <target name="-init-presetdef-jar">
  310. <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
  311. <jar compress="${jar.compress}" jarfile="${dist.jar}">
  312. <j2seproject1:fileset dir="${build.classes.dir}"/>
  313. </jar>
  314. </presetdef>
  315. </target>
  316. <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
  317. <!--
  318. ===================
  319. COMPILATION SECTION
  320. ===================
  321. -->
  322. <target depends="init" name="deps-jar" unless="no.deps"/>
  323. <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
  324. <target depends="init" name="-check-automatic-build">
  325. <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
  326. </target>
  327. <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
  328. <antcall target="clean"/>
  329. </target>
  330. <target depends="init,deps-jar" name="-pre-pre-compile">
  331. <mkdir dir="${build.classes.dir}"/>
  332. </target>
  333. <target name="-pre-compile">
  334. <!-- Empty placeholder for easier customization. -->
  335. <!-- You can override this target in the ../build.xml file. -->
  336. </target>
  337. <target if="do.depend.true" name="-compile-depend">
  338. <j2seproject3:depend/>
  339. </target>
  340. <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
  341. <j2seproject3:javac/>
  342. <copy todir="${build.classes.dir}">
  343. <fileset dir="${src.src3.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  344. <fileset dir="${src.src2.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  345. <fileset dir="${src.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  346. <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  347. </copy>
  348. </target>
  349. <target name="-post-compile">
  350. <!-- Empty placeholder for easier customization. -->
  351. <!-- You can override this target in the ../build.xml file. -->
  352. </target>
  353. <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  354. <target name="-pre-compile-single">
  355. <!-- Empty placeholder for easier customization. -->
  356. <!-- You can override this target in the ../build.xml file. -->
  357. </target>
  358. <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  359. <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  360. <j2seproject3:force-recompile/>
  361. <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.src3.dir}:${src.src2.dir}:${src.src.dir}:${src.dir}"/>
  362. </target>
  363. <target name="-post-compile-single">
  364. <!-- Empty placeholder for easier customization. -->
  365. <!-- You can override this target in the ../build.xml file. -->
  366. </target>
  367. <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  368. <!--
  369. ====================
  370. JAR BUILDING SECTION
  371. ====================
  372. -->
  373. <target depends="init" name="-pre-pre-jar">
  374. <dirname file="${dist.jar}" property="dist.jar.dir"/>
  375. <mkdir dir="${dist.jar.dir}"/>
  376. </target>
  377. <target name="-pre-jar">
  378. <!-- Empty placeholder for easier customization. -->
  379. <!-- You can override this target in the ../build.xml file. -->
  380. </target>
  381. <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
  382. <j2seproject1:jar/>
  383. </target>
  384. <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
  385. <j2seproject1:jar manifest="${manifest.file}"/>
  386. </target>
  387. <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
  388. <j2seproject1:jar manifest="${manifest.file}">
  389. <j2seproject1:manifest>
  390. <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
  391. </j2seproject1:manifest>
  392. </j2seproject1:jar>
  393. <echo>To run this application from the command line without Ant, try:</echo>
  394. <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  395. <property location="${dist.jar}" name="dist.jar.resolved"/>
  396. <pathconvert property="run.classpath.with.dist.jar">
  397. <path path="${run.classpath}"/>
  398. <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
  399. </pathconvert>
  400. <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
  401. </target>
  402. <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
  403. <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  404. <pathconvert property="run.classpath.without.build.classes.dir">
  405. <path path="${run.classpath}"/>
  406. <map from="${build.classes.dir.resolved}" to=""/>
  407. </pathconvert>
  408. <pathconvert pathsep=" " property="jar.classpath">
  409. <path path="${run.classpath.without.build.classes.dir}"/>
  410. <chainedmapper>
  411. <flattenmapper/>
  412. <globmapper from="*" to="lib/*"/>
  413. </chainedmapper>
  414. </pathconvert>
  415. <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
  416. <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
  417. <fileset dir="${build.classes.dir}"/>
  418. <manifest>
  419. <attribute name="Main-Class" value="${main.class}"/>
  420. <attribute name="Class-Path" value="${jar.classpath}"/>
  421. </manifest>
  422. </copylibs>
  423. <echo>To run this application from the command line without Ant, try:</echo>
  424. <property location="${dist.jar}" name="dist.jar.resolved"/>
  425. <echo>java -jar "${dist.jar.resolved}"</echo>
  426. </target>
  427. <target name="-post-jar">
  428. <!-- Empty placeholder for easier customization. -->
  429. <!-- You can override this target in the ../build.xml file. -->
  430. </target>
  431. <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
  432. <!--
  433. =================
  434. EXECUTION SECTION
  435. =================
  436. -->
  437. <target depends="init,compile" description="Run a main class." name="run">
  438. <j2seproject1:java>
  439. <customize>
  440. <arg line="${application.args}"/>
  441. </customize>
  442. </j2seproject1:java>
  443. </target>
  444. <target name="-do-not-recompile">
  445. <property name="javac.includes.binary" value=""/>
  446. </target>
  447. <target depends="init,-do-not-recompile,compile-single" name="run-single">
  448. <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  449. <j2seproject1:java classname="${run.class}"/>
  450. </target>
  451. <!--
  452. =================
  453. DEBUGGING SECTION
  454. =================
  455. -->
  456. <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  457. <j2seproject1:nbjpdastart name="${debug.class}"/>
  458. </target>
  459. <target depends="init,compile" name="-debug-start-debuggee">
  460. <j2seproject3:debug>
  461. <customize>
  462. <arg line="${application.args}"/>
  463. </customize>
  464. </j2seproject3:debug>
  465. </target>
  466. <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
  467. <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
  468. <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
  469. </target>
  470. <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
  471. <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  472. <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  473. <j2seproject3:debug classname="${debug.class}"/>
  474. </target>
  475. <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
  476. <target depends="init" name="-pre-debug-fix">
  477. <fail unless="fix.includes">Must set fix.includes</fail>
  478. <property name="javac.includes" value="${fix.includes}.java"/>
  479. </target>
  480. <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  481. <j2seproject1:nbjpdareload/>
  482. </target>
  483. <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  484. <!--
  485. ===============
  486. JAVADOC SECTION
  487. ===============
  488. -->
  489. <target depends="init" name="-javadoc-build">
  490. <mkdir dir="${dist.javadoc.dir}"/>
  491. <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
  492. <classpath>
  493. <path path="${javac.classpath}"/>
  494. </classpath>
  495. <fileset dir="${src.src3.dir}" excludes="${excludes}" includes="${includes}">
  496. <filename name="**/*.java"/>
  497. </fileset>
  498. <fileset dir="${src.src2.dir}" excludes="${excludes}" includes="${includes}">
  499. <filename name="**/*.java"/>
  500. </fileset>
  501. <fileset dir="${src.src.dir}" excludes="${excludes}" includes="${includes}">
  502. <filename name="**/*.java"/>
  503. </fileset>
  504. <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  505. <filename name="**/*.java"/>
  506. </fileset>
  507. </javadoc>
  508. </target>
  509. <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
  510. <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  511. </target>
  512. <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
  513. <!--
  514. =========================
  515. JUNIT COMPILATION SECTION
  516. =========================
  517. -->
  518. <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  519. <mkdir dir="${build.test.classes.dir}"/>
  520. </target>
  521. <target name="-pre-compile-test">
  522. <!-- Empty placeholder for easier customization. -->
  523. <!-- You can override this target in the ../build.xml file. -->
  524. </target>
  525. <target if="do.depend.true" name="-compile-test-depend">
  526. <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  527. </target>
  528. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
  529. <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  530. <copy todir="${build.test.classes.dir}">
  531. <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  532. </copy>
  533. </target>
  534. <target name="-post-compile-test">
  535. <!-- Empty placeholder for easier customization. -->
  536. <!-- You can override this target in the ../build.xml file. -->
  537. </target>
  538. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  539. <target name="-pre-compile-test-single">
  540. <!-- Empty placeholder for easier customization. -->
  541. <!-- You can override this target in the ../build.xml file. -->
  542. </target>
  543. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  544. <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  545. <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
  546. <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
  547. <copy todir="${build.test.classes.dir}">
  548. <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  549. </copy>
  550. </target>
  551. <target name="-post-compile-test-single">
  552. <!-- Empty placeholder for easier customization. -->
  553. <!-- You can override this target in the ../build.xml file. -->
  554. </target>
  555. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  556. <!--
  557. =======================
  558. JUNIT EXECUTION SECTION
  559. =======================
  560. -->
  561. <target depends="init" if="have.tests" name="-pre-test-run">
  562. <mkdir dir="${build.test.results.dir}"/>
  563. </target>
  564. <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  565. <j2seproject3:junit testincludes="**/*Test.java"/>
  566. </target>
  567. <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  568. <fail if="tests.failed">Some tests failed; see details above.</fail>
  569. </target>
  570. <target depends="init" if="have.tests" name="test-report"/>
  571. <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  572. <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  573. <target depends="init" if="have.tests" name="-pre-test-run-single">
  574. <mkdir dir="${build.test.results.dir}"/>
  575. </target>
  576. <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  577. <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  578. <j2seproject3:junit excludes="" includes="${test.includes}"/>
  579. </target>
  580. <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  581. <fail if="tests.failed">Some tests failed; see details above.</fail>
  582. </target>
  583. <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
  584. <!--
  585. =======================
  586. JUNIT DEBUGGING SECTION
  587. =======================
  588. -->
  589. <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
  590. <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  591. <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
  592. <delete file="${test.report.file}"/>
  593. <mkdir dir="${build.test.results.dir}"/>
  594. <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
  595. <customize>
  596. <syspropertyset>
  597. <propertyref prefix="test-sys-prop."/>
  598. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  599. </syspropertyset>
  600. <arg value="${test.class}"/>
  601. <arg value="showoutput=true"/>
  602. <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
  603. <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
  604. </customize>
  605. </j2seproject3:debug>
  606. </target>
  607. <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  608. <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  609. </target>
  610. <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  611. <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  612. <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  613. </target>
  614. <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  615. <!--
  616. =========================
  617. APPLET EXECUTION SECTION
  618. =========================
  619. -->
  620. <target depends="init,compile-single" name="run-applet">
  621. <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  622. <j2seproject1:java classname="sun.applet.AppletViewer">
  623. <customize>
  624. <arg value="${applet.url}"/>
  625. </customize>
  626. </j2seproject1:java>
  627. </target>
  628. <!--
  629. =========================
  630. APPLET DEBUGGING SECTION
  631. =========================
  632. -->
  633. <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
  634. <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  635. <j2seproject3:debug classname="sun.applet.AppletViewer">
  636. <customize>
  637. <arg value="${applet.url}"/>
  638. </customize>
  639. </j2seproject3:debug>
  640. </target>
  641. <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
  642. <!--
  643. ===============
  644. CLEANUP SECTION
  645. ===============
  646. -->
  647. <target depends="init" name="deps-clean" unless="no.deps"/>
  648. <target depends="init" name="-do-clean">
  649. <delete dir="${build.dir}"/>
  650. <delete dir="${dist.dir}"/>
  651. </target>
  652. <target name="-post-clean">
  653. <!-- Empty placeholder for easier customization. -->
  654. <!-- You can override this target in the ../build.xml file. -->
  655. </target>
  656. <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
  657. </project>