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

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