build-impl.xml 97 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775
  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:if="ant:if" 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" xmlns:unless="ant:unless" basedir=".." default="default" name="Timor_VasgwLottery-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.8"/>
  47. <property name="default.javac.target" value="1.8"/>
  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 name="-init-modules-supported">
  54. <condition property="modules.supported.internal" value="true">
  55. <not>
  56. <matches pattern="1\.[0-8](\..*)?" string="${javac.source}"/>
  57. </not>
  58. </condition>
  59. </target>
  60. <target depends="-init-modules-supported" if="modules.supported.internal" name="-init-macrodef-modulename">
  61. <macrodef name="modulename" uri="http://www.netbeans.org/ns/j2se-project/3">
  62. <attribute name="property"/>
  63. <attribute name="sourcepath"/>
  64. <sequential>
  65. <loadresource property="@{property}" quiet="true">
  66. <javaresource classpath="@{sourcepath}" name="module-info.java" parentFirst="false"/>
  67. <filterchain>
  68. <stripjavacomments/>
  69. <linecontainsregexp>
  70. <regexp pattern="module .* \{"/>
  71. </linecontainsregexp>
  72. <tokenfilter>
  73. <linetokenizer/>
  74. <replaceregex flags="s" pattern="(\s*module\s+)(\S*)(\s*\{.*)" replace="\2"/>
  75. </tokenfilter>
  76. <striplinebreaks/>
  77. </filterchain>
  78. </loadresource>
  79. </sequential>
  80. </macrodef>
  81. </target>
  82. <target depends="-init-modules-supported,-init-macrodef-modulename" if="modules.supported.internal" name="-init-source-module-properties">
  83. <fail message="Java 9 support requires Ant 1.10.0 or higher.">
  84. <condition>
  85. <not>
  86. <antversion atleast="1.10.0"/>
  87. </not>
  88. </condition>
  89. </fail>
  90. <j2seproject3:modulename property="module.name" sourcepath="${src.dir}"/>
  91. <condition property="named.module.internal">
  92. <and>
  93. <isset property="module.name"/>
  94. <length length="0" string="${module.name}" when="greater"/>
  95. </and>
  96. </condition>
  97. <condition property="unnamed.module.internal">
  98. <not>
  99. <isset property="named.module.internal"/>
  100. </not>
  101. </condition>
  102. <property name="javac.modulepath" value=""/>
  103. <property name="run.modulepath" value="${javac.modulepath}"/>
  104. <property name="module.build.classes.dir" value="${build.classes.dir}"/>
  105. <property name="debug.modulepath" value="${run.modulepath}"/>
  106. <property name="javac.upgrademodulepath" value=""/>
  107. <property name="run.upgrademodulepath" value="${javac.upgrademodulepath}"/>
  108. <condition else="" property="javac.systemmodulepath.cmd.line.arg" value="--system '${javac.systemmodulepath}'">
  109. <and>
  110. <isset property="javac.systemmodulepath"/>
  111. <length length="0" string="${javac.systemmodulepath}" when="greater"/>
  112. </and>
  113. </condition>
  114. <property name="dist.jlink.dir" value="${dist.dir}/jlink"/>
  115. <property name="dist.jlink.output" value="${dist.jlink.dir}/${application.title}"/>
  116. <property name="module.name" value=""/>
  117. </target>
  118. <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property,-init-modules-supported" name="-do-init">
  119. <property name="platform.java" value="${java.home}/bin/java"/>
  120. <available file="${manifest.file}" property="manifest.available"/>
  121. <condition property="splashscreen.available">
  122. <and>
  123. <not>
  124. <equals arg1="${application.splash}" arg2="" trim="true"/>
  125. </not>
  126. <available file="${application.splash}"/>
  127. </and>
  128. </condition>
  129. <condition property="main.class.available">
  130. <and>
  131. <isset property="main.class"/>
  132. <not>
  133. <equals arg1="${main.class}" arg2="" trim="true"/>
  134. </not>
  135. </and>
  136. </condition>
  137. <condition property="profile.available">
  138. <and>
  139. <isset property="javac.profile"/>
  140. <length length="0" string="${javac.profile}" when="greater"/>
  141. <not>
  142. <matches pattern="1\.[0-7](\..*)?" string="${javac.source}"/>
  143. </not>
  144. </and>
  145. </condition>
  146. <condition property="do.archive">
  147. <or>
  148. <not>
  149. <istrue value="${jar.archive.disabled}"/>
  150. </not>
  151. <istrue value="${not.archive.disabled}"/>
  152. </or>
  153. </condition>
  154. <condition property="do.archive+manifest.available">
  155. <and>
  156. <isset property="manifest.available"/>
  157. <istrue value="${do.archive}"/>
  158. </and>
  159. </condition>
  160. <condition property="do.archive+main.class.available">
  161. <and>
  162. <isset property="main.class.available"/>
  163. <istrue value="${do.archive}"/>
  164. </and>
  165. </condition>
  166. <condition property="do.archive+splashscreen.available">
  167. <and>
  168. <isset property="splashscreen.available"/>
  169. <istrue value="${do.archive}"/>
  170. </and>
  171. </condition>
  172. <condition property="do.archive+profile.available">
  173. <and>
  174. <isset property="profile.available"/>
  175. <istrue value="${do.archive}"/>
  176. </and>
  177. </condition>
  178. <condition property="have.tests">
  179. <or/>
  180. </condition>
  181. <condition property="have.sources">
  182. <or>
  183. <available file="${src.dir}"/>
  184. </or>
  185. </condition>
  186. <condition property="netbeans.home+have.tests">
  187. <and>
  188. <isset property="netbeans.home"/>
  189. <isset property="have.tests"/>
  190. </and>
  191. </condition>
  192. <condition property="no.javadoc.preview">
  193. <and>
  194. <isset property="javadoc.preview"/>
  195. <isfalse value="${javadoc.preview}"/>
  196. </and>
  197. </condition>
  198. <property name="run.jvmargs" value=""/>
  199. <property name="run.jvmargs.ide" value=""/>
  200. <property name="javac.compilerargs" value=""/>
  201. <property name="work.dir" value="${basedir}"/>
  202. <condition property="no.deps">
  203. <and>
  204. <istrue value="${no.dependencies}"/>
  205. </and>
  206. </condition>
  207. <property name="javac.debug" value="true"/>
  208. <property name="javadoc.preview" value="true"/>
  209. <property name="application.args" value=""/>
  210. <property name="source.encoding" value="${file.encoding}"/>
  211. <property name="runtime.encoding" value="${source.encoding}"/>
  212. <property name="manifest.encoding" value="${source.encoding}"/>
  213. <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  214. <and>
  215. <isset property="javadoc.encoding"/>
  216. <not>
  217. <equals arg1="${javadoc.encoding}" arg2=""/>
  218. </not>
  219. </and>
  220. </condition>
  221. <property name="javadoc.encoding.used" value="${source.encoding}"/>
  222. <property name="includes" value="**"/>
  223. <property name="excludes" value=""/>
  224. <property name="do.depend" value="false"/>
  225. <condition property="do.depend.true">
  226. <istrue value="${do.depend}"/>
  227. </condition>
  228. <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
  229. <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
  230. <and>
  231. <isset property="endorsed.classpath"/>
  232. <not>
  233. <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
  234. </not>
  235. </and>
  236. </condition>
  237. <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
  238. <isset property="profile.available"/>
  239. </condition>
  240. <condition else="false" property="jdkBug6558476">
  241. <and>
  242. <matches pattern="1\.[56]" string="${java.specification.version}"/>
  243. <not>
  244. <os family="unix"/>
  245. </not>
  246. </and>
  247. </condition>
  248. <condition else="false" property="javac.fork">
  249. <or>
  250. <istrue value="${jdkBug6558476}"/>
  251. <istrue value="${javac.external.vm}"/>
  252. </or>
  253. </condition>
  254. <property name="jar.index" value="false"/>
  255. <property name="jar.index.metainf" value="${jar.index}"/>
  256. <property name="copylibs.rebase" value="true"/>
  257. <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
  258. <condition property="junit.available">
  259. <or>
  260. <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
  261. <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
  262. </or>
  263. </condition>
  264. <condition property="testng.available">
  265. <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
  266. </condition>
  267. <condition property="junit+testng.available">
  268. <and>
  269. <istrue value="${junit.available}"/>
  270. <istrue value="${testng.available}"/>
  271. </and>
  272. </condition>
  273. <condition else="testng" property="testng.mode" value="mixed">
  274. <istrue value="${junit+testng.available}"/>
  275. </condition>
  276. <condition else="" property="testng.debug.mode" value="-mixed">
  277. <istrue value="${junit+testng.available}"/>
  278. </condition>
  279. <property name="java.failonerror" value="true"/>
  280. </target>
  281. <target name="-post-init">
  282. <!-- Empty placeholder for easier customization. -->
  283. <!-- You can override this target in the ../build.xml file. -->
  284. </target>
  285. <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  286. <fail unless="src.dir">Must set src.dir</fail>
  287. <fail unless="build.dir">Must set build.dir</fail>
  288. <fail unless="dist.dir">Must set dist.dir</fail>
  289. <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  290. <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  291. <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  292. <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  293. <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  294. <fail unless="dist.jar">Must set dist.jar</fail>
  295. </target>
  296. <target name="-init-macrodef-property">
  297. <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
  298. <attribute name="name"/>
  299. <attribute name="value"/>
  300. <sequential>
  301. <property name="@{name}" value="${@{value}}"/>
  302. </sequential>
  303. </macrodef>
  304. </target>
  305. <target depends="-init-ap-cmdline-properties,-init-source-module-properties" if="modules.supported.internal" name="-init-macrodef-javac-with-module">
  306. <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  307. <attribute default="${src.dir}" name="srcdir"/>
  308. <attribute default="${build.classes.dir}" name="destdir"/>
  309. <attribute default="${javac.classpath}" name="classpath"/>
  310. <attribute default="${javac.modulepath}" name="modulepath"/>
  311. <attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
  312. <attribute default="${javac.processorpath}" name="processorpath"/>
  313. <attribute default="${javac.processormodulepath}" name="processormodulepath"/>
  314. <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  315. <attribute default="${includes}" name="includes"/>
  316. <attribute default="${excludes}" name="excludes"/>
  317. <attribute default="${javac.debug}" name="debug"/>
  318. <attribute default="${empty.dir}" name="sourcepath" unless:set="named.module.internal"/>
  319. <attribute default="${src.dir}" if:set="named.module.internal" name="sourcepath"/>
  320. <attribute default="${empty.dir}" name="gensrcdir"/>
  321. <element name="customize" optional="true"/>
  322. <sequential>
  323. <condition property="warn.excludes.internal">
  324. <and>
  325. <isset property="named.module.internal"/>
  326. <length length="0" string="@{excludes}" trim="true" when="greater"/>
  327. </and>
  328. </condition>
  329. <echo if:set="warn.excludes.internal" level="warning" message="The javac excludes are not supported in the JDK 9 Named Module."/>
  330. <property location="${build.dir}/empty" name="empty.dir"/>
  331. <mkdir dir="${empty.dir}"/>
  332. <mkdir dir="@{apgeneratedsrcdir}"/>
  333. <condition property="processormodulepath.set">
  334. <resourcecount count="0" when="greater">
  335. <path>
  336. <pathelement path="@{processormodulepath}"/>
  337. </path>
  338. </resourcecount>
  339. </condition>
  340. <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}">
  341. <src>
  342. <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  343. <include name="*"/>
  344. </dirset>
  345. </src>
  346. <classpath>
  347. <path path="@{classpath}"/>
  348. </classpath>
  349. <modulepath>
  350. <path path="@{modulepath}"/>
  351. </modulepath>
  352. <upgrademodulepath>
  353. <path path="@{upgrademodulepath}"/>
  354. </upgrademodulepath>
  355. <compilerarg line="${javac.systemmodulepath.cmd.line.arg}"/>
  356. <compilerarg line="${javac.profile.cmd.line.arg}"/>
  357. <compilerarg line="${javac.compilerargs}"/>
  358. <compilerarg if:set="processormodulepath.set" value="--processor-module-path"/>
  359. <compilerarg if:set="processormodulepath.set" path="@{processormodulepath}"/>
  360. <compilerarg unless:set="processormodulepath.set" value="-processorpath"/>
  361. <compilerarg path="@{processorpath}:${empty.dir}" unless:set="processormodulepath.set"/>
  362. <compilerarg line="${ap.processors.internal}"/>
  363. <compilerarg line="${annotation.processing.processor.options}"/>
  364. <compilerarg value="-s"/>
  365. <compilerarg path="@{apgeneratedsrcdir}"/>
  366. <compilerarg line="${ap.proc.none.internal}"/>
  367. <customize/>
  368. </javac>
  369. </sequential>
  370. </macrodef>
  371. </target>
  372. <target depends="-init-ap-cmdline-properties,-init-source-module-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors" unless="modules.supported.internal">
  373. <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  374. <attribute default="${src.dir}" name="srcdir"/>
  375. <attribute default="${build.classes.dir}" name="destdir"/>
  376. <attribute default="${javac.classpath}" name="classpath"/>
  377. <attribute default="${javac.modulepath}" name="modulepath"/>
  378. <attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
  379. <attribute default="${javac.processorpath}" name="processorpath"/>
  380. <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  381. <attribute default="${includes}" name="includes"/>
  382. <attribute default="${excludes}" name="excludes"/>
  383. <attribute default="${javac.debug}" name="debug"/>
  384. <attribute default="${empty.dir}" name="sourcepath"/>
  385. <attribute default="${empty.dir}" name="gensrcdir"/>
  386. <element name="customize" optional="true"/>
  387. <sequential>
  388. <property location="${build.dir}/empty" name="empty.dir"/>
  389. <mkdir dir="${empty.dir}"/>
  390. <mkdir dir="@{apgeneratedsrcdir}"/>
  391. <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}">
  392. <src>
  393. <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  394. <include name="*"/>
  395. </dirset>
  396. </src>
  397. <classpath>
  398. <path path="@{classpath}"/>
  399. </classpath>
  400. <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  401. <compilerarg line="${javac.profile.cmd.line.arg}"/>
  402. <compilerarg line="${javac.compilerargs}"/>
  403. <compilerarg value="-processorpath"/>
  404. <compilerarg path="@{processorpath}:${empty.dir}"/>
  405. <compilerarg line="${ap.processors.internal}"/>
  406. <compilerarg line="${annotation.processing.processor.options}"/>
  407. <compilerarg value="-s"/>
  408. <compilerarg path="@{apgeneratedsrcdir}"/>
  409. <compilerarg line="${ap.proc.none.internal}"/>
  410. <customize/>
  411. </javac>
  412. </sequential>
  413. </macrodef>
  414. </target>
  415. <target depends="-init-ap-cmdline-properties,-init-source-module-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
  416. <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  417. <attribute default="${src.dir}" name="srcdir"/>
  418. <attribute default="${build.classes.dir}" name="destdir"/>
  419. <attribute default="${javac.classpath}" name="classpath"/>
  420. <attribute default="${javac.modulepath}" name="modulepath"/>
  421. <attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
  422. <attribute default="${javac.processorpath}" name="processorpath"/>
  423. <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  424. <attribute default="${includes}" name="includes"/>
  425. <attribute default="${excludes}" name="excludes"/>
  426. <attribute default="${javac.debug}" name="debug"/>
  427. <attribute default="${empty.dir}" name="sourcepath"/>
  428. <attribute default="${empty.dir}" name="gensrcdir"/>
  429. <element name="customize" optional="true"/>
  430. <sequential>
  431. <property location="${build.dir}/empty" name="empty.dir"/>
  432. <mkdir dir="${empty.dir}"/>
  433. <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}">
  434. <src>
  435. <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  436. <include name="*"/>
  437. </dirset>
  438. </src>
  439. <classpath>
  440. <path path="@{classpath}"/>
  441. </classpath>
  442. <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  443. <compilerarg line="${javac.profile.cmd.line.arg}"/>
  444. <compilerarg line="${javac.compilerargs}"/>
  445. <customize/>
  446. </javac>
  447. </sequential>
  448. </macrodef>
  449. </target>
  450. <target depends="-init-macrodef-javac-with-module,-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
  451. <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
  452. <attribute default="${src.dir}" name="srcdir"/>
  453. <attribute default="${build.classes.dir}" name="destdir"/>
  454. <attribute default="${javac.classpath}" name="classpath"/>
  455. <sequential>
  456. <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
  457. <classpath>
  458. <path path="@{classpath}"/>
  459. </classpath>
  460. </depend>
  461. </sequential>
  462. </macrodef>
  463. <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
  464. <attribute default="${build.classes.dir}" name="destdir"/>
  465. <sequential>
  466. <fail unless="javac.includes">Must set javac.includes</fail>
  467. <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
  468. <path>
  469. <filelist dir="@{destdir}" files="${javac.includes}"/>
  470. </path>
  471. <globmapper from="*.java" to="*.class"/>
  472. </pathconvert>
  473. <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
  474. <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
  475. <delete>
  476. <files includesfile="${javac.includesfile.binary}"/>
  477. </delete>
  478. <delete>
  479. <fileset file="${javac.includesfile.binary}"/>
  480. </delete>
  481. </sequential>
  482. </macrodef>
  483. </target>
  484. <target if="${junit.available}" name="-init-macrodef-junit-init">
  485. <condition else="false" property="nb.junit.batch" value="true">
  486. <and>
  487. <istrue value="${junit.available}"/>
  488. <not>
  489. <isset property="test.method"/>
  490. </not>
  491. </and>
  492. </condition>
  493. <condition else="false" property="nb.junit.single" value="true">
  494. <and>
  495. <istrue value="${junit.available}"/>
  496. <isset property="test.method"/>
  497. </and>
  498. </condition>
  499. </target>
  500. <target name="-init-test-properties">
  501. <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
  502. <property name="test.binarytestincludes" value=""/>
  503. <property name="test.binaryexcludes" value=""/>
  504. </target>
  505. <target depends="-init-modules-supported" if="modules.supported.internal" name="-init-macrodef-junit-prototype-with-module">
  506. <macrodef name="junit-prototype" uri="http://www.netbeans.org/ns/j2se-project/3">
  507. <attribute default="${includes}" name="includes"/>
  508. <attribute default="${excludes}" name="excludes"/>
  509. <element name="customizePrototype" optional="true"/>
  510. <sequential>
  511. <property name="junit.forkmode" value="perTest"/>
  512. <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
  513. <syspropertyset>
  514. <propertyref prefix="test-sys-prop."/>
  515. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  516. </syspropertyset>
  517. <classpath>
  518. <path path="${run.test.classpath}"/>
  519. </classpath>
  520. <modulepath>
  521. <path path="${run.test.modulepath}"/>
  522. </modulepath>
  523. <formatter type="brief" usefile="false"/>
  524. <formatter type="xml"/>
  525. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  526. <jvmarg value="-ea"/>
  527. <jvmarg line="${run.test.jvmargs}"/>
  528. <customizePrototype/>
  529. </junit>
  530. </sequential>
  531. </macrodef>
  532. </target>
  533. <target depends="-init-modules-supported" name="-init-macrodef-junit-prototype-without-module" unless="modules.supported.internal">
  534. <macrodef name="junit-prototype" uri="http://www.netbeans.org/ns/j2se-project/3">
  535. <attribute default="${includes}" name="includes"/>
  536. <attribute default="${excludes}" name="excludes"/>
  537. <element name="customizePrototype" optional="true"/>
  538. <sequential>
  539. <property name="junit.forkmode" value="perTest"/>
  540. <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
  541. <syspropertyset>
  542. <propertyref prefix="test-sys-prop."/>
  543. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  544. </syspropertyset>
  545. <classpath>
  546. <path path="${run.test.classpath}"/>
  547. </classpath>
  548. <formatter type="brief" usefile="false"/>
  549. <formatter type="xml"/>
  550. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  551. <jvmarg value="-ea"/>
  552. <customizePrototype/>
  553. </junit>
  554. </sequential>
  555. </macrodef>
  556. </target>
  557. <target depends="-init-test-properties,-init-macrodef-junit-prototype-with-module,-init-macrodef-junit-prototype-without-module" if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
  558. <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
  559. <attribute default="${includes}" name="includes"/>
  560. <attribute default="${excludes}" name="excludes"/>
  561. <attribute default="**" name="testincludes"/>
  562. <attribute default="" name="testmethods"/>
  563. <element name="customize" optional="true"/>
  564. <sequential>
  565. <j2seproject3:junit-prototype>
  566. <customizePrototype>
  567. <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
  568. <customize/>
  569. </customizePrototype>
  570. </j2seproject3:junit-prototype>
  571. </sequential>
  572. </macrodef>
  573. </target>
  574. <target depends="-init-test-properties,-init-macrodef-junit-prototype-with-module,-init-macrodef-junit-prototype-without-module" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
  575. <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
  576. <attribute default="${includes}" name="includes"/>
  577. <attribute default="${excludes}" name="excludes"/>
  578. <attribute default="**" name="testincludes"/>
  579. <attribute default="" name="testmethods"/>
  580. <element name="customize" optional="true"/>
  581. <sequential>
  582. <j2seproject3:junit-prototype>
  583. <customizePrototype>
  584. <batchtest todir="${build.test.results.dir}">
  585. <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
  586. <filename name="${test.binarytestincludes}"/>
  587. </fileset>
  588. </batchtest>
  589. <customize/>
  590. </customizePrototype>
  591. </j2seproject3:junit-prototype>
  592. </sequential>
  593. </macrodef>
  594. </target>
  595. <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
  596. <target if="${testng.available}" name="-init-macrodef-testng">
  597. <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
  598. <attribute default="${includes}" name="includes"/>
  599. <attribute default="${excludes}" name="excludes"/>
  600. <attribute default="**" name="testincludes"/>
  601. <attribute default="" name="testmethods"/>
  602. <element name="customize" optional="true"/>
  603. <sequential>
  604. <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
  605. <isset property="test.method"/>
  606. </condition>
  607. <union id="test.set"/>
  608. <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
  609. <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="Timor_VasgwLottery" testname="TestNG tests" workingDir="${work.dir}">
  610. <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
  611. <propertyset>
  612. <propertyref prefix="test-sys-prop."/>
  613. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  614. </propertyset>
  615. <classpath>
  616. <path path="${run.test.classpath}"/>
  617. </classpath>
  618. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  619. <customize/>
  620. </testng>
  621. </sequential>
  622. </macrodef>
  623. </target>
  624. <target name="-init-macrodef-test-impl">
  625. <macrodef name="test-impl" 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. <element implicit="true" name="customize" optional="true"/>
  631. <sequential>
  632. <echo>No tests executed.</echo>
  633. </sequential>
  634. </macrodef>
  635. </target>
  636. <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
  637. <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  638. <attribute default="${includes}" name="includes"/>
  639. <attribute default="${excludes}" name="excludes"/>
  640. <attribute default="**" name="testincludes"/>
  641. <attribute default="" name="testmethods"/>
  642. <element implicit="true" name="customize" optional="true"/>
  643. <sequential>
  644. <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  645. <customize/>
  646. </j2seproject3:junit>
  647. </sequential>
  648. </macrodef>
  649. </target>
  650. <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
  651. <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  652. <attribute default="${includes}" name="includes"/>
  653. <attribute default="${excludes}" name="excludes"/>
  654. <attribute default="**" name="testincludes"/>
  655. <attribute default="" name="testmethods"/>
  656. <element implicit="true" name="customize" optional="true"/>
  657. <sequential>
  658. <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  659. <customize/>
  660. </j2seproject3:testng>
  661. </sequential>
  662. </macrodef>
  663. </target>
  664. <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
  665. <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
  666. <attribute default="${includes}" name="includes"/>
  667. <attribute default="${excludes}" name="excludes"/>
  668. <attribute default="**" name="testincludes"/>
  669. <attribute default="" name="testmethods"/>
  670. <sequential>
  671. <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  672. <customize>
  673. <jvmarg line="${run.jvmargs}"/>
  674. <jvmarg line="${run.jvmargs.ide}"/>
  675. </customize>
  676. </j2seproject3:test-impl>
  677. </sequential>
  678. </macrodef>
  679. </target>
  680. <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
  681. <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  682. <attribute default="${includes}" name="includes"/>
  683. <attribute default="${excludes}" name="excludes"/>
  684. <attribute default="**" name="testincludes"/>
  685. <attribute default="" name="testmethods"/>
  686. <element name="customizeDebuggee" optional="true"/>
  687. <sequential>
  688. <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  689. <customize>
  690. <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
  691. <customizeDebuggee/>
  692. </customize>
  693. </j2seproject3:junit>
  694. </sequential>
  695. </macrodef>
  696. </target>
  697. <target if="${testng.available}" name="-init-macrodef-testng-debug">
  698. <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  699. <attribute default="${main.class}" name="testClass"/>
  700. <attribute default="" name="testMethod"/>
  701. <element name="customize2" optional="true"/>
  702. <sequential>
  703. <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
  704. <isset property="test.method"/>
  705. </condition>
  706. <condition else="-suitename Timor_VasgwLottery -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
  707. <matches pattern=".*\.xml" string="@{testClass}"/>
  708. </condition>
  709. <delete dir="${build.test.results.dir}" quiet="true"/>
  710. <mkdir dir="${build.test.results.dir}"/>
  711. <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
  712. <customizeDebuggee>
  713. <customize2/>
  714. <jvmarg value="-ea"/>
  715. <arg line="${testng.debug.mode}"/>
  716. <arg line="-d ${build.test.results.dir}"/>
  717. <arg line="-listener org.testng.reporters.VerboseReporter"/>
  718. <arg line="${testng.cmd.args}"/>
  719. </customizeDebuggee>
  720. </j2seproject3:debug>
  721. </sequential>
  722. </macrodef>
  723. </target>
  724. <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
  725. <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  726. <attribute default="${main.class}" name="testClass"/>
  727. <attribute default="" name="testMethod"/>
  728. <element implicit="true" name="customize2" optional="true"/>
  729. <sequential>
  730. <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
  731. <customize2/>
  732. </j2seproject3:testng-debug>
  733. </sequential>
  734. </macrodef>
  735. </target>
  736. <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
  737. <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  738. <attribute default="${includes}" name="includes"/>
  739. <attribute default="${excludes}" name="excludes"/>
  740. <attribute default="**" name="testincludes"/>
  741. <attribute default="" name="testmethods"/>
  742. <attribute default="${main.class}" name="testClass"/>
  743. <attribute default="" name="testMethod"/>
  744. <sequential>
  745. <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  746. <customizeDebuggee>
  747. <jvmarg line="${run.jvmargs}"/>
  748. <jvmarg line="${run.jvmargs.ide}"/>
  749. </customizeDebuggee>
  750. </j2seproject3:test-debug-impl>
  751. </sequential>
  752. </macrodef>
  753. </target>
  754. <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
  755. <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  756. <attribute default="${includes}" name="includes"/>
  757. <attribute default="${excludes}" name="excludes"/>
  758. <attribute default="**" name="testincludes"/>
  759. <attribute default="" name="testmethods"/>
  760. <attribute default="${main.class}" name="testClass"/>
  761. <attribute default="" name="testMethod"/>
  762. <sequential>
  763. <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
  764. <customize2>
  765. <syspropertyset>
  766. <propertyref prefix="test-sys-prop."/>
  767. <mapper from="test-sys-prop.*" to="*" type="glob"/>
  768. </syspropertyset>
  769. </customize2>
  770. </j2seproject3:testng-debug-impl>
  771. </sequential>
  772. </macrodef>
  773. </target>
  774. <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
  775. <!--
  776. pre NB7.2 profiling section; consider it deprecated
  777. -->
  778. <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
  779. <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
  780. <!-- Empty placeholder for easier customization. -->
  781. <!-- You can override this target in the ../build.xml file. -->
  782. </target>
  783. <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
  784. <!-- Empty placeholder for easier customization. -->
  785. <!-- You can override this target in the ../build.xml file. -->
  786. </target>
  787. <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
  788. <macrodef name="resolve">
  789. <attribute name="name"/>
  790. <attribute name="value"/>
  791. <sequential>
  792. <property name="@{name}" value="${env.@{value}}"/>
  793. </sequential>
  794. </macrodef>
  795. <macrodef name="profile">
  796. <attribute default="${main.class}" name="classname"/>
  797. <element name="customize" optional="true"/>
  798. <sequential>
  799. <property environment="env"/>
  800. <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
  801. <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
  802. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  803. <jvmarg value="${profiler.info.jvmargs.agent}"/>
  804. <jvmarg line="${profiler.info.jvmargs}"/>
  805. <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  806. <arg line="${application.args}"/>
  807. <classpath>
  808. <path path="${run.classpath}"/>
  809. </classpath>
  810. <syspropertyset>
  811. <propertyref prefix="run-sys-prop."/>
  812. <mapper from="run-sys-prop.*" to="*" type="glob"/>
  813. </syspropertyset>
  814. <customize/>
  815. </java>
  816. </sequential>
  817. </macrodef>
  818. </target>
  819. <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
  820. <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
  821. <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
  822. </target>
  823. <!--
  824. end of pre NB7.2 profiling section
  825. -->
  826. <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  827. <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
  828. <attribute default="${main.class}" name="name"/>
  829. <attribute default="${debug.modulepath}" name="modulepath"/>
  830. <attribute default="${debug.classpath}" name="classpath"/>
  831. <attribute default="" name="stopclassname"/>
  832. <sequential>
  833. <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
  834. <modulepath>
  835. <path path="@{modulepath}"/>
  836. </modulepath>
  837. <classpath>
  838. <path path="@{classpath}"/>
  839. </classpath>
  840. </nbjpdastart>
  841. </sequential>
  842. </macrodef>
  843. <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
  844. <attribute default="${build.classes.dir}" name="dir"/>
  845. <sequential>
  846. <nbjpdareload>
  847. <fileset dir="@{dir}" includes="${fix.classes}">
  848. <include name="${fix.includes}*.class"/>
  849. </fileset>
  850. </nbjpdareload>
  851. </sequential>
  852. </macrodef>
  853. </target>
  854. <target name="-init-debug-args">
  855. <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  856. <os family="windows"/>
  857. </condition>
  858. <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  859. <isset property="debug.transport"/>
  860. </condition>
  861. </target>
  862. <target depends="-init-debug-args" name="-init-macrodef-debug">
  863. <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  864. <attribute default="${module.name}" name="modulename"/>
  865. <attribute default="${main.class}" name="classname"/>
  866. <attribute default="${debug.modulepath}" name="modulepath"/>
  867. <attribute default="${debug.classpath}" name="classpath"/>
  868. <element name="customizeDebuggee" optional="true"/>
  869. <sequential>
  870. <j2seproject1:java classname="@{classname}" classpath="@{classpath}" modulename="@{modulename}" modulepath="@{modulepath}">
  871. <customize>
  872. <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
  873. <customizeDebuggee/>
  874. </customize>
  875. </j2seproject1:java>
  876. </sequential>
  877. </macrodef>
  878. </target>
  879. <target depends="-init-source-module-properties" if="named.module.internal" name="-init-macrodef-java-with-module">
  880. <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
  881. <attribute default="${module.name}" name="modulename"/>
  882. <attribute default="${main.class}" name="classname"/>
  883. <attribute default="${run.modulepath}" name="modulepath"/>
  884. <attribute default="${run.upgrademodulepath}" name="upgrademodulepath"/>
  885. <attribute default="${run.classpath}" name="classpath"/>
  886. <attribute default="jvm" name="jvm"/>
  887. <element name="customize" optional="true"/>
  888. <sequential>
  889. <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true" module="@{modulename}">
  890. <classpath>
  891. <path path="@{classpath}"/>
  892. </classpath>
  893. <modulepath>
  894. <pathelement path="@{modulepath}"/>
  895. <pathelement location="${module.build.classes.dir}"/>
  896. </modulepath>
  897. <upgrademodulepath>
  898. <path path="@{upgrademodulepath}"/>
  899. </upgrademodulepath>
  900. <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  901. <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  902. <jvmarg line="${run.jvmargs}"/>
  903. <jvmarg line="${run.jvmargs.ide}"/>
  904. <syspropertyset>
  905. <propertyref prefix="run-sys-prop."/>
  906. <mapper from="run-sys-prop.*" to="*" type="glob"/>
  907. </syspropertyset>
  908. <customize/>
  909. </java>
  910. </sequential>
  911. </macrodef>
  912. </target>
  913. <target depends="-init-source-module-properties" if="unnamed.module.internal" name="-init-macrodef-java-with-unnamed-module">
  914. <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
  915. <attribute default="" name="modulename"/>
  916. <attribute default="${main.class}" name="classname"/>
  917. <attribute default="${run.modulepath}" name="modulepath"/>
  918. <attribute default="${run.upgrademodulepath}" name="upgrademodulepath"/>
  919. <attribute default="${run.classpath}" name="classpath"/>
  920. <attribute default="jvm" name="jvm"/>
  921. <element name="customize" optional="true"/>
  922. <sequential>
  923. <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
  924. <classpath>
  925. <path path="@{classpath}"/>
  926. </classpath>
  927. <modulepath>
  928. <path path="@{modulepath}"/>
  929. </modulepath>
  930. <upgrademodulepath>
  931. <path path="@{upgrademodulepath}"/>
  932. </upgrademodulepath>
  933. <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  934. <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  935. <jvmarg line="${run.jvmargs}"/>
  936. <jvmarg line="${run.jvmargs.ide}"/>
  937. <syspropertyset>
  938. <propertyref prefix="run-sys-prop."/>
  939. <mapper from="run-sys-prop.*" to="*" type="glob"/>
  940. </syspropertyset>
  941. <customize/>
  942. </java>
  943. </sequential>
  944. </macrodef>
  945. </target>
  946. <target depends="-init-source-module-properties" name="-init-macrodef-java-without-module" unless="modules.supported.internal">
  947. <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
  948. <attribute default="" name="modulename"/>
  949. <attribute default="${main.class}" name="classname"/>
  950. <attribute default="" name="modulepath"/>
  951. <attribute default="${run.classpath}" name="classpath"/>
  952. <attribute default="jvm" name="jvm"/>
  953. <element name="customize" optional="true"/>
  954. <sequential>
  955. <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
  956. <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  957. <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  958. <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  959. <jvmarg line="${run.jvmargs}"/>
  960. <jvmarg line="${run.jvmargs.ide}"/>
  961. <classpath>
  962. <path path="@{classpath}"/>
  963. </classpath>
  964. <syspropertyset>
  965. <propertyref prefix="run-sys-prop."/>
  966. <mapper from="run-sys-prop.*" to="*" type="glob"/>
  967. </syspropertyset>
  968. <customize/>
  969. </java>
  970. </sequential>
  971. </macrodef>
  972. </target>
  973. <target depends="-init-macrodef-java-with-module, -init-macrodef-java-with-unnamed-module, -init-macrodef-java-without-module" name="-init-macrodef-java"/>
  974. <target name="-init-macrodef-copylibs">
  975. <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
  976. <attribute default="${manifest.file}" name="manifest"/>
  977. <element name="customize" optional="true"/>
  978. <sequential>
  979. <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  980. <pathconvert property="run.classpath.without.build.classes.dir">
  981. <path path="${run.classpath}"/>
  982. <map from="${build.classes.dir.resolved}" to=""/>
  983. </pathconvert>
  984. <pathconvert pathsep=" " property="jar.classpath">
  985. <path path="${run.classpath.without.build.classes.dir}"/>
  986. <chainedmapper>
  987. <flattenmapper/>
  988. <filtermapper>
  989. <replacestring from=" " to="%20"/>
  990. </filtermapper>
  991. <globmapper from="*" to="lib/*"/>
  992. </chainedmapper>
  993. </pathconvert>
  994. <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
  995. <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
  996. <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
  997. <manifest>
  998. <attribute name="Class-Path" value="${jar.classpath}"/>
  999. <customize/>
  1000. </manifest>
  1001. </copylibs>
  1002. </sequential>
  1003. </macrodef>
  1004. </target>
  1005. <target name="-init-presetdef-jar">
  1006. <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
  1007. <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">
  1008. <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
  1009. </jar>
  1010. </presetdef>
  1011. </target>
  1012. <target name="-init-ap-cmdline-properties">
  1013. <property name="annotation.processing.enabled" value="true"/>
  1014. <property name="annotation.processing.processors.list" value=""/>
  1015. <property name="annotation.processing.processor.options" value=""/>
  1016. <property name="annotation.processing.run.all.processors" value="true"/>
  1017. <property name="javac.processorpath" value="${javac.classpath}"/>
  1018. <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
  1019. <condition property="ap.supported.internal" value="true">
  1020. <not>
  1021. <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
  1022. </not>
  1023. </condition>
  1024. </target>
  1025. <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
  1026. <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
  1027. <isfalse value="${annotation.processing.run.all.processors}"/>
  1028. </condition>
  1029. <condition else="" property="ap.proc.none.internal" value="-proc:none">
  1030. <isfalse value="${annotation.processing.enabled}"/>
  1031. </condition>
  1032. </target>
  1033. <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
  1034. <property name="ap.cmd.line.internal" value=""/>
  1035. </target>
  1036. <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"/>
  1037. <!--
  1038. ===================
  1039. COMPILATION SECTION
  1040. ===================
  1041. -->
  1042. <target name="-deps-jar-init" unless="built-jar.properties">
  1043. <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
  1044. <delete file="${built-jar.properties}" quiet="true"/>
  1045. </target>
  1046. <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
  1047. <echo level="warn" message="Cycle detected: Timor_VasgwLottery was already built"/>
  1048. </target>
  1049. <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
  1050. <mkdir dir="${build.dir}"/>
  1051. <touch file="${built-jar.properties}" verbose="false"/>
  1052. <property file="${built-jar.properties}" prefix="already.built.jar."/>
  1053. <antcall target="-warn-already-built-jar"/>
  1054. <propertyfile file="${built-jar.properties}">
  1055. <entry key="${basedir}" value=""/>
  1056. </propertyfile>
  1057. <antcall target="-maybe-call-dep">
  1058. <param name="call.built.properties" value="${built-jar.properties}"/>
  1059. <param location="${project.VAS_FW_Vasgw}" name="call.subproject"/>
  1060. <param location="${project.VAS_FW_Vasgw}/build.xml" name="call.script"/>
  1061. <param name="call.target" value="jar"/>
  1062. <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
  1063. <param name="transfer.not.archive.disabled" value="true"/>
  1064. <param name="transfer.do.jlink" value="false"/>
  1065. </antcall>
  1066. </target>
  1067. <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
  1068. <target depends="init" name="-check-automatic-build">
  1069. <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
  1070. </target>
  1071. <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
  1072. <antcall target="clean">
  1073. <param name="no.dependencies" value="true"/>
  1074. </antcall>
  1075. </target>
  1076. <target depends="init,deps-jar" name="-pre-pre-compile">
  1077. <mkdir dir="${build.classes.dir}"/>
  1078. </target>
  1079. <target name="-pre-compile">
  1080. <!-- Empty placeholder for easier customization. -->
  1081. <!-- You can override this target in the ../build.xml file. -->
  1082. </target>
  1083. <target if="do.depend.true" name="-compile-depend">
  1084. <pathconvert property="build.generated.subdirs">
  1085. <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  1086. <include name="*"/>
  1087. </dirset>
  1088. </pathconvert>
  1089. <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
  1090. </target>
  1091. <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
  1092. <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
  1093. <copy todir="${build.classes.dir}">
  1094. <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  1095. </copy>
  1096. </target>
  1097. <target if="has.persistence.xml" name="-copy-persistence-xml">
  1098. <mkdir dir="${build.classes.dir}/META-INF"/>
  1099. <copy todir="${build.classes.dir}/META-INF">
  1100. <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
  1101. </copy>
  1102. </target>
  1103. <target name="-post-compile">
  1104. <!-- Empty placeholder for easier customization. -->
  1105. <!-- You can override this target in the ../build.xml file. -->
  1106. </target>
  1107. <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  1108. <target name="-pre-compile-single">
  1109. <!-- Empty placeholder for easier customization. -->
  1110. <!-- You can override this target in the ../build.xml file. -->
  1111. </target>
  1112. <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  1113. <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  1114. <j2seproject3:force-recompile/>
  1115. <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}, module-info.java" sourcepath="${src.dir}"/>
  1116. </target>
  1117. <target name="-post-compile-single">
  1118. <!-- Empty placeholder for easier customization. -->
  1119. <!-- You can override this target in the ../build.xml file. -->
  1120. </target>
  1121. <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  1122. <!--
  1123. ====================
  1124. JAR BUILDING SECTION
  1125. ====================
  1126. -->
  1127. <target depends="init" name="-pre-pre-jar">
  1128. <dirname file="${dist.jar}" property="dist.jar.dir"/>
  1129. <mkdir dir="${dist.jar.dir}"/>
  1130. </target>
  1131. <target name="-pre-jar">
  1132. <!-- Empty placeholder for easier customization. -->
  1133. <!-- You can override this target in the ../build.xml file. -->
  1134. </target>
  1135. <target depends="init,compile" name="-check-module-main-class">
  1136. <pathconvert property="main.class.file">
  1137. <string value="${main.class}"/>
  1138. <unpackagemapper from="*" to="*.class"/>
  1139. </pathconvert>
  1140. <condition property="do.module.main.class">
  1141. <and>
  1142. <isset property="main.class.available"/>
  1143. <available file="${build.classes.dir}/module-info.class"/>
  1144. <available file="${build.classes.dir}/${main.class.file}"/>
  1145. <isset property="libs.CopyLibs.classpath"/>
  1146. <available classname="org.netbeans.modules.java.j2seproject.moduletask.ModuleMainClass" classpath="${libs.CopyLibs.classpath}"/>
  1147. </and>
  1148. </condition>
  1149. </target>
  1150. <target depends="-check-module-main-class" if="do.module.main.class" name="-set-module-main-class">
  1151. <taskdef classname="org.netbeans.modules.java.j2seproject.moduletask.ModuleMainClass" classpath="${libs.CopyLibs.classpath}" name="modulemainclass"/>
  1152. <modulemainclass failonerror="false" mainclass="${main.class}" moduleinfo="${build.classes.dir}/module-info.class"/>
  1153. </target>
  1154. <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
  1155. <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
  1156. <touch file="${tmp.manifest.file}" verbose="false"/>
  1157. </target>
  1158. <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
  1159. <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
  1160. <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>
  1161. </target>
  1162. <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
  1163. <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
  1164. <attribute name="Main-Class" value="${main.class}"/>
  1165. </manifest>
  1166. </target>
  1167. <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
  1168. <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
  1169. <attribute name="Profile" value="${javac.profile}"/>
  1170. </manifest>
  1171. </target>
  1172. <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
  1173. <basename file="${application.splash}" property="splashscreen.basename"/>
  1174. <mkdir dir="${build.classes.dir}/META-INF"/>
  1175. <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
  1176. <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
  1177. <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
  1178. </manifest>
  1179. </target>
  1180. <target depends="init,compile" name="-check-do-mkdist">
  1181. <condition property="do.mkdist">
  1182. <and>
  1183. <isset property="do.archive"/>
  1184. <isset property="libs.CopyLibs.classpath"/>
  1185. <not>
  1186. <istrue value="${mkdist.disabled}"/>
  1187. </not>
  1188. <not>
  1189. <available file="${build.classes.dir}/module-info.class"/>
  1190. </not>
  1191. </and>
  1192. </condition>
  1193. </target>
  1194. <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,-check-do-mkdist" if="do.mkdist" name="-do-jar-copylibs">
  1195. <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
  1196. <echo level="info">To run this application from the command line without Ant, try:</echo>
  1197. <property location="${dist.jar}" name="dist.jar.resolved"/>
  1198. <echo level="info">java -jar "${dist.jar.resolved}"</echo>
  1199. </target>
  1200. <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,-check-do-mkdist" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
  1201. <j2seproject1:jar manifest="${tmp.manifest.file}"/>
  1202. <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  1203. <property location="${dist.jar}" name="dist.jar.resolved"/>
  1204. <condition else="${dist.jar.resolved}" property="jar.usage.message.class.path.replacement" value="">
  1205. <isset property="named.module.internal"/>
  1206. </condition>
  1207. <pathconvert property="run.classpath.with.dist.jar">
  1208. <path path="${run.classpath}"/>
  1209. <map from="${build.classes.dir.resolved}" to="${jar.usage.message.class.path.replacement}"/>
  1210. </pathconvert>
  1211. <pathconvert property="run.modulepath.with.dist.jar">
  1212. <path location="${dist.jar.resolved}"/>
  1213. <path path="${run.modulepath}"/>
  1214. <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
  1215. </pathconvert>
  1216. <condition else="${run.modulepath}" property="jar.usage.message.run.modulepath.with.dist.jar" value="${run.modulepath.with.dist.jar}">
  1217. <isset property="named.module.internal"/>
  1218. </condition>
  1219. <condition else="" property="jar.usage.message.module.path" value=" -p ${jar.usage.message.run.modulepath.with.dist.jar}">
  1220. <and>
  1221. <isset property="modules.supported.internal"/>
  1222. <length length="0" string="${jar.usage.message.run.modulepath.with.dist.jar}" when="greater"/>
  1223. </and>
  1224. </condition>
  1225. <condition else="" property="jar.usage.message.class.path" value=" -cp ${run.classpath.with.dist.jar}">
  1226. <length length="0" string="${run.classpath.with.dist.jar}" when="greater"/>
  1227. </condition>
  1228. <condition else="/${main.class}" property="jar.usage.message.main.class.class.selector" value="">
  1229. <isset property="do.module.main.class"/>
  1230. </condition>
  1231. <condition else=" ${main.class}" property="jar.usage.message.main.class" value=" -m ${module.name}${jar.usage.message.main.class.class.selector}">
  1232. <isset property="named.module.internal"/>
  1233. </condition>
  1234. <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java}${jar.usage.message.module.path}${jar.usage.message.class.path}${jar.usage.message.main.class}">
  1235. <isset property="main.class.available"/>
  1236. </condition>
  1237. <condition else="debug" property="jar.usage.level" value="info">
  1238. <isset property="main.class.available"/>
  1239. </condition>
  1240. <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
  1241. </target>
  1242. <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
  1243. <delete>
  1244. <fileset file="${tmp.manifest.file}"/>
  1245. </delete>
  1246. </target>
  1247. <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"/>
  1248. <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"/>
  1249. <target name="-post-jar">
  1250. <!-- Empty placeholder for easier customization. -->
  1251. <!-- You can override this target in the ../build.xml file. -->
  1252. </target>
  1253. <target depends="init,compile,-pre-jar,-set-module-main-class,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
  1254. <target depends="init,compile,-pre-jar,-do-jar,-post-jar,deploy" description="Build JAR." name="jar"/>
  1255. <!--
  1256. =================
  1257. DEPLOY SECTION
  1258. =================
  1259. -->
  1260. <target name="-pre-deploy">
  1261. <!-- Empty placeholder for easier customization. -->
  1262. <!-- You can override this target in the ../build.xml file. -->
  1263. </target>
  1264. <target depends="init" name="-check-jlink">
  1265. <condition property="do.jlink.internal">
  1266. <and>
  1267. <istrue value="${do.jlink}"/>
  1268. <isset property="do.archive"/>
  1269. <isset property="named.module.internal"/>
  1270. </and>
  1271. </condition>
  1272. </target>
  1273. <target depends="init,-do-jar,-post-jar,-pre-deploy,-check-jlink" if="do.jlink.internal" name="-do-deploy">
  1274. <delete dir="${dist.jlink.dir}" failonerror="false" quiet="true"/>
  1275. <property name="jlink.launcher.name" value="${application.title}"/>
  1276. <condition else="${module.name}" property="jlink.add.modules" value="${module.name},${jlink.additionalmodules}">
  1277. <and>
  1278. <isset property="jlink.additionalmodules"/>
  1279. <length length="0" string="${jlink.additionalmodules}" when="greater"/>
  1280. </and>
  1281. </condition>
  1282. <condition property="jlink.do.strip.internal">
  1283. <and>
  1284. <isset property="jlink.strip"/>
  1285. <istrue value="${jlink.strip}"/>
  1286. </and>
  1287. </condition>
  1288. <condition property="jlink.do.additionalparam.internal">
  1289. <and>
  1290. <isset property="jlink.additionalparam"/>
  1291. <length length="0" string="${jlink.additionalparam}" when="greater"/>
  1292. </and>
  1293. </condition>
  1294. <condition property="jlink.do.launcher.internal">
  1295. <and>
  1296. <istrue value="${jlink.launcher}"/>
  1297. <isset property="main.class.available"/>
  1298. </and>
  1299. </condition>
  1300. <property name="platform.jlink" value="${jdk.home}/bin/jlink"/>
  1301. <property name="jlink.systemmodules.internal" value="${jdk.home}/jmods"/>
  1302. <exec executable="${platform.jlink}">
  1303. <arg value="--module-path"/>
  1304. <arg path="${jlink.systemmodules.internal}:${run.modulepath}:${dist.jar}"/>
  1305. <arg value="--add-modules"/>
  1306. <arg value="${jlink.add.modules}"/>
  1307. <arg if:set="jlink.do.strip.internal" value="--strip-debug"/>
  1308. <arg if:set="jlink.do.launcher.internal" value="--launcher"/>
  1309. <arg if:set="jlink.do.launcher.internal" value="${jlink.launcher.name}=${module.name}/${main.class}"/>
  1310. <arg if:set="jlink.do.additionalparam.internal" line="${jlink.additionalparam}"/>
  1311. <arg value="--output"/>
  1312. <arg value="${dist.jlink.output}"/>
  1313. </exec>
  1314. </target>
  1315. <target name="-post-deploy">
  1316. <!-- Empty placeholder for easier customization. -->
  1317. <!-- You can override this target in the ../build.xml file. -->
  1318. </target>
  1319. <target depends="-do-jar,-post-jar,-pre-deploy,-do-deploy,-post-deploy" name="deploy"/>
  1320. <!--
  1321. =================
  1322. EXECUTION SECTION
  1323. =================
  1324. -->
  1325. <target depends="init,compile" description="Run a main class." name="run">
  1326. <j2seproject1:java>
  1327. <customize>
  1328. <arg line="${application.args}"/>
  1329. </customize>
  1330. </j2seproject1:java>
  1331. </target>
  1332. <target name="-do-not-recompile">
  1333. <property name="javac.includes.binary" value=""/>
  1334. </target>
  1335. <target depends="init,compile-single" name="run-single">
  1336. <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1337. <j2seproject1:java classname="${run.class}"/>
  1338. </target>
  1339. <target depends="init,compile-test-single" name="run-test-with-main">
  1340. <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1341. <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  1342. </target>
  1343. <!--
  1344. =================
  1345. DEBUGGING SECTION
  1346. =================
  1347. -->
  1348. <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  1349. <j2seproject1:nbjpdastart name="${debug.class}"/>
  1350. </target>
  1351. <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  1352. <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  1353. </target>
  1354. <target depends="init,compile" name="-debug-start-debuggee">
  1355. <j2seproject3:debug>
  1356. <customizeDebuggee>
  1357. <arg line="${application.args}"/>
  1358. </customizeDebuggee>
  1359. </j2seproject3:debug>
  1360. </target>
  1361. <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
  1362. <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
  1363. <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
  1364. </target>
  1365. <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
  1366. <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  1367. <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  1368. <j2seproject3:debug classname="${debug.class}"/>
  1369. </target>
  1370. <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
  1371. <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  1372. <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  1373. <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  1374. </target>
  1375. <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  1376. <target depends="init" name="-pre-debug-fix">
  1377. <fail unless="fix.includes">Must set fix.includes</fail>
  1378. <property name="javac.includes" value="${fix.includes}.java"/>
  1379. </target>
  1380. <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  1381. <j2seproject1:nbjpdareload/>
  1382. </target>
  1383. <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  1384. <!--
  1385. =================
  1386. PROFILING SECTION
  1387. =================
  1388. -->
  1389. <!--
  1390. pre NB7.2 profiler integration
  1391. -->
  1392. <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
  1393. <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1394. <nbprofiledirect>
  1395. <classpath>
  1396. <path path="${run.classpath}"/>
  1397. </classpath>
  1398. </nbprofiledirect>
  1399. <profile/>
  1400. </target>
  1401. <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
  1402. <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
  1403. <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1404. <nbprofiledirect>
  1405. <classpath>
  1406. <path path="${run.classpath}"/>
  1407. </classpath>
  1408. </nbprofiledirect>
  1409. <profile classname="${profile.class}"/>
  1410. </target>
  1411. <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
  1412. <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1413. <nbprofiledirect>
  1414. <classpath>
  1415. <path path="${run.classpath}"/>
  1416. </classpath>
  1417. </nbprofiledirect>
  1418. <profile classname="sun.applet.AppletViewer">
  1419. <customize>
  1420. <arg value="${applet.url}"/>
  1421. </customize>
  1422. </profile>
  1423. </target>
  1424. <target depends="-init-macrodef-junit,profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
  1425. <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1426. <nbprofiledirect>
  1427. <classpath>
  1428. <path path="${run.test.classpath}"/>
  1429. </classpath>
  1430. </nbprofiledirect>
  1431. <j2seproject3:junit excludes="${excludes}" includes="${includes}" testincludes="${profile.class}" testmethods="">
  1432. <customize>
  1433. <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
  1434. <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  1435. <jvmarg value="${profiler.info.jvmargs.agent}"/>
  1436. <jvmarg line="${profiler.info.jvmargs}"/>
  1437. <classpath>
  1438. <path path="${run.test.classpath}"/>
  1439. </classpath>
  1440. </customize>
  1441. </j2seproject3:junit>
  1442. </target>
  1443. <!--
  1444. end of pre NB72 profiling section
  1445. -->
  1446. <target if="netbeans.home" name="-profile-check">
  1447. <condition property="profiler.configured">
  1448. <or>
  1449. <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
  1450. <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
  1451. </or>
  1452. </condition>
  1453. </target>
  1454. <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
  1455. <startprofiler/>
  1456. <antcall target="run"/>
  1457. </target>
  1458. <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">
  1459. <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1460. <startprofiler/>
  1461. <antcall target="run-single"/>
  1462. </target>
  1463. <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
  1464. <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
  1465. <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  1466. <startprofiler/>
  1467. <antcall target="test-single"/>
  1468. </target>
  1469. <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
  1470. <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1471. <startprofiler/>
  1472. <antcall target="run-test-with-main"/>
  1473. </target>
  1474. <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
  1475. <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  1476. <startprofiler/>
  1477. <antcall target="run-applet"/>
  1478. </target>
  1479. <!--
  1480. ===============
  1481. JAVADOC SECTION
  1482. ===============
  1483. -->
  1484. <target depends="init" if="have.sources" name="-javadoc-build">
  1485. <mkdir dir="${dist.javadoc.dir}"/>
  1486. <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
  1487. <and>
  1488. <isset property="endorsed.classpath.cmd.line.arg"/>
  1489. <not>
  1490. <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
  1491. </not>
  1492. </and>
  1493. </condition>
  1494. <condition else="" property="bug5101868workaround" value="*.java">
  1495. <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
  1496. </condition>
  1497. <condition else="" property="javadoc.html5.cmd.line.arg" value="-html5">
  1498. <and>
  1499. <isset property="javadoc.html5"/>
  1500. <available file="${jdk.home}${file.separator}lib${file.separator}jrt-fs.jar"/>
  1501. </and>
  1502. </condition>
  1503. <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}">
  1504. <classpath>
  1505. <path path="${javac.classpath}"/>
  1506. </classpath>
  1507. <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
  1508. <filename name="**/*.java"/>
  1509. </fileset>
  1510. <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  1511. <include name="**/*.java"/>
  1512. <exclude name="*.java"/>
  1513. </fileset>
  1514. <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
  1515. <arg line="${javadoc.html5.cmd.line.arg}"/>
  1516. </javadoc>
  1517. <copy todir="${dist.javadoc.dir}">
  1518. <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  1519. <filename name="**/doc-files/**"/>
  1520. </fileset>
  1521. <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  1522. <include name="**/doc-files/**"/>
  1523. </fileset>
  1524. </copy>
  1525. </target>
  1526. <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
  1527. <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  1528. </target>
  1529. <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
  1530. <!--
  1531. =========================
  1532. TEST COMPILATION SECTION
  1533. =========================
  1534. -->
  1535. <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  1536. <mkdir dir="${build.test.classes.dir}"/>
  1537. </target>
  1538. <target name="-pre-compile-test">
  1539. <!-- Empty placeholder for easier customization. -->
  1540. <!-- You can override this target in the ../build.xml file. -->
  1541. </target>
  1542. <target depends="-init-source-module-properties" if="named.module.internal" name="-init-test-javac-module-properties-with-module">
  1543. <j2seproject3:modulename property="test.module.name" sourcepath=""/>
  1544. <condition else="${empty.dir}" property="javac.test.sourcepath" value="">
  1545. <and>
  1546. <isset property="test.module.name"/>
  1547. <length length="0" string="${test.module.name}" when="greater"/>
  1548. </and>
  1549. </condition>
  1550. <condition else="--patch-module ${module.name}= --add-reads ${module.name}=ALL-UNNAMED" property="javac.test.compilerargs" value="--add-reads ${test.module.name}=ALL-UNNAMED">
  1551. <and>
  1552. <isset property="test.module.name"/>
  1553. <length length="0" string="${test.module.name}" when="greater"/>
  1554. </and>
  1555. </condition>
  1556. </target>
  1557. <target depends="-init-source-module-properties" if="named.module.internal" name="-init-test-run-module-properties">
  1558. <condition else="${module.name}" property="run.test.addexport.source.module.internal" value="${test.module.name}">
  1559. <and>
  1560. <isset property="test.module.name"/>
  1561. <length length="0" string="${test.module.name}" when="greater"/>
  1562. </and>
  1563. </condition>
  1564. <fileset dir="${build.test.classes.dir}" id="run.test.packages.internal" includes="**/*.class"/>
  1565. <property location="${build.test.classes.dir}" name="build.test.classes.dir.abs.internal"/>
  1566. <pathconvert pathsep=" " property="run.test.addexports.internal" refid="run.test.packages.internal">
  1567. <chainedmapper>
  1568. <regexpmapper from="^(.*)\Q${file.separator}\E.*\.class$$" to="\1"/>
  1569. <filtermapper>
  1570. <uniqfilter/>
  1571. <replacestring from="${build.test.classes.dir.abs.internal}" to=""/>
  1572. </filtermapper>
  1573. <cutdirsmapper dirs="1"/>
  1574. <packagemapper from="*" to="--add-exports ${run.test.addexport.source.module.internal}/*=ALL-UNNAMED"/>
  1575. </chainedmapper>
  1576. </pathconvert>
  1577. <condition else="--patch-module ${module.name}=${build.test.classes.dir} --add-modules ${module.name} --add-reads ${module.name}=ALL-UNNAMED ${run.test.addexports.internal}" property="run.test.jvmargs" value="--add-modules ${test.module.name} --add-reads ${test.module.name}=ALL-UNNAMED ${run.test.addexports.internal}">
  1578. <and>
  1579. <isset property="test.module.name"/>
  1580. <length length="0" string="${test.module.name}" when="greater"/>
  1581. </and>
  1582. </condition>
  1583. </target>
  1584. <target depends="-init-source-module-properties" name="-init-test-module-properties-without-module" unless="named.module.internal">
  1585. <property name="javac.test.sourcepath" value="${empty.dir}"/>
  1586. <property name="javac.test.compilerargs" value=""/>
  1587. <property name="run.test.jvmargs" value=""/>
  1588. </target>
  1589. <target depends="-init-test-javac-module-properties-with-module,-init-test-module-properties-without-module" name="-init-test-module-properties"/>
  1590. <target if="do.depend.true" name="-compile-test-depend">
  1591. <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir=""/>
  1592. </target>
  1593. <target depends="init,deps-jar,compile,-init-test-module-properties,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
  1594. <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" modulepath="${javac.test.modulepath}" processorpath="${javac.test.processorpath}" sourcepath="${javac.test.sourcepath}" srcdir="">
  1595. <customize>
  1596. <compilerarg line="${javac.test.compilerargs}"/>
  1597. </customize>
  1598. </j2seproject3:javac>
  1599. <copy todir="${build.test.classes.dir}"/>
  1600. </target>
  1601. <target name="-post-compile-test">
  1602. <!-- Empty placeholder for easier customization. -->
  1603. <!-- You can override this target in the ../build.xml file. -->
  1604. </target>
  1605. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  1606. <target name="-pre-compile-test-single">
  1607. <!-- Empty placeholder for easier customization. -->
  1608. <!-- You can override this target in the ../build.xml file. -->
  1609. </target>
  1610. <target depends="init,deps-jar,compile,-init-test-module-properties,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  1611. <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  1612. <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
  1613. <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}, module-info.java" modulepath="${javac.test.modulepath}" processorpath="${javac.test.processorpath}" sourcepath="" srcdir="">
  1614. <customize>
  1615. <compilerarg line="${javac.test.compilerargs}"/>
  1616. </customize>
  1617. </j2seproject3:javac>
  1618. <copy todir="${build.test.classes.dir}"/>
  1619. </target>
  1620. <target name="-post-compile-test-single">
  1621. <!-- Empty placeholder for easier customization. -->
  1622. <!-- You can override this target in the ../build.xml file. -->
  1623. </target>
  1624. <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  1625. <!--
  1626. =======================
  1627. TEST EXECUTION SECTION
  1628. =======================
  1629. -->
  1630. <target depends="init" if="have.tests" name="-pre-test-run">
  1631. <mkdir dir="${build.test.results.dir}"/>
  1632. </target>
  1633. <target depends="init,compile-test,-init-test-run-module-properties,-pre-test-run" if="have.tests" name="-do-test-run">
  1634. <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
  1635. </target>
  1636. <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  1637. <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  1638. </target>
  1639. <target depends="init" if="have.tests" name="test-report"/>
  1640. <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  1641. <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  1642. <target depends="init" if="have.tests" name="-pre-test-run-single">
  1643. <mkdir dir="${build.test.results.dir}"/>
  1644. </target>
  1645. <target depends="init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  1646. <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  1647. <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
  1648. </target>
  1649. <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  1650. <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  1651. </target>
  1652. <target depends="init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
  1653. <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
  1654. <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
  1655. <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  1656. <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
  1657. </target>
  1658. <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
  1659. <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  1660. </target>
  1661. <target depends="init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
  1662. <!--
  1663. =======================
  1664. TEST DEBUGGING SECTION
  1665. =======================
  1666. -->
  1667. <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
  1668. <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  1669. <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
  1670. </target>
  1671. <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
  1672. <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  1673. <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  1674. <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
  1675. </target>
  1676. <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  1677. <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  1678. </target>
  1679. <target depends="init,compile-test-single,-init-test-run-module-properties,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  1680. <target depends="init,compile-test-single,-init-test-run-module-properties,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
  1681. <target depends="debug-test-method" name="debug-single-method"/>
  1682. <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  1683. <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  1684. </target>
  1685. <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  1686. <!--
  1687. =========================
  1688. APPLET EXECUTION SECTION
  1689. =========================
  1690. -->
  1691. <target depends="init,compile-single" name="run-applet">
  1692. <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  1693. <j2seproject1:java classname="sun.applet.AppletViewer">
  1694. <customize>
  1695. <arg value="${applet.url}"/>
  1696. </customize>
  1697. </j2seproject1:java>
  1698. </target>
  1699. <!--
  1700. =========================
  1701. APPLET DEBUGGING SECTION
  1702. =========================
  1703. -->
  1704. <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
  1705. <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  1706. <j2seproject3:debug classname="sun.applet.AppletViewer">
  1707. <customizeDebuggee>
  1708. <arg value="${applet.url}"/>
  1709. </customizeDebuggee>
  1710. </j2seproject3:debug>
  1711. </target>
  1712. <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
  1713. <!--
  1714. ===============
  1715. CLEANUP SECTION
  1716. ===============
  1717. -->
  1718. <target name="-deps-clean-init" unless="built-clean.properties">
  1719. <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
  1720. <delete file="${built-clean.properties}" quiet="true"/>
  1721. </target>
  1722. <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
  1723. <echo level="warn" message="Cycle detected: Timor_VasgwLottery was already built"/>
  1724. </target>
  1725. <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
  1726. <mkdir dir="${build.dir}"/>
  1727. <touch file="${built-clean.properties}" verbose="false"/>
  1728. <property file="${built-clean.properties}" prefix="already.built.clean."/>
  1729. <antcall target="-warn-already-built-clean"/>
  1730. <propertyfile file="${built-clean.properties}">
  1731. <entry key="${basedir}" value=""/>
  1732. </propertyfile>
  1733. <antcall target="-maybe-call-dep">
  1734. <param name="call.built.properties" value="${built-clean.properties}"/>
  1735. <param location="${project.VAS_FW_Vasgw}" name="call.subproject"/>
  1736. <param location="${project.VAS_FW_Vasgw}/build.xml" name="call.script"/>
  1737. <param name="call.target" value="clean"/>
  1738. <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
  1739. <param name="transfer.not.archive.disabled" value="true"/>
  1740. <param name="transfer.do.jlink" value="false"/>
  1741. </antcall>
  1742. </target>
  1743. <target depends="init" name="-do-clean">
  1744. <delete dir="${build.dir}"/>
  1745. <delete dir="${dist.jlink.output}"/>
  1746. <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
  1747. </target>
  1748. <target name="-post-clean">
  1749. <!-- Empty placeholder for easier customization. -->
  1750. <!-- You can override this target in the ../build.xml file. -->
  1751. </target>
  1752. <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
  1753. <target name="-check-call-dep">
  1754. <property file="${call.built.properties}" prefix="already.built."/>
  1755. <condition property="should.call.dep">
  1756. <and>
  1757. <not>
  1758. <isset property="already.built.${call.subproject}"/>
  1759. </not>
  1760. <available file="${call.script}"/>
  1761. </and>
  1762. </condition>
  1763. </target>
  1764. <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
  1765. <ant antfile="${call.script}" inheritall="false" target="${call.target}">
  1766. <propertyset>
  1767. <propertyref prefix="transfer."/>
  1768. <mapper from="transfer.*" to="*" type="glob"/>
  1769. </propertyset>
  1770. </ant>
  1771. </target>
  1772. </project>