Java poker implementation
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 32KB

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