Advertisement
scosaje

drools ant build file

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