PageRenderTime 36ms CodeModel.GetById 19ms app.highlight 10ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://prototipomemoria.googlecode.com/
XML | 1016 lines | 953 code | 0 blank | 63 comment | 0 complexity | b1e181f2cd6fabb9d80a5b5c08cf0734 MD5 | raw file
Possible License(s): BSD-3-Clause
   1<?xml version="1.0" encoding="UTF-8"?>
   2<!--
   3        *** GENERATED FROM project.xml - DO NOT EDIT  ***
   4        ***         EDIT ../build.xml INSTEAD         ***
   5
   6        For the purpose of easier reading the script
   7        is divided into following sections:
   8        - initialization
   9        - compilation
  10        - dist
  11        - execution
  12        - debugging
  13        - javadoc
  14        - junit compilation
  15        - junit execution
  16        - junit debugging
  17        - cleanup
  18
  19        -->
  20<project xmlns:webproject1="http://www.netbeans.org/ns/web-project/1" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" basedir=".." default="default" name="PrototipoMemoria-impl">
  21    <import file="rest-build.xml"/>
  22    <import file="jaxws-build.xml"/>
  23    <import file="ant-deploy.xml"/>
  24    <fail message="Please build using Ant 1.7.1 or higher.">
  25        <condition>
  26            <not>
  27                <antversion atleast="1.7.1"/>
  28            </not>
  29        </condition>
  30    </fail>
  31    <target depends="dist,javadoc" description="Build whole project." name="default"/>
  32    <!--
  33                INITIALIZATION SECTION
  34            -->
  35    <target name="-pre-init">
  36        <!-- Empty placeholder for easier customization. -->
  37        <!-- You can override this target in the ../build.xml file. -->
  38    </target>
  39    <target depends="-pre-init" name="-init-private">
  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/project.properties"/>
  51    </target>
  52    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
  53    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
  54        <condition property="have.tests">
  55            <or>
  56                <available file="${test.src.dir}"/>
  57            </or>
  58        </condition>
  59        <condition property="have.sources">
  60            <or>
  61                <available file="${src.dir}"/>
  62            </or>
  63        </condition>
  64        <condition property="netbeans.home+have.tests">
  65            <and>
  66                <isset property="netbeans.home"/>
  67                <isset property="have.tests"/>
  68            </and>
  69        </condition>
  70        <condition property="no.javadoc.preview">
  71            <isfalse value="${javadoc.preview}"/>
  72        </condition>
  73        <property name="javac.compilerargs" value=""/>
  74        <condition property="no.deps">
  75            <and>
  76                <istrue value="${no.dependencies}"/>
  77            </and>
  78        </condition>
  79        <condition property="no.dist.ear.dir">
  80            <not>
  81                <isset property="dist.ear.dir"/>
  82            </not>
  83        </condition>
  84        <property name="build.web.excludes" value="${build.classes.excludes}"/>
  85        <condition property="do.compile.jsps">
  86            <istrue value="${compile.jsps}"/>
  87        </condition>
  88        <condition property="do.debug.server">
  89            <or>
  90                <not>
  91                    <isset property="debug.server"/>
  92                </not>
  93                <istrue value="${debug.server}"/>
  94                <and>
  95                    <not>
  96                        <istrue value="${debug.server}"/>
  97                    </not>
  98                    <not>
  99                        <istrue value="${debug.client}"/>
 100                    </not>
 101                </and>
 102            </or>
 103        </condition>
 104        <condition property="do.debug.client">
 105            <istrue value="${debug.client}"/>
 106        </condition>
 107        <condition property="do.display.browser">
 108            <istrue value="${display.browser}"/>
 109        </condition>
 110        <condition property="do.display.browser.debug">
 111            <and>
 112                <isset property="do.display.browser"/>
 113                <not>
 114                    <isset property="do.debug.client"/>
 115                </not>
 116            </and>
 117        </condition>
 118        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
 119        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
 120        <condition property="do.war.package.with.custom.manifest">
 121            <isset property="has.custom.manifest"/>
 122        </condition>
 123        <condition property="do.war.package.without.custom.manifest">
 124            <not>
 125                <isset property="has.custom.manifest"/>
 126            </not>
 127        </condition>
 128        <condition property="do.tmp.war.package.with.custom.manifest">
 129            <and>
 130                <isset property="has.custom.manifest"/>
 131                <or>
 132                    <isfalse value="${directory.deployment.supported}"/>
 133                    <isset property="dist.ear.dir"/>
 134                </or>
 135            </and>
 136        </condition>
 137        <condition property="do.tmp.war.package.without.custom.manifest">
 138            <and>
 139                <not>
 140                    <isset property="has.custom.manifest"/>
 141                </not>
 142                <or>
 143                    <isfalse value="${directory.deployment.supported}"/>
 144                    <isset property="dist.ear.dir"/>
 145                </or>
 146            </and>
 147        </condition>
 148        <condition property="do.tmp.war.package">
 149            <or>
 150                <isfalse value="${directory.deployment.supported}"/>
 151                <isset property="dist.ear.dir"/>
 152            </or>
 153        </condition>
 154        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
 155        <condition else="" property="application.args.param" value="${application.args}">
 156            <and>
 157                <isset property="application.args"/>
 158                <not>
 159                    <equals arg1="${application.args}" arg2="" trim="true"/>
 160                </not>
 161            </and>
 162        </condition>
 163        <property name="source.encoding" value="${file.encoding}"/>
 164        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
 165            <and>
 166                <isset property="javadoc.encoding"/>
 167                <not>
 168                    <equals arg1="${javadoc.encoding}" arg2=""/>
 169                </not>
 170            </and>
 171        </condition>
 172        <property name="javadoc.encoding.used" value="${source.encoding}"/>
 173        <property name="includes" value="**"/>
 174        <property name="excludes" value=""/>
 175        <property name="runmain.jvmargs" value=""/>
 176        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
 177        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
 178            <length length="0" string="${endorsed.classpath}" when="greater"/>
 179        </condition>
 180    </target>
 181    <target depends="init" name="-init-cos" unless="deploy.on.save">
 182        <condition property="deploy.on.save" value="true">
 183            <istrue value="${j2ee.deploy.on.save}"/>
 184        </condition>
 185    </target>
 186    <target name="-post-init">
 187        <!-- Empty placeholder for easier customization. -->
 188        <!-- You can override this target in the ../build.xml file. -->
 189    </target>
 190    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
 191        <fail unless="src.dir">Must set src.dir</fail>
 192        <fail unless="test.src.dir">Must set test.src.dir</fail>
 193        <fail unless="build.dir">Must set build.dir</fail>
 194        <fail unless="build.web.dir">Must set build.web.dir</fail>
 195        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
 196        <fail unless="dist.dir">Must set dist.dir</fail>
 197        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
 198        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
 199        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
 200        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
 201        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
 202        <fail unless="dist.war">Must set dist.war</fail>
 203        <condition property="missing.j2ee.server.home">
 204            <and>
 205                <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
 206                <not>
 207                    <isset property="j2ee.server.home"/>
 208                </not>
 209            </and>
 210        </condition>
 211        <fail if="missing.j2ee.server.home">
 212The Java EE server classpath is not correctly set up - server home directory is missing.
 213Either open the project in the IDE and assign the server or setup the server classpath manually.
 214For example like this:
 215   ant -Dj2ee.server.home=&lt;app_server_installation_directory&gt;
 216                </fail>
 217        <fail unless="j2ee.platform.classpath">
 218The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
 219Either open the project in the IDE and assign the server or setup the server classpath manually.
 220For example like this:
 221   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
 222or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
 223                </fail>
 224    </target>
 225    <target name="-init-macrodef-property">
 226        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
 227            <attribute name="name"/>
 228            <attribute name="value"/>
 229            <sequential>
 230                <property name="@{name}" value="${@{value}}"/>
 231            </sequential>
 232        </macrodef>
 233    </target>
 234    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
 235        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
 236            <attribute default="${src.dir}" name="srcdir"/>
 237            <attribute default="${build.classes.dir}" name="destdir"/>
 238            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
 239            <attribute default="${javac.processorpath}" name="processorpath"/>
 240            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
 241            <attribute default="${includes}" name="includes"/>
 242            <attribute default="${excludes}" name="excludes"/>
 243            <attribute default="${javac.debug}" name="debug"/>
 244            <attribute default="${empty.dir}" name="gensrcdir"/>
 245            <element name="customize" optional="true"/>
 246            <sequential>
 247                <property location="${build.dir}/empty" name="empty.dir"/>
 248                <mkdir dir="${empty.dir}"/>
 249                <mkdir dir="@{apgeneratedsrcdir}"/>
 250                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
 251                    <src>
 252                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
 253                            <include name="*"/>
 254                        </dirset>
 255                    </src>
 256                    <classpath>
 257                        <path path="@{classpath}"/>
 258                    </classpath>
 259                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
 260                    <compilerarg line="${javac.compilerargs}"/>
 261                    <compilerarg value="-processorpath"/>
 262                    <compilerarg path="@{processorpath}:${empty.dir}"/>
 263                    <compilerarg line="${ap.processors.internal}"/>
 264                    <compilerarg value="-s"/>
 265                    <compilerarg path="@{apgeneratedsrcdir}"/>
 266                    <compilerarg line="${ap.proc.none.internal}"/>
 267                    <customize/>
 268                </javac>
 269            </sequential>
 270        </macrodef>
 271    </target>
 272    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
 273        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
 274            <attribute default="${src.dir}" name="srcdir"/>
 275            <attribute default="${build.classes.dir}" name="destdir"/>
 276            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
 277            <attribute default="${javac.processorpath}" name="processorpath"/>
 278            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
 279            <attribute default="${includes}" name="includes"/>
 280            <attribute default="${excludes}" name="excludes"/>
 281            <attribute default="${javac.debug}" name="debug"/>
 282            <attribute default="${empty.dir}" name="gensrcdir"/>
 283            <element name="customize" optional="true"/>
 284            <sequential>
 285                <property location="${build.dir}/empty" name="empty.dir"/>
 286                <mkdir dir="${empty.dir}"/>
 287                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
 288                    <src>
 289                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
 290                            <include name="*"/>
 291                        </dirset>
 292                    </src>
 293                    <classpath>
 294                        <path path="@{classpath}"/>
 295                    </classpath>
 296                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
 297                    <compilerarg line="${javac.compilerargs}"/>
 298                    <customize/>
 299                </javac>
 300            </sequential>
 301        </macrodef>
 302    </target>
 303    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
 304        <macrodef name="depend" uri="http://www.netbeans.org/ns/web-project/2">
 305            <attribute default="${src.dir}" name="srcdir"/>
 306            <attribute default="${build.classes.dir}" name="destdir"/>
 307            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
 308            <sequential>
 309                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
 310                    <classpath>
 311                        <path path="@{classpath}"/>
 312                    </classpath>
 313                </depend>
 314            </sequential>
 315        </macrodef>
 316        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/web-project/2">
 317            <attribute default="${build.classes.dir}" name="destdir"/>
 318            <sequential>
 319                <fail unless="javac.includes">Must set javac.includes</fail>
 320                <pathconvert pathsep="," property="javac.includes.binary">
 321                    <path>
 322                        <filelist dir="@{destdir}" files="${javac.includes}"/>
 323                    </path>
 324                    <globmapper from="*.java" to="*.class"/>
 325                </pathconvert>
 326                <delete>
 327                    <files includes="${javac.includes.binary}"/>
 328                </delete>
 329            </sequential>
 330        </macrodef>
 331    </target>
 332    <target name="-init-macrodef-junit">
 333        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
 334            <attribute default="${includes}" name="includes"/>
 335            <attribute default="${excludes}" name="excludes"/>
 336            <attribute default="**" name="testincludes"/>
 337            <sequential>
 338                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
 339                    <batchtest todir="${build.test.results.dir}">
 340                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
 341                            <filename name="@{testincludes}"/>
 342                        </fileset>
 343                    </batchtest>
 344                    <classpath>
 345                        <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
 346                    </classpath>
 347                    <syspropertyset>
 348                        <propertyref prefix="test-sys-prop."/>
 349                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
 350                    </syspropertyset>
 351                    <formatter type="brief" usefile="false"/>
 352                    <formatter type="xml"/>
 353                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
 354                    <jvmarg line="${runmain.jvmargs}"/>
 355                </junit>
 356            </sequential>
 357        </macrodef>
 358    </target>
 359    <target name="-init-macrodef-java">
 360        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
 361            <attribute default="${main.class}" name="classname"/>
 362            <attribute default="${debug.classpath}" name="classpath"/>
 363            <element name="customize" optional="true"/>
 364            <sequential>
 365                <java classname="@{classname}" fork="true">
 366                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
 367                    <jvmarg line="${runmain.jvmargs}"/>
 368                    <classpath>
 369                        <path path="@{classpath}:${j2ee.platform.classpath}"/>
 370                    </classpath>
 371                    <syspropertyset>
 372                        <propertyref prefix="run-sys-prop."/>
 373                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
 374                    </syspropertyset>
 375                    <customize/>
 376                </java>
 377            </sequential>
 378        </macrodef>
 379    </target>
 380    <target name="-init-macrodef-nbjsdebug">
 381        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
 382            <attribute default="${client.url}" name="webUrl"/>
 383            <sequential>
 384                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
 385            </sequential>
 386        </macrodef>
 387    </target>
 388    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
 389        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
 390            <attribute default="${main.class}" name="name"/>
 391            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
 392            <sequential>
 393                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
 394                    <classpath>
 395                        <path path="@{classpath}"/>
 396                    </classpath>
 397                </nbjpdastart>
 398            </sequential>
 399        </macrodef>
 400        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
 401            <attribute default="${build.classes.dir}" name="dir"/>
 402            <sequential>
 403                <nbjpdareload>
 404                    <fileset dir="@{dir}" includes="${fix.classes}">
 405                        <include name="${fix.includes}*.class"/>
 406                    </fileset>
 407                </nbjpdareload>
 408            </sequential>
 409        </macrodef>
 410        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
 411            <sequential>
 412                <nbjpdaappreloaded/>
 413            </sequential>
 414        </macrodef>
 415    </target>
 416    <target name="-init-debug-args">
 417        <property name="version-output" value="java version &quot;${ant.java.version}"/>
 418        <condition property="have-jdk-older-than-1.4">
 419            <or>
 420                <contains string="${version-output}" substring="java version &quot;1.0"/>
 421                <contains string="${version-output}" substring="java version &quot;1.1"/>
 422                <contains string="${version-output}" substring="java version &quot;1.2"/>
 423                <contains string="${version-output}" substring="java version &quot;1.3"/>
 424            </or>
 425        </condition>
 426        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
 427            <istrue value="${have-jdk-older-than-1.4}"/>
 428        </condition>
 429        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
 430            <os family="windows"/>
 431        </condition>
 432        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
 433            <isset property="debug.transport"/>
 434        </condition>
 435    </target>
 436    <target depends="-init-debug-args" name="-init-macrodef-debug">
 437        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
 438            <attribute default="${main.class}" name="classname"/>
 439            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
 440            <attribute default="${application.args.param}" name="args"/>
 441            <element name="customize" optional="true"/>
 442            <sequential>
 443                <java classname="@{classname}" fork="true">
 444                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
 445                    <jvmarg line="${debug-args-line}"/>
 446                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
 447                    <jvmarg line="${runmain.jvmargs}"/>
 448                    <classpath>
 449                        <path path="@{classpath}"/>
 450                    </classpath>
 451                    <syspropertyset>
 452                        <propertyref prefix="run-sys-prop."/>
 453                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
 454                    </syspropertyset>
 455                    <arg line="@{args}"/>
 456                    <customize/>
 457                </java>
 458            </sequential>
 459        </macrodef>
 460    </target>
 461    <target name="-init-taskdefs">
 462        <fail unless="libs.CopyLibs.classpath">
 463The libs.CopyLibs.classpath property is not set up.
 464This property must point to 
 465org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
 466of NetBeans IDE installation and is usually located at 
 467&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
 468Either open the project in the IDE and make sure CopyLibs library
 469exists or setup the property manually. For example like this:
 470 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
 471                </fail>
 472        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
 473    </target>
 474    <target name="-init-ap-cmdline-properties">
 475        <property name="annotation.processing.enabled" value="true"/>
 476        <property name="annotation.processing.processors.list" value=""/>
 477        <property name="annotation.processing.run.all.processors" value="true"/>
 478        <property name="javac.processorpath" value="${javac.classpath}"/>
 479        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
 480        <condition property="ap.supported.internal" value="true">
 481            <not>
 482                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
 483            </not>
 484        </condition>
 485    </target>
 486    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
 487        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
 488            <isfalse value="${annotation.processing.run.all.processors}"/>
 489        </condition>
 490        <condition else="" property="ap.proc.none.internal" value="-proc:none">
 491            <isfalse value="${annotation.processing.enabled}"/>
 492        </condition>
 493    </target>
 494    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
 495        <property name="ap.cmd.line.internal" value=""/>
 496    </target>
 497    <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-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
 498    <!--
 499                COMPILATION SECTION
 500            -->
 501    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
 502        <ant antfile="${project.MemoriaUtils}/build.xml" inheritall="false" target="jar">
 503            <property name="deploy.on.save" value="false"/>
 504        </ant>
 505    </target>
 506    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
 507        <ant antfile="${project.MemoriaUtils}/build.xml" inheritall="false" target="jar">
 508            <property name="deploy.on.save" value="false"/>
 509        </ant>
 510    </target>
 511    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
 512    <target depends="init,deps-jar,generate-rest-config" name="-pre-pre-compile">
 513        <mkdir dir="${build.classes.dir}"/>
 514    </target>
 515    <target name="-pre-compile">
 516        <!-- Empty placeholder for easier customization. -->
 517        <!-- You can override this target in the ../build.xml file. -->
 518    </target>
 519    <target name="-copy-webdir">
 520        <copy todir="${build.web.dir}">
 521            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
 522        </copy>
 523        <copy todir="${build.web.dir}/WEB-INF">
 524            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
 525        </copy>
 526    </target>
 527    <target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest" if="have.sources" name="-do-compile">
 528        <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
 529        <copy todir="${build.classes.dir}">
 530            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
 531        </copy>
 532    </target>
 533    <target if="has.custom.manifest" name="-copy-manifest">
 534        <mkdir dir="${build.meta.inf.dir}"/>
 535        <copy todir="${build.meta.inf.dir}">
 536            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
 537        </copy>
 538    </target>
 539    <target if="has.persistence.xml" name="-copy-persistence-xml">
 540        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
 541        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
 542            <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
 543        </copy>
 544    </target>
 545    <target name="-post-compile">
 546        <!-- Empty placeholder for easier customization. -->
 547        <!-- You can override this target in the ../build.xml file. -->
 548    </target>
 549    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
 550    <target name="-pre-compile-single">
 551        <!-- Empty placeholder for easier customization. -->
 552        <!-- You can override this target in the ../build.xml file. -->
 553    </target>
 554    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
 555        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
 556        <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
 557        <copy todir="${build.classes.dir}">
 558            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
 559        </copy>
 560    </target>
 561    <target name="-post-compile-single">
 562        <!-- Empty placeholder for easier customization. -->
 563        <!-- You can override this target in the ../build.xml file. -->
 564    </target>
 565    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
 566    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
 567        <mkdir dir="${build.generated.dir}/src"/>
 568        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
 569            <arg value="-uriroot"/>
 570            <arg file="${basedir}/${build.web.dir}"/>
 571            <arg value="-d"/>
 572            <arg file="${basedir}/${build.generated.dir}/src"/>
 573            <arg value="-die1"/>
 574            <arg value="-compilerSourceVM ${javac.source}"/>
 575            <arg value="-compilerTargetVM ${javac.target}"/>
 576            <arg value="-javaEncoding ${source.encoding}"/>
 577            <classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
 578        </java>
 579        <mkdir dir="${build.generated.dir}/classes"/>
 580        <webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
 581    </target>
 582    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
 583        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
 584        <mkdir dir="${build.generated.dir}/src"/>
 585        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
 586            <arg value="-uriroot"/>
 587            <arg file="${basedir}/${build.web.dir}"/>
 588            <arg value="-d"/>
 589            <arg file="${basedir}/${build.generated.dir}/src"/>
 590            <arg value="-die1"/>
 591            <arg value="-jspc.files"/>
 592            <arg path="${jsp.includes}"/>
 593            <arg value="-compilerSourceVM ${javac.source}"/>
 594            <arg value="-compilerTargetVM ${javac.target}"/>
 595            <arg value="-javaEncoding ${source.encoding}"/>
 596            <classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
 597        </java>
 598        <mkdir dir="${build.generated.dir}/classes"/>
 599        <webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
 600            <customize>
 601                <patternset includes="${javac.jsp.includes}"/>
 602            </customize>
 603        </webproject2:javac>
 604    </target>
 605    <target name="compile-single-jsp">
 606        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
 607        <antcall target="-do-compile-single-jsp"/>
 608    </target>
 609    <!--
 610                DIST BUILDING SECTION
 611            -->
 612    <target name="-pre-dist">
 613        <!-- Empty placeholder for easier customization. -->
 614        <!-- You can override this target in the ../build.xml file. -->
 615    </target>
 616    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
 617        <dirname file="${dist.war}" property="dist.jar.dir"/>
 618        <mkdir dir="${dist.jar.dir}"/>
 619        <jar compress="${jar.compress}" jarfile="${dist.war}">
 620            <fileset dir="${build.web.dir}"/>
 621        </jar>
 622    </target>
 623    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
 624        <dirname file="${dist.war}" property="dist.jar.dir"/>
 625        <mkdir dir="${dist.jar.dir}"/>
 626        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
 627            <fileset dir="${build.web.dir}"/>
 628        </jar>
 629    </target>
 630    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
 631        <dirname file="${dist.war}" property="dist.jar.dir"/>
 632        <mkdir dir="${dist.jar.dir}"/>
 633        <jar compress="${jar.compress}" jarfile="${dist.war}">
 634            <fileset dir="${build.web.dir}"/>
 635        </jar>
 636    </target>
 637    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
 638        <dirname file="${dist.war}" property="dist.jar.dir"/>
 639        <mkdir dir="${dist.jar.dir}"/>
 640        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
 641            <fileset dir="${build.web.dir}"/>
 642        </jar>
 643    </target>
 644    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
 645    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
 646        <copyfiles files="${libs.jsf20.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 647        <copyfiles files="${libs.jstl11.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 648        <copyfiles files="${libs.hibernate-support.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 649        <copyfiles files="${libs.ejb3-persistence.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 650        <copyfiles files="${file.reference.derbyclient.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 651        <copyfiles files="${libs.metro.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 652        <copyfiles files="${file.reference.xstream-1.4-20101008.163445-1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 653        <copyfiles files="${file.reference.PrototipoCommons.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 654        <copyfiles files="${file.reference.jxl.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 655        <copyfiles files="${libs.restapi.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 656        <copyfiles files="${libs.restlib.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 657        <copyfiles files="${file.reference.gt-shapefile-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 658        <copyfiles files="${reference.MemoriaUtils.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 659        <copyfiles files="${file.reference.javacsv.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 660        <copyfiles files="${file.reference.gt-api-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 661        <copyfiles files="${file.reference.gt-arcgrid-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 662        <copyfiles files="${file.reference.gt-arcsde-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 663        <copyfiles files="${file.reference.gt-arcsde-common-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 664        <copyfiles files="${file.reference.gt-brewer-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 665        <copyfiles files="${file.reference.gt-charts-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 666        <copyfiles files="${file.reference.gt-coverage-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 667        <copyfiles files="${file.reference.gt-cql-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 668        <copyfiles files="${file.reference.gt-data-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 669        <copyfiles files="${file.reference.gt-epsg-extension-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 670        <copyfiles files="${file.reference.gt-epsg-hsql-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 671        <copyfiles files="${file.reference.gt-epsg-postgresql-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 672        <copyfiles files="${file.reference.gt-epsg-wkt-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 673        <copyfiles files="${file.reference.gt-feature-pregeneralized-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 674        <copyfiles files="${file.reference.gt-geojson-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 675        <copyfiles files="${file.reference.gt-geotiff-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 676        <copyfiles files="${file.reference.gt-graph-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 677        <copyfiles files="${file.reference.gt-grid-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 678        <copyfiles files="${file.reference.gt-gtopo30-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 679        <copyfiles files="${file.reference.gt-image-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 680        <copyfiles files="${file.reference.gt-imageio-ext-gdal-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 681        <copyfiles files="${file.reference.gt-imagemosaic-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 682        <copyfiles files="${file.reference.gt-imagemosaic-jdbc-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 683        <copyfiles files="${file.reference.gt-imagepyramid-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 684        <copyfiles files="${file.reference.gt-jdbc-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 685        <copyfiles files="${file.reference.gt-jdbc-db2-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 686        <copyfiles files="${file.reference.gt-jdbc-h2-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 687        <copyfiles files="${file.reference.gt-jdbc-mysql-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 688        <copyfiles files="${file.reference.gt-jdbc-oracle-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 689        <copyfiles files="${file.reference.gt-jdbc-postgis-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 690        <copyfiles files="${file.reference.gt-jdbc-spatialite-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 691        <copyfiles files="${file.reference.gt-jdbc-sqlserver-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 692        <copyfiles files="${file.reference.gt-jp2k-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 693        <copyfiles files="${file.reference.gt-main-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 694        <copyfiles files="${file.reference.gt-metadata-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 695        <copyfiles files="${file.reference.gt-opengis-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 696        <copyfiles files="${file.reference.gt-process-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 697        <copyfiles files="${file.reference.gt-property-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 698        <copyfiles files="${file.reference.gt-referencing-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 699        <copyfiles files="${file.reference.gt-referencing3D-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 700        <copyfiles files="${file.reference.gt-render-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 701        <copyfiles files="${file.reference.gt-sample-data-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 702        <copyfiles files="${file.reference.gt-sde-dummy-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 703        <copyfiles files="${file.reference.gt-shapefile-2.7.1.jar-1}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 704        <copyfiles files="${file.reference.gt-svg-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 705        <copyfiles files="${file.reference.gt-swing-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 706        <copyfiles files="${file.reference.gt-temporal-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 707        <copyfiles files="${file.reference.gt-validation-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 708        <copyfiles files="${file.reference.gt-wfs-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 709        <copyfiles files="${file.reference.gt-wms-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 710        <copyfiles files="${file.reference.gt-xml-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 711        <copyfiles files="${file.reference.gt-xsd-core-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 712        <copyfiles files="${file.reference.gt-xsd-fes-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 713        <copyfiles files="${file.reference.gt-xsd-filter-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 714        <copyfiles files="${file.reference.gt-xsd-gml2-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 715        <copyfiles files="${file.reference.gt-xsd-gml3-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 716        <copyfiles files="${file.reference.gt-xsd-kml-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 717        <copyfiles files="${file.reference.gt-xsd-ows-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 718        <copyfiles files="${file.reference.gt-xsd-sld-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 719        <copyfiles files="${file.reference.gt-xsd-wcs-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 720        <copyfiles files="${file.reference.gt-xsd-wfs-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 721        <copyfiles files="${file.reference.gt-xsd-wms-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 722        <copyfiles files="${file.reference.gt-xsd-wps-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 723        <copyfiles files="${file.reference.jts-1.11.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 724        <copyfiles files="${file.reference.jsr-275-1.0-beta-2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 725        <copyfiles files="${file.reference.vecmath-1.3.2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 726        <copyfiles files="${file.reference.postgresql-9.1-901.jdbc3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
 727        <mkdir dir="${build.web.dir}/META-INF"/>
 728        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
 729    </target>
 730    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
 731        <copyfiles files="${libs.jsf20.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
 732        <copyfiles files="${libs.jstl11.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
 733        <copyfiles files="${libs.hibernate-support.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
 734        <copyfiles files="${libs.ejb3-persistence.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
 735        <copyfiles files="${file.reference.derbyclient.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 736        <copyfiles files="${libs.metro.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
 737        <copyfiles files="${file.reference.xstream-1.4-20101008.163445-1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 738        <copyfiles files="${file.reference.PrototipoCommons.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 739        <copyfiles files="${file.reference.jxl.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 740        <copyfiles files="${libs.restapi.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
 741        <copyfiles files="${libs.restlib.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
 742        <copyfiles files="${file.reference.gt-shapefile-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 743        <copyfiles files="${reference.MemoriaUtils.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 744        <copyfiles files="${file.reference.javacsv.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 745        <copyfiles files="${file.reference.gt-api-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 746        <copyfiles files="${file.reference.gt-arcgrid-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 747        <copyfiles files="${file.reference.gt-arcsde-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 748        <copyfiles files="${file.reference.gt-arcsde-common-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 749        <copyfiles files="${file.reference.gt-brewer-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 750        <copyfiles files="${file.reference.gt-charts-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 751        <copyfiles files="${file.reference.gt-coverage-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 752        <copyfiles files="${file.reference.gt-cql-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 753        <copyfiles files="${file.reference.gt-data-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 754        <copyfiles files="${file.reference.gt-epsg-extension-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 755        <copyfiles files="${file.reference.gt-epsg-hsql-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 756        <copyfiles files="${file.reference.gt-epsg-postgresql-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 757        <copyfiles files="${file.reference.gt-epsg-wkt-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 758        <copyfiles files="${file.reference.gt-feature-pregeneralized-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 759        <copyfiles files="${file.reference.gt-geojson-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 760        <copyfiles files="${file.reference.gt-geotiff-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 761        <copyfiles files="${file.reference.gt-graph-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 762        <copyfiles files="${file.reference.gt-grid-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 763        <copyfiles files="${file.reference.gt-gtopo30-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 764        <copyfiles files="${file.reference.gt-image-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 765        <copyfiles files="${file.reference.gt-imageio-ext-gdal-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 766        <copyfiles files="${file.reference.gt-imagemosaic-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 767        <copyfiles files="${file.reference.gt-imagemosaic-jdbc-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 768        <copyfiles files="${file.reference.gt-imagepyramid-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 769        <copyfiles files="${file.reference.gt-jdbc-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 770        <copyfiles files="${file.reference.gt-jdbc-db2-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 771        <copyfiles files="${file.reference.gt-jdbc-h2-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 772        <copyfiles files="${file.reference.gt-jdbc-mysql-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 773        <copyfiles files="${file.reference.gt-jdbc-oracle-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 774        <copyfiles files="${file.reference.gt-jdbc-postgis-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 775        <copyfiles files="${file.reference.gt-jdbc-spatialite-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 776        <copyfiles files="${file.reference.gt-jdbc-sqlserver-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 777        <copyfiles files="${file.reference.gt-jp2k-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 778        <copyfiles files="${file.reference.gt-main-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 779        <copyfiles files="${file.reference.gt-metadata-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 780        <copyfiles files="${file.reference.gt-opengis-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 781        <copyfiles files="${file.reference.gt-process-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 782        <copyfiles files="${file.reference.gt-property-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 783        <copyfiles files="${file.reference.gt-referencing-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 784        <copyfiles files="${file.reference.gt-referencing3D-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 785        <copyfiles files="${file.reference.gt-render-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 786        <copyfiles files="${file.reference.gt-sample-data-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 787        <copyfiles files="${file.reference.gt-sde-dummy-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 788        <copyfiles files="${file.reference.gt-shapefile-2.7.1.jar-1}" todir="${build.web.dir}/WEB-INF/lib"/>
 789        <copyfiles files="${file.reference.gt-svg-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 790        <copyfiles files="${file.reference.gt-swing-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 791        <copyfiles files="${file.reference.gt-temporal-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 792        <copyfiles files="${file.reference.gt-validation-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 793        <copyfiles files="${file.reference.gt-wfs-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 794        <copyfiles files="${file.reference.gt-wms-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 795        <copyfiles files="${file.reference.gt-xml-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 796        <copyfiles files="${file.reference.gt-xsd-core-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 797        <copyfiles files="${file.reference.gt-xsd-fes-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 798        <copyfiles files="${file.reference.gt-xsd-filter-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 799        <copyfiles files="${file.reference.gt-xsd-gml2-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 800        <copyfiles files="${file.reference.gt-xsd-gml3-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 801        <copyfiles files="${file.reference.gt-xsd-kml-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 802        <copyfiles files="${file.reference.gt-xsd-ows-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 803        <copyfiles files="${file.reference.gt-xsd-sld-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 804        <copyfiles files="${file.reference.gt-xsd-wcs-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 805        <copyfiles files="${file.reference.gt-xsd-wfs-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 806        <copyfiles files="${file.reference.gt-xsd-wms-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 807        <copyfiles files="${file.reference.gt-xsd-wps-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 808        <copyfiles files="${file.reference.jts-1.11.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 809        <copyfiles files="${file.reference.jsr-275-1.0-beta-2.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 810        <copyfiles files="${file.reference.vecmath-1.3.2.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 811        <copyfiles files="${file.reference.postgresql-9.1-901.jdbc3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
 812    </target>
 813    <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
 814        <delete dir="${build.web.dir}/WEB-INF/lib"/>
 815    </target>
 816    <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
 817        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
 818        <mkdir dir="${dist.jar.dir}"/>
 819        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
 820            <fileset dir="${build.web.dir}"/>
 821        </jar>
 822    </target>
 823    <target name="-post-dist">
 824        <!-- Empty placeholder for easier customization. -->
 825        <!-- You can override this target in the ../build.xml file. -->
 826    </target>
 827    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
 828    <target depends="init,-clean-webinf-lib,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
 829    <!--
 830                EXECUTION SECTION
 831            -->
 832    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
 833    <target name="-pre-run-deploy">
 834        <!-- Empty placeholder for easier customization. -->
 835        <!-- You can override this target in the ../build.xml file. -->
 836    </target>
 837    <target name="-post-run-deploy">
 838        <!-- Empty placeholder for easier customization. -->
 839        <!-- You can override this target in the ../build.xml file. -->
 840    </target>
 841    <target name="-pre-nbmodule-run-deploy">
 842        <!-- Empty placeholder for easier customization. -->
 843        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
 844    </target>
 845    <target name="-post-nbmodule-run-deploy">
 846        <!-- Empty placeholder for easier customization. -->
 847        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
 848    </target>
 849    <target name="-run-deploy-am">
 850        <!-- Task to deploy to the Access Manager runtime. -->
 851    </target>
 852    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy" name="run-deploy">
 853        <nbjpdaappreloaded/>
 854    </target>
 855    <target if="netbeans.home" name="-run-deploy-nb">
 856        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
 857    </target>
 858    <target name="-init-deploy-ant" unless="netbeans.home">
 859        <property name="deploy.ant.archive" value="${dist.war}"/>
 860        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
 861        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
 862        <property name="deploy.ant.enabled" value="true"/>
 863    </target>
 864    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
 865    <target if="netbeans.home" name="-run-undeploy-nb">
 866        <fail message="Undeploy is not supported from within the IDE"/>
 867    </target>
 868    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
 869        <nbverify file="${dist.war}"/>
 870    </target>
 871    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
 872    <target if="do.display.browser" name="-init-display-browser">
 873        <condition property="do.display.browser.nb">
 874            <isset property="netbeans.home"/>
 875        </condition>
 876        <condition property="do.display.browser.cl">
 877            <isset property="deploy.ant.enabled"/>
 878        </condition>
 879    </target>
 880    <target if="do.display.browser.nb" name="-display-browser-nb">
 881        <nbbrowse url="${client.url}"/>
 882    </target>
 883    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
 884        <condition property="browser" value="rundll32">
 885            <os family="windows"/>
 886        </condition>
 887        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
 888            <os family="windows"/>
 889        </condition>
 890        <condition property="browser" value="/usr/bin/open">
 891            <os family="mac"/>
 892        </condition>
 893        <property environment="env"/>
 894        <condition property="browser" value="${env.BROWSER}">
 895            <isset property="env.BROWSER"/>
 896        </condition>
 897        <condition property="browser" value="/usr/bin/firefox">
 898            <available file="/usr/bin/firefox"/>
 899        </condition>
 900        <condition property="browser" value="/usr/local/firefox/firefox">
 901            <available file="/usr/local/firefox/firefox"/>
 902        </condition>
 903        <condition property="browser" value="/usr/bin/mozilla">
 904            <available file="/usr/bin/mozilla"/>
 905        </condition>
 906        <condition property="browser" value="/usr/local/mozilla/mozilla">
 907            <available file="/usr/local/mozilla/mozilla"/>
 908        </condition>
 909        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
 910            <available file="/usr/sfw/lib/firefox/firefox"/>
 911        </condition>
 912        <condition property="browser" value="/opt/csw/bin/firefox">
 913            <available file="/opt/csw/bin/firefox"/>
 914        </condition>
 915        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
 916            <available file="/usr/sfw/lib/mozilla/mozilla"/>
 917        </condition>
 918        <condition property="browser" value="/opt/csw/bin/mozilla">
 919            <available file="/opt/csw/bin/mozilla"/>
 920        </condition>
 921    </target>
 922    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
 923        <fail unless="browser">
 924                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
 925                </fail>
 926        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
 927        <echo>Launching ${browse.url}</echo>
 928        <exec executable="${browser}" spawn="true">
 929            <arg line="${browser.args} ${browse.url}"/>
 930        </exec>
 931    </target>
 932    <target depends="init,-init-cos,compile-single" name="run-main">
 933        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
 934        <webproject1:java classname="${run.class}"/>
 935    </target>
 936    <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
 937        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
 938        <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
 939    </target>
 940    <!--
 941                DEBUGGING SECTION
 942            -->
 943    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
 944        <nbstartserver debugmode="true"/>
 945        <antcall target="connect-debugger"/>
 946        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
 947        <antcall target="debug-display-browser"/>
 948        <antcall target="connect-client-debugger"/>
 949    </target>
 950    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
 951        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
 952            <classpath>
 953                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
 954            </classpath>
 955            <sourcepath>
 956                <path path="${web.docbase.dir}"/>
 957            </sourcepath>
 958        </nbjpdaconnect>
 959    </target>
 960    <target if="do.display.browser.debug" name="debug-display-browser">
 961        <nbbrowse url="${client.url}"/>
 962    </target>
 963    <target if="do.debug.client" name="connect-client-debugger">
 964        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
 965    </target>
 966    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
 967        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
 968        <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
 969    </target>
 970    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
 971    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
 972    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
 973        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
 974    </target>
 975    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
 976        <webproject1:nbjpdastart name="${debug.class}"/>
 977    </target>
 978    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
 979        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
 980        <webproject1:debug classname="${debug.class}"/>
 981    </target>
 982    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
 983    <target depends="init" name="-pre-debug-fix">
 984        <fail unless="fix.includes">Must set fix.includes</fail>
 985        <property name="javac.includes" value="${fix.includes}.java"/>
 986    </target>
 987    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
 988        <webproject1:nbjpdareload/>
 989    </target>
 990    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
 991    <!--
 992                JAVADOC SECTION
 993            -->
 994    <target depends="init" if="have.sources" name="javadoc-build">
 995        <mkdir dir="${dist.javadoc.dir}"/>
 996        <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}">
 997            <classpath>
 998                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
 999            </classpath>
1000            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1001                <filename name="**/*.java"/>
1002            </fileset>
1003            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1004                <include name="**/*.java"/>
1005            </fileset>
1006        </javadoc>
1007        <copy todir="${dist.javadoc.dir}">
1008            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1009                <filename name="**/doc-files/**"/>
1010            </fileset>
1011            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1012                <include name="**/doc-files/**"/>
1013            </fileset>
1014        </copy>
1015    </target>
1016    <target depends="init,javadoc-build" if="netbeans.home" nam