/Prototipo/wsConsume/nbproject/build-impl.xml

http://prototipomemoria.googlecode.com/ · XML · 906 lines · 798 code · 0 blank · 108 comment · 0 complexity · 82794f4a588baeff6313d7b12b7f3102 MD5 · raw file

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