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.

1413 lines
76 KiB

  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. - test compilation
  14. - test execution
  15. - test 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="Filtro_Chido-impl">
  20. <fail message="Please build using Ant 1.8.0 or higher.">
  21. <condition>
  22. <not>
  23. <antversion atleast="1.8.0"/>
  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. <property name="platform.java" value="${java.home}/bin/java"/>
  55. <available file="${manifest.file}" property="manifest.available"/>
  56. <condition property="splashscreen.available">
  57. <and>
  58. <not>
  59. <equals arg1="${application.splash}" arg2="" trim="true"/>
  60. </not>
  61. <available file="${application.splash}"/>
  62. </and>
  63. </condition>
  64. <condition property="main.class.available">
  65. <and>
  66. <isset property="main.class"/>
  67. <not>
  68. <equals arg1="${main.class}" arg2="" trim="true"/>
  69. </not>
  70. </and>
  71. </condition>
  72. <condition property="profile.available">
  73. <and>
  74. <isset property="javac.profile"/>
  75. <length length="0" string="${javac.profile}" when="greater"/>
  76. <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
  77. </and>
  78. </condition>
  79. <condition property="do.archive">
  80. <or>
  81. <not>
  82. <istrue value="${jar.archive.disabled}"/>
  83. </not>
  84. <istrue value="${not.archive.disabled}"/>
  85. </or>
  86. </condition>
  87. <condition property="do.mkdist">
  88. <and>
  89. <isset property="do.archive"/>
  90. <isset property="libs.CopyLibs.classpath"/>
  91. <not>
  92. <istrue value="${mkdist.disabled}"/>
  93. </not>
  94. </and>
  95. </condition>
  96. <condition property="do.archive+manifest.available">
  97. <and>
  98. <isset property="manifest.available"/>
  99. <istrue value="${do.archive}"/>
  100. </and>
  101. </condition>
  102. <condition property="do.archive+main.class.available">
  103. <and>
  104. <isset property="main.class.available"/>
  105. <istrue value="${do.archive}"/>
  106. </and>
  107. </condition>
  108. <condition property="do.archive+splashscreen.available">
  109. <and>
  110. <isset property="splashscreen.available"/>
  111. <istrue value="${do.archive}"/>
  112. </and>
  113. </condition>
  114. <condition property="do.archive+profile.available">
  115. <and>
  116. <isset property="profile.available"/>
  117. <istrue value="${do.archive}"/>
  118. </and>
  119. </condition>
  120. <condition property="have.tests">
  121. <or>
  122. <available file="${test.src.dir}"/>
  123. </or>
  124. </condition>
  125. <condition property="have.sources">
  126. <or>
  127. <available file="${src.dir}"/>
  128. </or>
  129. </condition>
  130. <condition property="netbeans.home+have.tests">
  131. <and>
  132. <isset property="netbeans.home"/>
  133. <isset property="have.tests"/>
  134. </and>
  135. </condition>
  136. <condition property="no.javadoc.preview">
  137. <and>
  138. <isset property="javadoc.preview"/>
  139. <isfalse value="${javadoc.preview}"/>
  140. </and>
  141. </condition>
  142. <property name="run.jvmargs" value=""/>
  143. <property name="run.jvmargs.ide" value=""/>
  144. <property name="javac.compilerargs" value=""/>
  145. <property name="work.dir" value="${basedir}"/>
  146. <condition property="no.deps">
  147. <and>
  148. <istrue value="${no.dependencies}"/>
  149. </and>
  150. </condition>
  151. <property name="javac.debug" value="true"/>
  152. <property name="javadoc.preview" value="true"/>
  153. <property name="application.args" value=""/>
  154. <property name="source.encoding" value="${file.encoding}"/>
  155. <property name="runtime.encoding" value="${source.encoding}"/>
  156. <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  157. <and>
  158. <isset property="javadoc.encoding"/>
  159. <not>
  160. <equals arg1="${javadoc.encoding}" arg2=""/>
  161. </not>
  162. </and>
  163. </condition>
  164. <property name="javadoc.encoding.used" value="${source.encoding}"/>
  165. <property name="includes" value="**"/>
  166. <property name="excludes" value=""/>
  167. <property name="do.depend" value="false"/>
  168. <condition property="do.depend.true">
  169. <istrue value="${do.depend}"/>
  170. </condition>
  171. <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
  172. <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
  173. <and>
  174. <isset property="endorsed.classpath"/>
  175. <not>
  176. <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
  177. </not>
  178. </and>
  179. </condition>
  180. <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
  181. <isset property="profile.available"/>
  182. </condition>
  183. <condition else="false" property="jdkBug6558476">
  184. <and>
  185. <matches pattern="1\.[56]" string="${java.specification.version}"/>
  186. <not>
  187. <os family="unix"/>
  188. </not>
  189. </and>
  190. </condition>
  191. <property name="javac.fork" value="${jdkBug6558476}"/>
  192. <property name="jar.index" value="false"/>
  193. <property name="jar.index.metainf" value="${jar.index}"/>
  194. <property name="copylibs.rebase" value="true"/>
  195. <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
  196. <condition property="junit.available">
  197. <or>
  198. <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
  199. <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
  200. </or>
  201. </condition>
  202. <condition property="testng.available">
  203. <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
  204. </condition>
  205. <condition property="junit+testng.available">
  206. <and>
  207. <istrue value="${junit.available}"/>
  208. <istrue value="${testng.available}"/>
  209. </and>
  210. </condition>
  211. <condition else="testng" property="testng.mode" value="mixed">
  212. <istrue value="${junit+testng.available}"/>
  213. </condition>
  214. <condition else="" property="testng.debug.mode" value="-mixed">
  215. <istrue value="${junit+testng.available}"/>
  216. </condition>
  217. </target>
  218. <target name="-post-init">
  219. <!-- Empty placeholder for easier customization. -->
  220. <!-- You can override this target in the ../build.xml file. -->
  221. </target>
  222. <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  223. <fail unless="src.dir">Must set src.dir</fail>
  224. <fail unless="test.src.dir">Must set test.src.dir</fail>
  225. <fail unless="build.dir">Must set build.dir</fail>
  226. <fail unless="dist.dir">Must set dist.dir</fail>
  227. <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  228. <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  229. <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  230. <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  231. <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  232. <fail unless="dist.jar">Must set dist.jar</fail>
  233. </target>
  234. <target name="-init-macrodef-property">
  235. <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
  236. <attribute name="name"/>
  237. <attribute name="value"/>
  238. <sequential>
  239. <property name="@{name}" value="${@{value}}"/>
  240. </sequential>
  241. </macrodef>
  242. </target>
  243. <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
  244. <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  245. <attribute default="${src.dir}" name="srcdir"/>
  246. <attribute default="${build.classes.dir}" name="destdir"/>
  247. <attribute default="${javac.classpath}" name="classpath"/>
  248. <attribute default="${javac.processorpath}" name="processorpath"/>
  249. <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  250. <attribute default="${includes}" name="includes"/>
  251. <attribute default="${excludes}" name="excludes"/>
  252. <attribute default="${javac.debug}" name="debug"/>
  253. <attribute default="${empty.dir}" name="sourcepath"/>
  254. <attribute default="${empty.dir}" name="gensrcdir"/>
  255. <element name="customize" optional="true"/>
  256. <sequential>
  257. <property location="${build.dir}/empty" name="empty.dir"/>
  258. <mkdir dir="${empty.dir}"/>
  259. <mkdir dir="@{apgeneratedsrcdir}"/>
  260. <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}">
  261. <src>
  262. <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  263. <include name="*"/>
  264. </dirset>
  265. </src>
  266. <classpath>
  267. <path path="@{classpath}"/>
  268. </classpath>
  269. <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  270. <compilerarg line="${javac.profile.cmd.line.arg}"/>
  271. <compilerarg line="${javac.compilerargs}"/>
  272. <compilerarg value="-processorpath"/>
  273. <compilerarg path="@{processorpath}:${empty.dir}"/>
  274. <compilerarg line="${ap.processors.internal}"/>
  275. <compilerarg line="${annotation.processing.processor.options}"/>
  276. <compilerarg value="-s"/>
  277. <compilerarg path="@{apgeneratedsrcdir}"/>
  278. <compilerarg line="${ap.proc.none.internal}"/>
  279. <customize/>
  280. </javac>
  281. </sequential>
  282. </macrodef>
  283. </target>
  284. <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
  285. <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  286. <attribute default="${src.dir}" name="srcdir"/>
  287. <attribute default="${build.classes.dir}" name="destdir"/>
  288. <attribute default="${javac.classpath}" name="classpath"/>
  289. <attribute default="${javac.processorpath}" name="processorpath"/>
  290. <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  291. <attribute default="${includes}" name="includes"/>
  292. <attribute default="${excludes}" name="excludes"/>
  293. <attribute default="${javac.debug}" name="debug"/>
  294. <attribute default="${empty.dir}" name="sourcepath"/>
  295. <attribute default="${empty.dir}" name="gensrcdir"/>
  296. <element name="customize" optional="true"/>
  297. <sequential>
  298. <property location="${build.dir}/empty" name="empty.dir"/>
  299. <mkdir dir="${empty.dir}"/>
  300. <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}">
  301. <src>
  302. <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  303. <include name="*"/>
  304. </dirset>
  305. </src>
  306. <classpath>
  307. <path path="@{classpath}"/>
  308. </classpath>
  309. <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  310. <compilerarg line="${javac.profile.cmd.line.arg}"/>
  311. <compilerarg line="${javac.compilerargs}"/>
  312. <customize/>
  313. </javac>
  314. </sequential>
  315. </macrodef>
  316. </target>
  317. <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
  318. <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
  319. <attribute default="${src.dir}" name="srcdir"/>
  320. <attribute default="${build.classes.dir}" name="destdir"/>
  321. <attribute default="${javac.classpath}" name="classpath"/>
  322. <sequential>
  323. <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
  324. <classpath>
  325. <path path="@{classpath}"/>
  326. </classpath>
  327. </depend>
  328. </sequential>
  329. </macrodef>
  330. <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
  331. <attribute default="${build.classes.dir}" name="destdir"/>
  332. <sequential>
  333. <fail unless="javac.includes">Must set javac.includes</fail>
  334. <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
  335. <path>
  336. <filelist dir="@{destdir}" files="${javac.includes}"/>
  337. </path>
  338. <globmapper from="*.java" to="*.class"/>
  339. </pathconvert>
  340. <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
  341. <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
  342. <delete>
  343. <files includesfile="${javac.includesfile.binary}"/>
  344. </delete>
  345. <delete>
  346. <fileset file="${javac.includesfile.binary}"/>
  347. </delete>
  348. </sequential>
  349. </macrodef>
  350. </target>
  351. <target if="${junit.available}" name="-init-macrodef-junit-init">
  352. <condition else="false" property="nb.junit.batch" value="true">
  353. <and>
  354. <istrue value="${junit.available}"/>
  355. <not>
  356. <isset property="test.method"/>
  357. </not>
  358. </and>
  359. </condition>
  360. <condition else="false" property="nb.junit.single" value="true">
  361. <and>
  362. <istrue value="${junit.available}"/>
  363. <isset property="test.method"/>
  364. </and>
  365. </condition>
  366. </target>
  367. <target name="-init-test-properties">
  368. <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
  369. <property name="test.binarytestincludes" value=""/>
  370. <property name="test.binaryexcludes" value=""/>
  371. </target>
  372. <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
  373. <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
  374. <attribute default="${includes}" name="includes"/>
  375. <attribute default="${excludes}" name="excludes"/>
  376. <attribute default="**" name="testincludes"/>
  377. <attribute default="" name="testmethods"/>
  378. <element name="customize" optional="true"/>
  379. <sequential>
  380. <property name="junit.forkmode" value="perTest"/>
  381. <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
  382. <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
  383. <syspropertyset>
  384. <propertyref prefix="test-sys-prop."/>
  385. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  386. </syspropertyset>
  387. <formatter type="brief" usefile="false"/>
  388. <formatter type="xml"/>
  389. <jvmarg value="-ea"/>
  390. <customize/>
  391. </junit>
  392. </sequential>
  393. </macrodef>
  394. </target>
  395. <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
  396. <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
  397. <attribute default="${includes}" name="includes"/>
  398. <attribute default="${excludes}" name="excludes"/>
  399. <attribute default="**" name="testincludes"/>
  400. <attribute default="" name="testmethods"/>
  401. <element name="customize" optional="true"/>
  402. <sequential>
  403. <property name="junit.forkmode" value="perTest"/>
  404. <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
  405. <batchtest todir="${build.test.results.dir}">
  406. <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  407. <filename name="@{testincludes}"/>
  408. </fileset>
  409. <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
  410. <filename name="${test.binarytestincludes}"/>
  411. </fileset>
  412. </batchtest>
  413. <syspropertyset>
  414. <propertyref prefix="test-sys-prop."/>
  415. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  416. </syspropertyset>
  417. <formatter type="brief" usefile="false"/>
  418. <formatter type="xml"/>
  419. <jvmarg value="-ea"/>
  420. <customize/>
  421. </junit>
  422. </sequential>
  423. </macrodef>
  424. </target>
  425. <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
  426. <target if="${testng.available}" name="-init-macrodef-testng">
  427. <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
  428. <attribute default="${includes}" name="includes"/>
  429. <attribute default="${excludes}" name="excludes"/>
  430. <attribute default="**" name="testincludes"/>
  431. <attribute default="" name="testmethods"/>
  432. <element name="customize" optional="true"/>
  433. <sequential>
  434. <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
  435. <isset property="test.method"/>
  436. </condition>
  437. <union id="test.set">
  438. <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
  439. <filename name="@{testincludes}"/>
  440. </fileset>
  441. </union>
  442. <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
  443. <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="Filtro_Chido" testname="TestNG tests" workingDir="${work.dir}">
  444. <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
  445. <propertyset>
  446. <propertyref prefix="test-sys-prop."/>
  447. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  448. </propertyset>
  449. <customize/>
  450. </testng>
  451. </sequential>
  452. </macrodef>
  453. </target>
  454. <target name="-init-macrodef-test-impl">
  455. <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  456. <attribute default="${includes}" name="includes"/>
  457. <attribute default="${excludes}" name="excludes"/>
  458. <attribute default="**" name="testincludes"/>
  459. <attribute default="" name="testmethods"/>
  460. <element implicit="true" name="customize" optional="true"/>
  461. <sequential>
  462. <echo>No tests executed.</echo>
  463. </sequential>
  464. </macrodef>
  465. </target>
  466. <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
  467. <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  468. <attribute default="${includes}" name="includes"/>
  469. <attribute default="${excludes}" name="excludes"/>
  470. <attribute default="**" name="testincludes"/>
  471. <attribute default="" name="testmethods"/>
  472. <element implicit="true" name="customize" optional="true"/>
  473. <sequential>
  474. <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  475. <customize/>
  476. </j2seproject3:junit>
  477. </sequential>
  478. </macrodef>
  479. </target>
  480. <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
  481. <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  482. <attribute default="${includes}" name="includes"/>
  483. <attribute default="${excludes}" name="excludes"/>
  484. <attribute default="**" name="testincludes"/>
  485. <attribute default="" name="testmethods"/>
  486. <element implicit="true" name="customize" optional="true"/>
  487. <sequential>
  488. <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  489. <customize/>
  490. </j2seproject3:testng>
  491. </sequential>
  492. </macrodef>
  493. </target>
  494. <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
  495. <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
  496. <attribute default="${includes}" name="includes"/>
  497. <attribute default="${excludes}" name="excludes"/>
  498. <attribute default="**" name="testincludes"/>
  499. <attribute default="" name="testmethods"/>
  500. <sequential>
  501. <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  502. <customize>
  503. <classpath>
  504. <path path="${run.test.classpath}"/>
  505. </classpath>
  506. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  507. <jvmarg line="${run.jvmargs}"/>
  508. <jvmarg line="${run.jvmargs.ide}"/>
  509. </customize>
  510. </j2seproject3:test-impl>
  511. </sequential>
  512. </macrodef>
  513. </target>
  514. <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
  515. <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  516. <attribute default="${includes}" name="includes"/>
  517. <attribute default="${excludes}" name="excludes"/>
  518. <attribute default="**" name="testincludes"/>
  519. <attribute default="" name="testmethods"/>
  520. <element name="customize" optional="true"/>
  521. <sequential>
  522. <property name="junit.forkmode" value="perTest"/>
  523. <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
  524. <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
  525. <syspropertyset>
  526. <propertyref prefix="test-sys-prop."/>
  527. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  528. </syspropertyset>
  529. <formatter type="brief" usefile="false"/>
  530. <formatter type="xml"/>
  531. <jvmarg value="-ea"/>
  532. <jvmarg line="${debug-args-line}"/>
  533. <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  534. <customize/>
  535. </junit>
  536. </sequential>
  537. </macrodef>
  538. </target>
  539. <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
  540. <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  541. <attribute default="${includes}" name="includes"/>
  542. <attribute default="${excludes}" name="excludes"/>
  543. <attribute default="**" name="testincludes"/>
  544. <attribute default="" name="testmethods"/>
  545. <element name="customize" optional="true"/>
  546. <sequential>
  547. <property name="junit.forkmode" value="perTest"/>
  548. <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
  549. <batchtest todir="${build.test.results.dir}">
  550. <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  551. <filename name="@{testincludes}"/>
  552. </fileset>
  553. <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
  554. <filename name="${test.binarytestincludes}"/>
  555. </fileset>
  556. </batchtest>
  557. <syspropertyset>
  558. <propertyref prefix="test-sys-prop."/>
  559. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  560. </syspropertyset>
  561. <formatter type="brief" usefile="false"/>
  562. <formatter type="xml"/>
  563. <jvmarg value="-ea"/>
  564. <jvmarg line="${debug-args-line}"/>
  565. <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  566. <customize/>
  567. </junit>
  568. </sequential>
  569. </macrodef>
  570. </target>
  571. <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
  572. <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  573. <attribute default="${includes}" name="includes"/>
  574. <attribute default="${excludes}" name="excludes"/>
  575. <attribute default="**" name="testincludes"/>
  576. <attribute default="" name="testmethods"/>
  577. <element implicit="true" name="customize" optional="true"/>
  578. <sequential>
  579. <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  580. <customize/>
  581. </j2seproject3:junit-debug>
  582. </sequential>
  583. </macrodef>
  584. </target>
  585. <target if="${testng.available}" name="-init-macrodef-testng-debug">
  586. <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  587. <attribute default="${main.class}" name="testClass"/>
  588. <attribute default="" name="testMethod"/>
  589. <element name="customize2" optional="true"/>
  590. <sequential>
  591. <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
  592. <isset property="test.method"/>
  593. </condition>
  594. <condition else="-suitename Filtro_Chido -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
  595. <matches pattern=".*\.xml" string="@{testClass}"/>
  596. </condition>
  597. <delete dir="${build.test.results.dir}" quiet="true"/>
  598. <mkdir dir="${build.test.results.dir}"/>
  599. <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
  600. <customize>
  601. <customize2/>
  602. <jvmarg value="-ea"/>
  603. <arg line="${testng.debug.mode}"/>
  604. <arg line="-d ${build.test.results.dir}"/>
  605. <arg line="-listener org.testng.reporters.VerboseReporter"/>
  606. <arg line="${testng.cmd.args}"/>
  607. </customize>
  608. </j2seproject3:debug>
  609. </sequential>
  610. </macrodef>
  611. </target>
  612. <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
  613. <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  614. <attribute default="${main.class}" name="testClass"/>
  615. <attribute default="" name="testMethod"/>
  616. <element implicit="true" name="customize2" optional="true"/>
  617. <sequential>
  618. <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
  619. <customize2/>
  620. </j2seproject3:testng-debug>
  621. </sequential>
  622. </macrodef>
  623. </target>
  624. <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
  625. <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  626. <attribute default="${includes}" name="includes"/>
  627. <attribute default="${excludes}" name="excludes"/>
  628. <attribute default="**" name="testincludes"/>
  629. <attribute default="" name="testmethods"/>
  630. <attribute default="${main.class}" name="testClass"/>
  631. <attribute default="" name="testMethod"/>
  632. <sequential>
  633. <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  634. <customize>
  635. <classpath>
  636. <path path="${run.test.classpath}"/>
  637. </classpath>
  638. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  639. <jvmarg line="${run.jvmargs}"/>
  640. <jvmarg line="${run.jvmargs.ide}"/>
  641. </customize>
  642. </j2seproject3:test-debug-impl>
  643. </sequential>
  644. </macrodef>
  645. </target>
  646. <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
  647. <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  648. <attribute default="${includes}" name="includes"/>
  649. <attribute default="${excludes}" name="excludes"/>
  650. <attribute default="**" name="testincludes"/>
  651. <attribute default="" name="testmethods"/>
  652. <attribute default="${main.class}" name="testClass"/>
  653. <attribute default="" name="testMethod"/>
  654. <sequential>
  655. <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
  656. <customize2>
  657. <syspropertyset>
  658. <propertyref prefix="test-sys-prop."/>
  659. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  660. </syspropertyset>
  661. </customize2>
  662. </j2seproject3:testng-debug-impl>
  663. </sequential>
  664. </macrodef>
  665. </target>
  666. <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
  667. <!--
  668. pre NB7.2 profiling section; consider it deprecated
  669. -->
  670. <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
  671. <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
  672. <!-- Empty placeholder for easier customization. -->
  673. <!-- You can override this target in the ../build.xml file. -->
  674. </target>
  675. <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
  676. <!-- Empty placeholder for easier customization. -->
  677. <!-- You can override this target in the ../build.xml file. -->
  678. </target>
  679. <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
  680. <macrodef name="resolve">
  681. <attribute name="name"/>
  682. <attribute name="value"/>
  683. <sequential>
  684. <property name="@{name}" value="${env.@{value}}"/>
  685. </sequential>
  686. </macrodef>
  687. <macrodef name="profile">
  688. <attribute default="${main.class}" name="classname"/>
  689. <element name="customize" optional="true"/>
  690. <sequential>
  691. <property environment="env"/>
  692. <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
  693. <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
  694. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  695. <jvmarg value="${profiler.info.jvmargs.agent}"/>
  696. <jvmarg line="${profiler.info.jvmargs}"/>
  697. <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  698. <arg line="${application.args}"/>
  699. <classpath>
  700. <path path="${run.classpath}"/>
  701. </classpath>
  702. <syspropertyset>
  703. <propertyref prefix="run-sys-prop."/>
  704. <mapper from="run-sys-prop.*" to="*" type="glob"/>
  705. </syspropertyset>
  706. <customize/>
  707. </java>
  708. </sequential>
  709. </macrodef>
  710. </target>
  711. <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
  712. <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
  713. <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
  714. </target>
  715. <!--
  716. end of pre NB7.2 profiling section
  717. -->
  718. <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  719. <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
  720. <attribute default="${main.class}" name="name"/>
  721. <attribute default="${debug.classpath}" name="classpath"/>
  722. <attribute default="" name="stopclassname"/>
  723. <sequential>
  724. <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
  725. <classpath>
  726. <path path="@{classpath}"/>
  727. </classpath>
  728. </nbjpdastart>
  729. </sequential>
  730. </macrodef>
  731. <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
  732. <attribute default="${build.classes.dir}" name="dir"/>
  733. <sequential>
  734. <nbjpdareload>
  735. <fileset dir="@{dir}" includes="${fix.classes}">
  736. <include name="${fix.includes}*.class"/>
  737. </fileset>
  738. </nbjpdareload>
  739. </sequential>
  740. </macrodef>
  741. </target>
  742. <target name="-init-debug-args">
  743. <property name="version-output" value="java version &quot;${ant.java.version}"/>
  744. <condition property="have-jdk-older-than-1.4">
  745. <or>
  746. <contains string="${version-output}" substring="java version &quot;1.0"/>
  747. <contains string="${version-output}" substring="java version &quot;1.1"/>
  748. <contains string="${version-output}" substring="java version &quot;1.2"/>
  749. <contains string="${version-output}" substring="java version &quot;1.3"/>
  750. </or>
  751. </condition>
  752. <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  753. <istrue value="${have-jdk-older-than-1.4}"/>
  754. </condition>
  755. <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  756. <os family="windows"/>
  757. </condition>
  758. <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  759. <isset property="debug.transport"/>
  760. </condition>
  761. </target>
  762. <target depends="-init-debug-args" name="-init-macrodef-debug">
  763. <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  764. <attribute default="${main.class}" name="classname"/>
  765. <attribute default="${debug.classpath}" name="classpath"/>
  766. <element name="customize" optional="true"/>
  767. <sequential>
  768. <java classname="@{classname}" dir="${work.dir}" fork="true">
  769. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  770. <jvmarg line="${debug-args-line}"/>
  771. <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  772. <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  773. <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  774. <jvmarg line="${run.jvmargs}"/>
  775. <jvmarg line="${run.jvmargs.ide}"/>
  776. <classpath>
  777. <path path="@{classpath}"/>
  778. </classpath>
  779. <syspropertyset>
  780. <propertyref prefix="run-sys-prop."/>
  781. <mapper from="run-sys-prop.*" to="*" type="glob"/>
  782. </syspropertyset>
  783. <customize/>
  784. </java>
  785. </sequential>
  786. </macrodef>
  787. </target>
  788. <target name="-init-macrodef-java">
  789. <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
  790. <attribute default="${main.class}" name="classname"/>
  791. <attribute default="${run.classpath}" name="classpath"/>
  792. <attribute default="jvm" name="jvm"/>
  793. <element name="customize" optional="true"/>
  794. <sequential>
  795. <java classname="@{classname}" dir="${work.dir}" fork="true">
  796. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  797. <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  798. <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  799. <jvmarg line="${run.jvmargs}"/>
  800. <jvmarg line="${run.jvmargs.ide}"/>
  801. <classpath>
  802. <path path="@{classpath}"/>
  803. </classpath>
  804. <syspropertyset>
  805. <propertyref prefix="run-sys-prop."/>
  806. <mapper from="run-sys-prop.*" to="*" type="glob"/>
  807. </syspropertyset>
  808. <customize/>
  809. </java>
  810. </sequential>
  811. </macrodef>
  812. </target>
  813. <target name="-init-macrodef-copylibs">
  814. <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
  815. <attribute default="${manifest.file}" name="manifest"/>
  816. <element name="customize" optional="true"/>
  817. <sequential>
  818. <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  819. <pathconvert property="run.classpath.without.build.classes.dir">
  820. <path path="${run.classpath}"/>
  821. <map from="${build.classes.dir.resolved}" to=""/>
  822. </pathconvert>
  823. <pathconvert pathsep=" " property="jar.classpath">
  824. <path path="${run.classpath.without.build.classes.dir}"/>
  825. <chainedmapper>
  826. <flattenmapper/>
  827. <filtermapper>
  828. <replacestring from=" " to="%20"/>
  829. </filtermapper>
  830. <globmapper from="*" to="lib/*"/>
  831. </chainedmapper>
  832. </pathconvert>
  833. <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
  834. <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
  835. <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
  836. <manifest>
  837. <attribute name="Class-Path" value="${jar.classpath}"/>
  838. <customize/>
  839. </manifest>
  840. </copylibs>
  841. </sequential>
  842. </macrodef>
  843. </target>
  844. <target name="-init-presetdef-jar">
  845. <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
  846. <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
  847. <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
  848. </jar>
  849. </presetdef>
  850. </target>
  851. <target name="-init-ap-cmdline-properties">
  852. <property name="annotation.processing.enabled" value="true"/>
  853. <property name="annotation.processing.processors.list" value=""/>
  854. <property name="annotation.processing.processor.options" value=""/>
  855. <property name="annotation.processing.run.all.processors" value="true"/>
  856. <property name="javac.processorpath" value="${javac.classpath}"/>
  857. <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
  858. <condition property="ap.supported.internal" value="true">
  859. <not>
  860. <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
  861. </not>
  862. </condition>
  863. </target>
  864. <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
  865. <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
  866. <isfalse value="${annotation.processing.run.all.processors}"/>
  867. </condition>
  868. <condition else="" property="ap.proc.none.internal" value="-proc:none">
  869. <isfalse value="${annotation.processing.enabled}"/>
  870. </condition>
  871. </target>
  872. <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
  873. <property name="ap.cmd.line.internal" value=""/>
  874. </target>
  875. <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
  876. <!--
  877. ===================
  878. COMPILATION SECTION
  879. ===================
  880. -->
  881. <target name="-deps-jar-init" unless="built-jar.properties">
  882. <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
  883. <delete file="${built-jar.properties}" quiet="true"/>
  884. </target>
  885. <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
  886. <echo level="warn" message="Cycle detected: Filtro_Chido was already built"/>
  887. </target>
  888. <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
  889. <mkdir dir="${build.dir}"/>
  890. <touch file="${built-jar.properties}" verbose="false"/>
  891. <property file="${built-jar.properties}" prefix="already.built.jar."/>
  892. <antcall target="-warn-already-built-jar"/>
  893. <propertyfile file="${built-jar.properties}">
  894. <entry key="${basedir}" value=""/>
  895. </propertyfile>
  896. </target>
  897. <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
  898. <target depends="init" name="-check-automatic-build">
  899. <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
  900. </target>
  901. <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
  902. <antcall target="clean"/>
  903. </target>
  904. <target depends="init,deps-jar" name="-pre-pre-compile">
  905. <mkdir dir="${build.classes.dir}"/>
  906. </target>
  907. <target name="-pre-compile">
  908. <!-- Empty placeholder for easier customization. -->
  909. <!-- You can override this target in the ../build.xml file. -->
  910. </target>
  911. <target if="do.depend.true" name="-compile-depend">
  912. <pathconvert property="build.generated.subdirs">
  913. <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  914. <include name="*"/>
  915. </dirset>
  916. </pathconvert>
  917. <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
  918. </target>
  919. <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
  920. <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
  921. <copy todir="${build.classes.dir}">
  922. <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  923. </copy>
  924. </target>
  925. <target if="has.persistence.xml" name="-copy-persistence-xml">
  926. <mkdir dir="${build.classes.dir}/META-INF"/>
  927. <copy todir="${build.classes.dir}/META-INF">
  928. <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
  929. </copy>
  930. </target>
  931. <target name="-post-compile">
  932. <!-- Empty placeholder for easier customization. -->
  933. <!-- You can override this target in the ../build.xml file. -->
  934. </target>
  935. <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  936. <target name="-pre-compile-single">
  937. <!-- Empty placeholder for easier customization. -->
  938. <!-- You can override this target in the ../build.xml file. -->
  939. </target>
  940. <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  941. <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  942. <j2seproject3:force-recompile/>
  943. <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
  944. </target>
  945. <target name="-post-compile-single">
  946. <!-- Empty placeholder for easier customization. -->
  947. <!-- You can override this target in the ../build.xml file. -->
  948. </target>
  949. <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  950. <!--
  951. ====================
  952. JAR BUILDING SECTION
  953. ====================
  954. -->
  955. <target depends="init" name="-pre-pre-jar">
  956. <dirname file="${dist.jar}" property="dist.jar.dir"/>
  957. <mkdir dir="${dist.jar.dir}"/>
  958. </target>
  959. <target name="-pre-jar">
  960. <!-- Empty placeholder for easier customization. -->
  961. <!-- You can override this target in the ../build.xml file. -->
  962. </target>
  963. <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
  964. <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
  965. <touch file="${tmp.manifest.file}" verbose="false"/>
  966. </target>
  967. <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
  968. <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
  969. <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
  970. </target>
  971. <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
  972. <manifest file="${tmp.manifest.file}" mode="update">
  973. <attribute name="Main-Class" value="${main.class}"/>
  974. </manifest>
  975. </target>
  976. <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
  977. <manifest file="${tmp.manifest.file}" mode="update">
  978. <attribute name="Profile" value="${javac.profile}"/>
  979. </manifest>
  980. </target>
  981. <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
  982. <basename file="${application.splash}" property="splashscreen.basename"/>
  983. <mkdir dir="${build.classes.dir}/META-INF"/>
  984. <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
  985. <manifest file="${tmp.manifest.file}" mode="update">
  986. <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
  987. </manifest>
  988. </target>
  989. <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
  990. <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
  991. <echo level="info">To run this application from the command line without Ant, try:</echo>
  992. <property location="${dist.jar}" name="dist.jar.resolved"/>
  993. <echo level="info">java -jar "${dist.jar.resolved}"</echo>
  994. </target>
  995. <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
  996. <j2seproject1:jar manifest="${tmp.manifest.file}"/>
  997. <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  998. <property location="${dist.jar}" name="dist.jar.resolved"/>
  999. <pathconvert property="run.classpath.with.dist.jar">
  1000. <path path="${run.classpath}"/>
  1001. <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
  1002. </pathconvert>
  1003. <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
  1004. <isset property="main.class.available"/>
  1005. </condition>
  1006. <condition else="debug" property="jar.usage.level" value="info">
  1007. <isset property="main.class.available"/>
  1008. </condition>
  1009. <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
  1010. </target>
  1011. <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
  1012. <delete>
  1013. <fileset file="${tmp.manifest.file}"/>
  1014. </delete>
  1015. </target>
  1016. <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
  1017. <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
  1018. <target name="-post-jar">
  1019. <!-- Empty placeholder for easier customization. -->
  1020. <!-- You can override this target in the ../build.xml file. -->
  1021. </target>
  1022. <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
  1023. <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
  1024. <!--
  1025. =================
  1026. EXECUTION SECTION
  1027. =================
  1028. -->
  1029. <target depends="init,compile" description="Run a main class." name="run">
  1030. <j2seproject1:java>
  1031. <customize>
  1032. <arg line="${application.args}"/>
  1033. </customize>
  1034. </j2seproject1:java>
  1035. </target>
  1036. <target name="-do-not-recompile">
  1037. <property name="javac.includes.binary" value=""/>
  1038. </target>
  1039. <target depends="init,compile-single" name="run-single">
  1040. <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1041. <j2seproject1:java classname="${run.class}"/>
  1042. </target>
  1043. <target depends="init,compile-test-single" name="run-test-with-main">
  1044. <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1045. <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  1046. </target>
  1047. <!--
  1048. =================
  1049. DEBUGGING SECTION
  1050. =================
  1051. -->
  1052. <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  1053. <j2seproject1:nbjpdastart name="${debug.class}"/>
  1054. </target>
  1055. <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  1056. <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  1057. </target>
  1058. <target depends="init,compile" name="-debug-start-debuggee">
  1059. <j2seproject3:debug>
  1060. <customize>
  1061. <arg line="${application.args}"/>
  1062. </customize>
  1063. </j2seproject3:debug>
  1064. </target>
  1065. <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
  1066. <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
  1067. <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
  1068. </target>
  1069. <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
  1070. <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  1071. <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  1072. <j2seproject3:debug classname="${debug.class}"/>
  1073. </target>
  1074. <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
  1075. <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  1076. <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  1077. <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  1078. </target>
  1079. <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  1080. <target depends="init" name="-pre-debug-fix">
  1081. <fail unless="fix.includes">Must set fix.includes</fail>
  1082. <property name="javac.includes" value="${fix.includes}.java"/>
  1083. </target>
  1084. <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  1085. <j2seproject1:nbjpdareload/>
  1086. </target>
  1087. <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  1088. <!--
  1089. =================
  1090. PROFILING SECTION
  1091. =================
  1092. -->
  1093. <!--
  1094. pre NB7.2 profiler integration
  1095. -->
  1096. <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
  1097. <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1098. <nbprofiledirect>
  1099. <classpath>
  1100. <path path="${run.classpath}"/>
  1101. </classpath>
  1102. </nbprofiledirect>
  1103. <profile/>
  1104. </target>
  1105. <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
  1106. <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
  1107. <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1108. <nbprofiledirect>
  1109. <classpath>
  1110. <path path="${run.classpath}"/>
  1111. </classpath>
  1112. </nbprofiledirect>
  1113. <profile classname="${profile.class}"/>
  1114. </target>
  1115. <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
  1116. <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1117. <nbprofiledirect>
  1118. <classpath>
  1119. <path path="${run.classpath}"/>
  1120. </classpath>
  1121. </nbprofiledirect>
  1122. <profile classname="sun.applet.AppletViewer">
  1123. <customize>
  1124. <arg value="${applet.url}"/>
  1125. </customize>
  1126. </profile>
  1127. </target>
  1128. <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
  1129. <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1130. <nbprofiledirect>
  1131. <classpath>
  1132. <path path="${run.test.classpath}"/>
  1133. </classpath>
  1134. </nbprofiledirect>
  1135. <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
  1136. <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  1137. <jvmarg value="${profiler.info.jvmargs.agent}"/>
  1138. <jvmarg line="${profiler.info.jvmargs}"/>
  1139. <test name="${profile.class}"/>
  1140. <classpath>
  1141. <path path="${run.test.classpath}"/>
  1142. </classpath>
  1143. <syspropertyset>
  1144. <propertyref prefix="test-sys-prop."/>
  1145. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  1146. </syspropertyset>
  1147. <formatter type="brief" usefile="false"/>
  1148. <formatter type="xml"/>
  1149. </junit>
  1150. </target>
  1151. <!--
  1152. end of pre NB72 profiling section
  1153. -->
  1154. <target if="netbeans.home" name="-profile-check">
  1155. <condition property="profiler.configured">
  1156. <or>
  1157. <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
  1158. <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
  1159. </or>
  1160. </condition>
  1161. </target>
  1162. <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
  1163. <startprofiler/>
  1164. <antcall target="run"/>
  1165. </target>
  1166. <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
  1167. <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1168. <startprofiler/>
  1169. <antcall target="run-single"/>
  1170. </target>
  1171. <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
  1172. <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
  1173. <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  1174. <startprofiler/>
  1175. <antcall target="test-single"/>
  1176. </target>
  1177. <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
  1178. <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1179. <startprofiler/>
  1180. <antcal target="run-test-with-main"/>
  1181. </target>
  1182. <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
  1183. <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  1184. <startprofiler/>
  1185. <antcall target="run-applet"/>
  1186. </target>
  1187. <!--
  1188. ===============
  1189. JAVADOC SECTION
  1190. ===============
  1191. -->
  1192. <target depends="init" if="have.sources" name="-javadoc-build">
  1193. <mkdir dir="${dist.javadoc.dir}"/>
  1194. <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
  1195. <and>
  1196. <isset property="endorsed.classpath.cmd.line.arg"/>
  1197. <not>
  1198. <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
  1199. </not>
  1200. </and>
  1201. </condition>
  1202. <condition else="" property="bug5101868workaround" value="*.java">
  1203. <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
  1204. </condition>
  1205. <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${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}">
  1206. <classpath>
  1207. <path path="${javac.classpath}"/>
  1208. </classpath>
  1209. <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
  1210. <filename name="**/*.java"/>
  1211. </fileset>
  1212. <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  1213. <include name="**/*.java"/>
  1214. <exclude name="*.java"/>
  1215. </fileset>
  1216. <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
  1217. </javadoc>
  1218. <copy todir="${dist.javadoc.dir}">
  1219. <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  1220. <filename name="**/doc-files/**"/>
  1221. </fileset>
  1222. <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  1223. <include name="**/doc-files/**"/>
  1224. </fileset>
  1225. </copy>
  1226. </target>
  1227. <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
  1228. <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  1229. </target>
  1230. <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
  1231. <!--
  1232. =========================
  1233. TEST COMPILATION SECTION
  1234. =========================
  1235. -->
  1236. <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  1237. <mkdir dir="${build.test.classes.dir}"/>
  1238. </target>
  1239. <target name="-pre-compile-test">
  1240. <!-- Empty placeholder for easier customization. -->
  1241. <!-- You can override this target in the ../build.xml file. -->
  1242. </target>
  1243. <target if="do.depend.true" name="-compile-test-depend">
  1244. <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  1245. </target>
  1246. <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
  1247. <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}"/>
  1248. <copy todir="${build.test.classes.dir}">
  1249. <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  1250. </copy>
  1251. </target>
  1252. <target name="-post-compile-test">
  1253. <!-- Empty placeholder for easier customization. -->
  1254. <!-- You can override this target in the ../build.xml file. -->
  1255. </target>
  1256. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  1257. <target name="-pre-compile-test-single">
  1258. <!-- Empty placeholder for easier customization. -->
  1259. <!-- You can override this target in the ../build.xml file. -->
  1260. </target>
  1261. <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  1262. <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  1263. <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
  1264. <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}"/>
  1265. <copy todir="${build.test.classes.dir}">
  1266. <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  1267. </copy>
  1268. </target>
  1269. <target name="-post-compile-test-single">
  1270. <!-- Empty placeholder for easier customization. -->
  1271. <!-- You can override this target in the ../build.xml file. -->
  1272. </target>
  1273. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  1274. <!--
  1275. =======================
  1276. TEST EXECUTION SECTION
  1277. =======================
  1278. -->
  1279. <target depends="init" if="have.tests" name="-pre-test-run">
  1280. <mkdir dir="${build.test.results.dir}"/>
  1281. </target>
  1282. <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  1283. <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
  1284. </target>
  1285. <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  1286. <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  1287. </target>
  1288. <target depends="init" if="have.tests" name="test-report"/>
  1289. <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  1290. <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  1291. <target depends="init" if="have.tests" name="-pre-test-run-single">
  1292. <mkdir dir="${build.test.results.dir}"/>
  1293. </target>
  1294. <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  1295. <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  1296. <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
  1297. </target>
  1298. <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  1299. <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  1300. </target>
  1301. <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"/>
  1302. <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
  1303. <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
  1304. <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  1305. <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
  1306. </target>
  1307. <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
  1308. <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  1309. </target>
  1310. <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
  1311. <!--
  1312. =======================
  1313. TEST DEBUGGING SECTION
  1314. =======================
  1315. -->
  1316. <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
  1317. <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  1318. <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
  1319. </target>
  1320. <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
  1321. <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  1322. <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  1323. <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
  1324. </target>
  1325. <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  1326. <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  1327. </target>
  1328. <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  1329. <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
  1330. <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  1331. <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  1332. </target>
  1333. <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  1334. <!--
  1335. =========================
  1336. APPLET EXECUTION SECTION
  1337. =========================
  1338. -->
  1339. <target depends="init,compile-single" name="run-applet">
  1340. <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  1341. <j2seproject1:java classname="sun.applet.AppletViewer">
  1342. <customize>
  1343. <arg value="${applet.url}"/>
  1344. </customize>
  1345. </j2seproject1:java>
  1346. </target>
  1347. <!--
  1348. =========================
  1349. APPLET DEBUGGING SECTION
  1350. =========================
  1351. -->
  1352. <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
  1353. <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  1354. <j2seproject3:debug classname="sun.applet.AppletViewer">
  1355. <customize>
  1356. <arg value="${applet.url}"/>
  1357. </customize>
  1358. </j2seproject3:debug>
  1359. </target>
  1360. <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
  1361. <!--
  1362. ===============
  1363. CLEANUP SECTION
  1364. ===============
  1365. -->
  1366. <target name="-deps-clean-init" unless="built-clean.properties">
  1367. <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
  1368. <delete file="${built-clean.properties}" quiet="true"/>
  1369. </target>
  1370. <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
  1371. <echo level="warn" message="Cycle detected: Filtro_Chido was already built"/>
  1372. </target>
  1373. <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
  1374. <mkdir dir="${build.dir}"/>
  1375. <touch file="${built-clean.properties}" verbose="false"/>
  1376. <property file="${built-clean.properties}" prefix="already.built.clean."/>
  1377. <antcall target="-warn-already-built-clean"/>
  1378. <propertyfile file="${built-clean.properties}">
  1379. <entry key="${basedir}" value=""/>
  1380. </propertyfile>
  1381. </target>
  1382. <target depends="init" name="-do-clean">
  1383. <delete dir="${build.dir}"/>
  1384. <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
  1385. </target>
  1386. <target name="-post-clean">
  1387. <!-- Empty placeholder for easier customization. -->
  1388. <!-- You can override this target in the ../build.xml file. -->
  1389. </target>
  1390. <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
  1391. <target name="-check-call-dep">
  1392. <property file="${call.built.properties}" prefix="already.built."/>
  1393. <condition property="should.call.dep">
  1394. <and>
  1395. <not>
  1396. <isset property="already.built.${call.subproject}"/>
  1397. </not>
  1398. <available file="${call.script}"/>
  1399. </and>
  1400. </condition>
  1401. </target>
  1402. <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
  1403. <ant antfile="${call.script}" inheritall="false" target="${call.target}">
  1404. <propertyset>
  1405. <propertyref prefix="transfer."/>
  1406. <mapper from="transfer.*" to="*" type="glob"/>
  1407. </propertyset>
  1408. </ant>
  1409. </target>
  1410. </project>