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 36KB

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