You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-impl.xml 98KB

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