Context-detection API for Android developed as a university project
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 47KB

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