/Videojuego/nbproject/build-impl.xml

http://videojuego2d2d2d2d2d2d.googlecode.com/ · XML · 891 lines · 783 code · 0 blank · 108 comment · 0 complexity · aab434226d61e815103c4f22abaf7a85 MD5 · raw file

  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="Videojuego-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. <available file="${application.splash}" property="splashscreen.available"/>
  56. <condition property="main.class.available">
  57. <and>
  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">
  65. <and>
  66. <isset property="manifest.available"/>
  67. <isset property="main.class.available"/>
  68. </and>
  69. </condition>
  70. <condition property="do.mkdist">
  71. <and>
  72. <isset property="libs.CopyLibs.classpath"/>
  73. <not>
  74. <istrue value="${mkdist.disabled}"/>
  75. </not>
  76. </and>
  77. </condition>
  78. <condition property="manifest.available+main.class+mkdist.available">
  79. <and>
  80. <istrue value="${manifest.available+main.class}"/>
  81. <isset property="do.mkdist"/>
  82. </and>
  83. </condition>
  84. <condition property="manifest.available+main.class+mkdist.available+splashscreen.available">
  85. <and>
  86. <istrue value="${manifest.available+main.class+mkdist.available}"/>
  87. <istrue value="${splashscreen.available}"/>
  88. </and>
  89. </condition>
  90. <condition property="do.archive">
  91. <not>
  92. <istrue value="${jar.archive.disabled}"/>
  93. </not>
  94. </condition>
  95. <condition property="do.archive+manifest.available">
  96. <and>
  97. <isset property="manifest.available"/>
  98. <istrue value="${do.archive}"/>
  99. </and>
  100. </condition>
  101. <condition property="do.archive+manifest.available+main.class">
  102. <and>
  103. <istrue value="${manifest.available+main.class}"/>
  104. <istrue value="${do.archive}"/>
  105. </and>
  106. </condition>
  107. <condition property="do.archive+manifest.available+main.class+mkdist.available">
  108. <and>
  109. <istrue value="${manifest.available+main.class+mkdist.available}"/>
  110. <istrue value="${do.archive}"/>
  111. </and>
  112. </condition>
  113. <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available">
  114. <and>
  115. <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/>
  116. <istrue value="${do.archive}"/>
  117. </and>
  118. </condition>
  119. <condition property="have.tests">
  120. <or>
  121. <available file="${test.src.dir}"/>
  122. </or>
  123. </condition>
  124. <condition property="have.sources">
  125. <or>
  126. <available file="${src.dir}"/>
  127. </or>
  128. </condition>
  129. <condition property="netbeans.home+have.tests">
  130. <and>
  131. <isset property="netbeans.home"/>
  132. <isset property="have.tests"/>
  133. </and>
  134. </condition>
  135. <condition property="no.javadoc.preview">
  136. <and>
  137. <isset property="javadoc.preview"/>
  138. <isfalse value="${javadoc.preview}"/>
  139. </and>
  140. </condition>
  141. <property name="run.jvmargs" value=""/>
  142. <property name="javac.compilerargs" value=""/>
  143. <property name="work.dir" value="${basedir}"/>
  144. <condition property="no.deps">
  145. <and>
  146. <istrue value="${no.dependencies}"/>
  147. </and>
  148. </condition>
  149. <property name="javac.debug" value="true"/>
  150. <property name="javadoc.preview" value="true"/>
  151. <property name="application.args" value=""/>
  152. <property name="source.encoding" value="${file.encoding}"/>
  153. <property name="runtime.encoding" value="${source.encoding}"/>
  154. <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  155. <and>
  156. <isset property="javadoc.encoding"/>
  157. <not>
  158. <equals arg1="${javadoc.encoding}" arg2=""/>
  159. </not>
  160. </and>
  161. </condition>
  162. <property name="javadoc.encoding.used" value="${source.encoding}"/>
  163. <property name="includes" value="**"/>
  164. <property name="excludes" value=""/>
  165. <property name="do.depend" value="false"/>
  166. <condition property="do.depend.true">
  167. <istrue value="${do.depend}"/>
  168. </condition>
  169. <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
  170. <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
  171. <length length="0" string="${endorsed.classpath}" when="greater"/>
  172. </condition>
  173. <property name="javac.fork" value="false"/>
  174. <property name="jar.index" value="false"/>
  175. <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
  176. </target>
  177. <target name="-post-init">
  178. <!-- Empty placeholder for easier customization. -->
  179. <!-- You can override this target in the ../build.xml file. -->
  180. </target>
  181. <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  182. <fail unless="src.dir">Must set src.dir</fail>
  183. <fail unless="test.src.dir">Must set test.src.dir</fail>
  184. <fail unless="build.dir">Must set build.dir</fail>
  185. <fail unless="dist.dir">Must set dist.dir</fail>
  186. <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  187. <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  188. <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  189. <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  190. <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  191. <fail unless="dist.jar">Must set dist.jar</fail>
  192. </target>
  193. <target name="-init-macrodef-property">
  194. <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
  195. <attribute name="name"/>
  196. <attribute name="value"/>
  197. <sequential>
  198. <property name="@{name}" value="${@{value}}"/>
  199. </sequential>
  200. </macrodef>
  201. </target>
  202. <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
  203. <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  204. <attribute default="${src.dir}" name="srcdir"/>
  205. <attribute default="${build.classes.dir}" name="destdir"/>
  206. <attribute default="${javac.classpath}" name="classpath"/>
  207. <attribute default="${javac.processorpath}" name="processorpath"/>
  208. <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  209. <attribute default="${includes}" name="includes"/>
  210. <attribute default="${excludes}" name="excludes"/>
  211. <attribute default="${javac.debug}" name="debug"/>
  212. <attribute default="${empty.dir}" name="sourcepath"/>
  213. <attribute default="${empty.dir}" name="gensrcdir"/>
  214. <element name="customize" optional="true"/>
  215. <sequential>
  216. <property location="${build.dir}/empty" name="empty.dir"/>
  217. <mkdir dir="${empty.dir}"/>
  218. <mkdir dir="@{apgeneratedsrcdir}"/>
  219. <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
  220. <src>
  221. <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  222. <include name="*"/>
  223. </dirset>
  224. </src>
  225. <classpath>
  226. <path path="@{classpath}"/>
  227. </classpath>
  228. <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  229. <compilerarg line="${javac.compilerargs}"/>
  230. <compilerarg value="-processorpath"/>
  231. <compilerarg path="@{processorpath}:${empty.dir}"/>
  232. <compilerarg line="${ap.processors.internal}"/>
  233. <compilerarg line="${annotation.processing.processor.options}"/>
  234. <compilerarg value="-s"/>
  235. <compilerarg path="@{apgeneratedsrcdir}"/>
  236. <compilerarg line="${ap.proc.none.internal}"/>
  237. <customize/>
  238. </javac>
  239. </sequential>
  240. </macrodef>
  241. </target>
  242. <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
  243. <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  244. <attribute default="${src.dir}" name="srcdir"/>
  245. <attribute default="${build.classes.dir}" name="destdir"/>
  246. <attribute default="${javac.classpath}" name="classpath"/>
  247. <attribute default="${javac.processorpath}" name="processorpath"/>
  248. <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  249. <attribute default="${includes}" name="includes"/>
  250. <attribute default="${excludes}" name="excludes"/>
  251. <attribute default="${javac.debug}" name="debug"/>
  252. <attribute default="${empty.dir}" name="sourcepath"/>
  253. <attribute default="${empty.dir}" name="gensrcdir"/>
  254. <element name="customize" optional="true"/>
  255. <sequential>
  256. <property location="${build.dir}/empty" name="empty.dir"/>
  257. <mkdir dir="${empty.dir}"/>
  258. <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
  259. <src>
  260. <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  261. <include name="*"/>
  262. </dirset>
  263. </src>
  264. <classpath>
  265. <path path="@{classpath}"/>
  266. </classpath>
  267. <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  268. <compilerarg line="${javac.compilerargs}"/>
  269. <customize/>
  270. </javac>
  271. </sequential>
  272. </macrodef>
  273. </target>
  274. <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
  275. <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
  276. <attribute default="${src.dir}" name="srcdir"/>
  277. <attribute default="${build.classes.dir}" name="destdir"/>
  278. <attribute default="${javac.classpath}" name="classpath"/>
  279. <sequential>
  280. <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
  281. <classpath>
  282. <path path="@{classpath}"/>
  283. </classpath>
  284. </depend>
  285. </sequential>
  286. </macrodef>
  287. <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
  288. <attribute default="${build.classes.dir}" name="destdir"/>
  289. <sequential>
  290. <fail unless="javac.includes">Must set javac.includes</fail>
  291. <pathconvert pathsep="," property="javac.includes.binary">
  292. <path>
  293. <filelist dir="@{destdir}" files="${javac.includes}"/>
  294. </path>
  295. <globmapper from="*.java" to="*.class"/>
  296. </pathconvert>
  297. <delete>
  298. <files includes="${javac.includes.binary}"/>
  299. </delete>
  300. </sequential>
  301. </macrodef>
  302. </target>
  303. <target name="-init-macrodef-junit">
  304. <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
  305. <attribute default="${includes}" name="includes"/>
  306. <attribute default="${excludes}" name="excludes"/>
  307. <attribute default="**" name="testincludes"/>
  308. <sequential>
  309. <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
  310. <batchtest todir="${build.test.results.dir}">
  311. <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  312. <filename name="@{testincludes}"/>
  313. </fileset>
  314. </batchtest>
  315. <classpath>
  316. <path path="${run.test.classpath}"/>
  317. </classpath>
  318. <syspropertyset>
  319. <propertyref prefix="test-sys-prop."/>
  320. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  321. </syspropertyset>
  322. <formatter type="brief" usefile="false"/>
  323. <formatter type="xml"/>
  324. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  325. <jvmarg line="${run.jvmargs}"/>
  326. </junit>
  327. </sequential>
  328. </macrodef>
  329. </target>
  330. <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  331. <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
  332. <attribute default="${main.class}" name="name"/>
  333. <attribute default="${debug.classpath}" name="classpath"/>
  334. <attribute default="" name="stopclassname"/>
  335. <sequential>
  336. <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
  337. <classpath>
  338. <path path="@{classpath}"/>
  339. </classpath>
  340. </nbjpdastart>
  341. </sequential>
  342. </macrodef>
  343. <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
  344. <attribute default="${build.classes.dir}" name="dir"/>
  345. <sequential>
  346. <nbjpdareload>
  347. <fileset dir="@{dir}" includes="${fix.classes}">
  348. <include name="${fix.includes}*.class"/>
  349. </fileset>
  350. </nbjpdareload>
  351. </sequential>
  352. </macrodef>
  353. </target>
  354. <target name="-init-debug-args">
  355. <property name="version-output" value="java version &quot;${ant.java.version}"/>
  356. <condition property="have-jdk-older-than-1.4">
  357. <or>
  358. <contains string="${version-output}" substring="java version &quot;1.0"/>
  359. <contains string="${version-output}" substring="java version &quot;1.1"/>
  360. <contains string="${version-output}" substring="java version &quot;1.2"/>
  361. <contains string="${version-output}" substring="java version &quot;1.3"/>
  362. </or>
  363. </condition>
  364. <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  365. <istrue value="${have-jdk-older-than-1.4}"/>
  366. </condition>
  367. <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  368. <os family="windows"/>
  369. </condition>
  370. <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  371. <isset property="debug.transport"/>
  372. </condition>
  373. </target>
  374. <target depends="-init-debug-args" name="-init-macrodef-debug">
  375. <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  376. <attribute default="${main.class}" name="classname"/>
  377. <attribute default="${debug.classpath}" name="classpath"/>
  378. <element name="customize" optional="true"/>
  379. <sequential>
  380. <java classname="@{classname}" dir="${work.dir}" fork="true">
  381. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  382. <jvmarg line="${debug-args-line}"/>
  383. <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  384. <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  385. <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  386. <jvmarg line="${run.jvmargs}"/>
  387. <classpath>
  388. <path path="@{classpath}"/>
  389. </classpath>
  390. <syspropertyset>
  391. <propertyref prefix="run-sys-prop."/>
  392. <mapper from="run-sys-prop.*" to="*" type="glob"/>
  393. </syspropertyset>
  394. <customize/>
  395. </java>
  396. </sequential>
  397. </macrodef>
  398. </target>
  399. <target name="-init-macrodef-java">
  400. <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
  401. <attribute default="${main.class}" name="classname"/>
  402. <attribute default="${run.classpath}" name="classpath"/>
  403. <element name="customize" optional="true"/>
  404. <sequential>
  405. <java classname="@{classname}" dir="${work.dir}" fork="true">
  406. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  407. <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  408. <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  409. <jvmarg line="${run.jvmargs}"/>
  410. <classpath>
  411. <path path="@{classpath}"/>
  412. </classpath>
  413. <syspropertyset>
  414. <propertyref prefix="run-sys-prop."/>
  415. <mapper from="run-sys-prop.*" to="*" type="glob"/>
  416. </syspropertyset>
  417. <customize/>
  418. </java>
  419. </sequential>
  420. </macrodef>
  421. </target>
  422. <target name="-init-macrodef-copylibs">
  423. <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
  424. <element name="customize" optional="true"/>
  425. <sequential>
  426. <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  427. <pathconvert property="run.classpath.without.build.classes.dir">
  428. <path path="${run.classpath}"/>
  429. <map from="${build.classes.dir.resolved}" to=""/>
  430. </pathconvert>
  431. <pathconvert pathsep=" " property="jar.classpath">
  432. <path path="${run.classpath.without.build.classes.dir}"/>
  433. <chainedmapper>
  434. <flattenmapper/>
  435. <globmapper from="*" to="lib/*"/>
  436. </chainedmapper>
  437. </pathconvert>
  438. <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
  439. <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
  440. <fileset dir="${build.classes.dir}"/>
  441. <manifest>
  442. <attribute name="Class-Path" value="${jar.classpath}"/>
  443. <customize/>
  444. </manifest>
  445. </copylibs>
  446. </sequential>
  447. </macrodef>
  448. </target>
  449. <target name="-init-presetdef-jar">
  450. <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
  451. <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
  452. <j2seproject1:fileset dir="${build.classes.dir}"/>
  453. </jar>
  454. </presetdef>
  455. </target>
  456. <target name="-init-ap-cmdline-properties">
  457. <property name="annotation.processing.enabled" value="true"/>
  458. <property name="annotation.processing.processors.list" value=""/>
  459. <property name="annotation.processing.processor.options" value=""/>
  460. <property name="annotation.processing.run.all.processors" value="true"/>
  461. <property name="javac.processorpath" value="${javac.classpath}"/>
  462. <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
  463. <condition property="ap.supported.internal" value="true">
  464. <not>
  465. <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
  466. </not>
  467. </condition>
  468. </target>
  469. <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
  470. <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
  471. <isfalse value="${annotation.processing.run.all.processors}"/>
  472. </condition>
  473. <condition else="" property="ap.proc.none.internal" value="-proc:none">
  474. <isfalse value="${annotation.processing.enabled}"/>
  475. </condition>
  476. </target>
  477. <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
  478. <property name="ap.cmd.line.internal" value=""/>
  479. </target>
  480. <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,-init-ap-cmdline" name="init"/>
  481. <!--
  482. ===================
  483. COMPILATION SECTION
  484. ===================
  485. -->
  486. <target name="-deps-jar-init" unless="built-jar.properties">
  487. <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
  488. <delete file="${built-jar.properties}" quiet="true"/>
  489. </target>
  490. <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
  491. <echo level="warn" message="Cycle detected: Videojuego was already built"/>
  492. </target>
  493. <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
  494. <mkdir dir="${build.dir}"/>
  495. <touch file="${built-jar.properties}" verbose="false"/>
  496. <property file="${built-jar.properties}" prefix="already.built.jar."/>
  497. <antcall target="-warn-already-built-jar"/>
  498. <propertyfile file="${built-jar.properties}">
  499. <entry key="${basedir}" value=""/>
  500. </propertyfile>
  501. </target>
  502. <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
  503. <target depends="init" name="-check-automatic-build">
  504. <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
  505. </target>
  506. <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
  507. <antcall target="clean"/>
  508. </target>
  509. <target depends="init,deps-jar" name="-pre-pre-compile">
  510. <mkdir dir="${build.classes.dir}"/>
  511. </target>
  512. <target name="-pre-compile">
  513. <!-- Empty placeholder for easier customization. -->
  514. <!-- You can override this target in the ../build.xml file. -->
  515. </target>
  516. <target if="do.depend.true" name="-compile-depend">
  517. <pathconvert property="build.generated.subdirs">
  518. <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  519. <include name="*"/>
  520. </dirset>
  521. </pathconvert>
  522. <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
  523. </target>
  524. <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
  525. <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
  526. <copy todir="${build.classes.dir}">
  527. <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  528. </copy>
  529. </target>
  530. <target if="has.persistence.xml" name="-copy-persistence-xml">
  531. <mkdir dir="${build.classes.dir}/META-INF"/>
  532. <copy todir="${build.classes.dir}/META-INF">
  533. <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
  534. </copy>
  535. </target>
  536. <target name="-post-compile">
  537. <!-- Empty placeholder for easier customization. -->
  538. <!-- You can override this target in the ../build.xml file. -->
  539. </target>
  540. <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  541. <target name="-pre-compile-single">
  542. <!-- Empty placeholder for easier customization. -->
  543. <!-- You can override this target in the ../build.xml file. -->
  544. </target>
  545. <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  546. <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  547. <j2seproject3:force-recompile/>
  548. <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
  549. </target>
  550. <target name="-post-compile-single">
  551. <!-- Empty placeholder for easier customization. -->
  552. <!-- You can override this target in the ../build.xml file. -->
  553. </target>
  554. <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  555. <!--
  556. ====================
  557. JAR BUILDING SECTION
  558. ====================
  559. -->
  560. <target depends="init" name="-pre-pre-jar">
  561. <dirname file="${dist.jar}" property="dist.jar.dir"/>
  562. <mkdir dir="${dist.jar.dir}"/>
  563. </target>
  564. <target name="-pre-jar">
  565. <!-- Empty placeholder for easier customization. -->
  566. <!-- You can override this target in the ../build.xml file. -->
  567. </target>
  568. <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available">
  569. <j2seproject1:jar/>
  570. </target>
  571. <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
  572. <j2seproject1:jar manifest="${manifest.file}"/>
  573. </target>
  574. <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
  575. <j2seproject1:jar manifest="${manifest.file}">
  576. <j2seproject1:manifest>
  577. <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
  578. </j2seproject1:manifest>
  579. </j2seproject1:jar>
  580. <echo>To run this application from the command line without Ant, try:</echo>
  581. <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  582. <property location="${dist.jar}" name="dist.jar.resolved"/>
  583. <pathconvert property="run.classpath.with.dist.jar">
  584. <path path="${run.classpath}"/>
  585. <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
  586. </pathconvert>
  587. <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
  588. </target>
  589. <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen">
  590. <basename file="${application.splash}" property="splashscreen.basename"/>
  591. <mkdir dir="${build.classes.dir}/META-INF"/>
  592. <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
  593. <j2seproject3:copylibs>
  594. <customize>
  595. <attribute name="Main-Class" value="${main.class}"/>
  596. <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
  597. </customize>
  598. </j2seproject3:copylibs>
  599. <echo>To run this application from the command line without Ant, try:</echo>
  600. <property location="${dist.jar}" name="dist.jar.resolved"/>
  601. <echo>java -jar "${dist.jar.resolved}"</echo>
  602. </target>
  603. <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available">
  604. <j2seproject3:copylibs>
  605. <customize>
  606. <attribute name="Main-Class" value="${main.class}"/>
  607. </customize>
  608. </j2seproject3:copylibs>
  609. <echo>To run this application from the command line without Ant, try:</echo>
  610. <property location="${dist.jar}" name="dist.jar.resolved"/>
  611. <echo>java -jar "${dist.jar.resolved}"</echo>
  612. </target>
  613. <target name="-post-jar">
  614. <!-- Empty placeholder for easier customization. -->
  615. <!-- You can override this target in the ../build.xml file. -->
  616. </target>
  617. <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
  618. <!--
  619. =================
  620. EXECUTION SECTION
  621. =================
  622. -->
  623. <target depends="init,compile" description="Run a main class." name="run">
  624. <j2seproject1:java>
  625. <customize>
  626. <arg line="${application.args}"/>
  627. </customize>
  628. </j2seproject1:java>
  629. </target>
  630. <target name="-do-not-recompile">
  631. <property name="javac.includes.binary" value=""/>
  632. </target>
  633. <target depends="init,compile-single" name="run-single">
  634. <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  635. <j2seproject1:java classname="${run.class}"/>
  636. </target>
  637. <target depends="init,compile-test-single" name="run-test-with-main">
  638. <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  639. <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  640. </target>
  641. <!--
  642. =================
  643. DEBUGGING SECTION
  644. =================
  645. -->
  646. <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  647. <j2seproject1:nbjpdastart name="${debug.class}"/>
  648. </target>
  649. <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  650. <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  651. </target>
  652. <target depends="init,compile" name="-debug-start-debuggee">
  653. <j2seproject3:debug>
  654. <customize>
  655. <arg line="${application.args}"/>
  656. </customize>
  657. </j2seproject3:debug>
  658. </target>
  659. <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
  660. <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
  661. <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
  662. </target>
  663. <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
  664. <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  665. <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  666. <j2seproject3:debug classname="${debug.class}"/>
  667. </target>
  668. <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
  669. <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  670. <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  671. <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  672. </target>
  673. <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  674. <target depends="init" name="-pre-debug-fix">
  675. <fail unless="fix.includes">Must set fix.includes</fail>
  676. <property name="javac.includes" value="${fix.includes}.java"/>
  677. </target>
  678. <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  679. <j2seproject1:nbjpdareload/>
  680. </target>
  681. <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  682. <!--
  683. ===============
  684. JAVADOC SECTION
  685. ===============
  686. -->
  687. <target depends="init" if="have.sources" name="-javadoc-build">
  688. <mkdir dir="${dist.javadoc.dir}"/>
  689. <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}">
  690. <classpath>
  691. <path path="${javac.classpath}"/>
  692. </classpath>
  693. <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  694. <filename name="**/*.java"/>
  695. </fileset>
  696. <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  697. <include name="**/*.java"/>
  698. </fileset>
  699. </javadoc>
  700. <copy todir="${dist.javadoc.dir}">
  701. <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  702. <filename name="**/doc-files/**"/>
  703. </fileset>
  704. <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  705. <include name="**/doc-files/**"/>
  706. </fileset>
  707. </copy>
  708. </target>
  709. <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
  710. <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  711. </target>
  712. <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
  713. <!--
  714. =========================
  715. JUNIT COMPILATION SECTION
  716. =========================
  717. -->
  718. <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  719. <mkdir dir="${build.test.classes.dir}"/>
  720. </target>
  721. <target name="-pre-compile-test">
  722. <!-- Empty placeholder for easier customization. -->
  723. <!-- You can override this target in the ../build.xml file. -->
  724. </target>
  725. <target if="do.depend.true" name="-compile-test-depend">
  726. <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  727. </target>
  728. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
  729. <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
  730. <copy todir="${build.test.classes.dir}">
  731. <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  732. </copy>
  733. </target>
  734. <target name="-post-compile-test">
  735. <!-- Empty placeholder for easier customization. -->
  736. <!-- You can override this target in the ../build.xml file. -->
  737. </target>
  738. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  739. <target name="-pre-compile-test-single">
  740. <!-- Empty placeholder for easier customization. -->
  741. <!-- You can override this target in the ../build.xml file. -->
  742. </target>
  743. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  744. <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  745. <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
  746. <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
  747. <copy todir="${build.test.classes.dir}">
  748. <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  749. </copy>
  750. </target>
  751. <target name="-post-compile-test-single">
  752. <!-- Empty placeholder for easier customization. -->
  753. <!-- You can override this target in the ../build.xml file. -->
  754. </target>
  755. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  756. <!--
  757. =======================
  758. JUNIT EXECUTION SECTION
  759. =======================
  760. -->
  761. <target depends="init" if="have.tests" name="-pre-test-run">
  762. <mkdir dir="${build.test.results.dir}"/>
  763. </target>
  764. <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  765. <j2seproject3:junit testincludes="**/*Test.java"/>
  766. </target>
  767. <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  768. <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  769. </target>
  770. <target depends="init" if="have.tests" name="test-report"/>
  771. <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  772. <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  773. <target depends="init" if="have.tests" name="-pre-test-run-single">
  774. <mkdir dir="${build.test.results.dir}"/>
  775. </target>
  776. <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  777. <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  778. <j2seproject3:junit excludes="" includes="${test.includes}"/>
  779. </target>
  780. <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  781. <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  782. </target>
  783. <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
  784. <!--
  785. =======================
  786. JUNIT DEBUGGING SECTION
  787. =======================
  788. -->
  789. <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
  790. <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  791. <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
  792. <delete file="${test.report.file}"/>
  793. <mkdir dir="${build.test.results.dir}"/>
  794. <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}">
  795. <customize>
  796. <syspropertyset>
  797. <propertyref prefix="test-sys-prop."/>
  798. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  799. </syspropertyset>
  800. <arg value="${test.class}"/>
  801. <arg value="showoutput=true"/>
  802. <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
  803. <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
  804. </customize>
  805. </j2seproject3:debug>
  806. </target>
  807. <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  808. <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  809. </target>
  810. <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  811. <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  812. <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  813. </target>
  814. <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  815. <!--
  816. =========================
  817. APPLET EXECUTION SECTION
  818. =========================
  819. -->
  820. <target depends="init,compile-single" name="run-applet">
  821. <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  822. <j2seproject1:java classname="sun.applet.AppletViewer">
  823. <customize>
  824. <arg value="${applet.url}"/>
  825. </customize>
  826. </j2seproject1:java>
  827. </target>
  828. <!--
  829. =========================
  830. APPLET DEBUGGING SECTION
  831. =========================
  832. -->
  833. <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
  834. <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  835. <j2seproject3:debug classname="sun.applet.AppletViewer">
  836. <customize>
  837. <arg value="${applet.url}"/>
  838. </customize>
  839. </j2seproject3:debug>
  840. </target>
  841. <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
  842. <!--
  843. ===============
  844. CLEANUP SECTION
  845. ===============
  846. -->
  847. <target name="-deps-clean-init" unless="built-clean.properties">
  848. <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
  849. <delete file="${built-clean.properties}" quiet="true"/>
  850. </target>
  851. <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
  852. <echo level="warn" message="Cycle detected: Videojuego was already built"/>
  853. </target>
  854. <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
  855. <mkdir dir="${build.dir}"/>
  856. <touch file="${built-clean.properties}" verbose="false"/>
  857. <property file="${built-clean.properties}" prefix="already.built.clean."/>
  858. <antcall target="-warn-already-built-clean"/>
  859. <propertyfile file="${built-clean.properties}">
  860. <entry key="${basedir}" value=""/>
  861. </propertyfile>
  862. </target>
  863. <target depends="init" name="-do-clean">
  864. <delete dir="${build.dir}"/>
  865. <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
  866. </target>
  867. <target name="-post-clean">
  868. <!-- Empty placeholder for easier customization. -->
  869. <!-- You can override this target in the ../build.xml file. -->
  870. </target>
  871. <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
  872. <target name="-check-call-dep">
  873. <property file="${call.built.properties}" prefix="already.built."/>
  874. <condition property="should.call.dep">
  875. <not>
  876. <isset property="already.built.${call.subproject}"/>
  877. </not>
  878. </condition>
  879. </target>
  880. <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
  881. <ant antfile="${call.script}" inheritall="false" target="${call.target}">
  882. <propertyset>
  883. <propertyref prefix="transfer."/>
  884. <mapper from="transfer.*" to="*" type="glob"/>
  885. </propertyset>
  886. </ant>
  887. </target>
  888. </project>