Založení javového projektu
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed Feb 11 17:09:01 2009 +0100 (2009-02-11)
changeset 0d77702227a71
child 1 430dc34be2e9
Založení javového projektu
.hgignore
java/HrisniciSpameri/nbproject/ant-deploy.xml
java/HrisniciSpameri/nbproject/build-impl.xml
java/HrisniciSpameri/nbproject/genfiles.properties
java/HrisniciSpameri/nbproject/private/private.properties
java/HrisniciSpameri/nbproject/private/private.xml
java/HrisniciSpameri/nbproject/project.properties
java/HrisniciSpameri/nbproject/project.xml
java/HrisniciSpameri/src/conf/MANIFEST.MF
java/HrisniciSpameri/web/WEB-INF/sun-web.xml
java/HrisniciSpameri/web/WEB-INF/web.xml
java/HrisniciSpameri/web/index.jsp
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgignore	Wed Feb 11 17:09:01 2009 +0100
     1.3 @@ -0,0 +1,4 @@
     1.4 +java/HrisniciSpameri/dist/*
     1.5 +java/HrisniciSpameri/build/*
     1.6 +
     1.7 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/java/HrisniciSpameri/nbproject/ant-deploy.xml	Wed Feb 11 17:09:01 2009 +0100
     2.3 @@ -0,0 +1,60 @@
     2.4 +<?xml version="1.0" encoding="UTF-8"?>
     2.5 +<project default="-deploy-ant" basedir=".">
     2.6 +    <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
     2.7 +        <property file="${deploy.ant.properties.file}" />
     2.8 +        <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
     2.9 +        <available file="${deploy.ant.resource.dir}" property="has.setup"/>
    2.10 +        <tempfile prefix="sjsas" property="sjsas.password.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
    2.11 +        <echo message="AS_ADMIN_PASSWORD=${sjsas.password}" file="${sjsas.password.file}"/>
    2.12 +    </target>
    2.13 +    
    2.14 +    <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
    2.15 +        <tempfile prefix="sjsas" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
    2.16 +        <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
    2.17 +        <!-- The doctype triggers resolution which can fail -->
    2.18 +        <replace file="${temp.sun.web}">
    2.19 +            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
    2.20 +            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
    2.21 +        </replace>
    2.22 +        <replace file="${temp.sun.web}">
    2.23 +            <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
    2.24 +            <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
    2.25 +        </replace>
    2.26 +        <xmlproperty file="${temp.sun.web}" validate="false">
    2.27 +        </xmlproperty>    
    2.28 +        <delete file="${temp.sun.web}"/>
    2.29 +        <property name="deploy.ant.client.url" value="${sjsas.url}${sun-web-app.context-root}"/>
    2.30 +    </target>
    2.31 +    <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
    2.32 +        <tempfile prefix="sjsas" property="sjsas.resources.dir" destdir="${java.io.tmpdir}"/>
    2.33 +        <mkdir dir="${sjsas.resources.dir}"/>
    2.34 +        <mkdir dir="${sjsas.resources.dir}/META-INF"/>
    2.35 +        <property name="sjsas.resources.file" value="${sjsas.resources.dir}/META-INF/sun-resources.xml"/>
    2.36 +        <copy todir="${sjsas.resources.dir}/META-INF">
    2.37 +            <fileset dir="${deploy.ant.resource.dir}"/>
    2.38 +        </copy>
    2.39 +        <jar destfile="${deploy.ant.archive}" update="true">
    2.40 +            <fileset dir="${sjsas.resources.dir}"/>
    2.41 +        </jar>
    2.42 +        <delete dir="${sjsas.resources.dir}"/>
    2.43 +    </target>
    2.44 +    <target name="-deploy-ant" depends="-parse-sun-web,-add-resources" if="deploy.ant.enabled">
    2.45 +        <echo message="Deploying ${deploy.ant.archive}"/>
    2.46 +        <taskdef name="sun-appserv-deploy" classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask"
    2.47 +                 classpath="${sjsas.root}/lib/sun-appserv-ant.jar" />
    2.48 +        <sun-appserv-deploy user="${sjsas.username}"
    2.49 +                passwordfile="${sjsas.password.file}"
    2.50 +                host="${sjsas.host}" port="${sjsas.port}"
    2.51 +                file="${deploy.ant.archive}" asinstalldir="${sjsas.root}"/>
    2.52 +        <delete file="${sjsas.password.file}"/>
    2.53 +    </target>
    2.54 +    <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
    2.55 +        <taskdef name="sun-appserv-undeploy" classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.UndeployTask"
    2.56 +                 classpath="${sjsas.root}/lib/sun-appserv-ant.jar" />
    2.57 +        <sun-appserv-undeploy user="${sjsas.username}"
    2.58 +                passwordfile="${sjsas.password.file}"
    2.59 +                host="${sjsas.host}" port="${sjsas.port}"
    2.60 +                file="${deploy.ant.archive}" asinstalldir="${sjsas.root}"/>
    2.61 +        <delete file="${sjsas.password.file}"/>
    2.62 +    </target>
    2.63 +</project>
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/java/HrisniciSpameri/nbproject/build-impl.xml	Wed Feb 11 17:09:01 2009 +0100
     3.3 @@ -0,0 +1,806 @@
     3.4 +<?xml version="1.0" encoding="UTF-8"?>
     3.5 +<!--
     3.6 +        *** GENERATED FROM project.xml - DO NOT EDIT  ***
     3.7 +        ***         EDIT ../build.xml INSTEAD         ***
     3.8 +
     3.9 +        For the purpose of easier reading the script
    3.10 +        is divided into following sections:
    3.11 +        - initialization
    3.12 +        - compilation
    3.13 +        - dist
    3.14 +        - execution
    3.15 +        - debugging
    3.16 +        - javadoc
    3.17 +        - junit compilation
    3.18 +        - junit execution
    3.19 +        - junit debugging
    3.20 +        - cleanup
    3.21 +
    3.22 +        -->
    3.23 +<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="HrisniciSpameri-impl">
    3.24 +    <import file="ant-deploy.xml"/>
    3.25 +    <target depends="dist,javadoc" description="Build whole project." name="default"/>
    3.26 +    <!--
    3.27 +                INITIALIZATION SECTION
    3.28 +            -->
    3.29 +    <target name="-pre-init">
    3.30 +        <!-- Empty placeholder for easier customization. -->
    3.31 +        <!-- You can override this target in the ../build.xml file. -->
    3.32 +    </target>
    3.33 +    <target depends="-pre-init" name="-init-private">
    3.34 +        <property file="nbproject/private/private.properties"/>
    3.35 +    </target>
    3.36 +    <target depends="-pre-init,-init-private" name="-init-user">
    3.37 +        <property file="${user.properties.file}"/>
    3.38 +        <!-- The two properties below are usually overridden -->
    3.39 +        <!-- by the active platform. Just a fallback. -->
    3.40 +        <property name="default.javac.source" value="1.4"/>
    3.41 +        <property name="default.javac.target" value="1.4"/>
    3.42 +    </target>
    3.43 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    3.44 +        <property file="nbproject/project.properties"/>
    3.45 +    </target>
    3.46 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
    3.47 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    3.48 +        <condition property="have.tests">
    3.49 +            <or>
    3.50 +                <available file="${test.src.dir}"/>
    3.51 +            </or>
    3.52 +        </condition>
    3.53 +        <condition property="have.sources">
    3.54 +            <or>
    3.55 +                <available file="${src.dir}"/>
    3.56 +            </or>
    3.57 +        </condition>
    3.58 +        <condition property="netbeans.home+have.tests">
    3.59 +            <and>
    3.60 +                <isset property="netbeans.home"/>
    3.61 +                <isset property="have.tests"/>
    3.62 +            </and>
    3.63 +        </condition>
    3.64 +        <condition property="no.javadoc.preview">
    3.65 +            <isfalse value="${javadoc.preview}"/>
    3.66 +        </condition>
    3.67 +        <property name="javac.compilerargs" value=""/>
    3.68 +        <condition property="no.deps">
    3.69 +            <and>
    3.70 +                <istrue value="${no.dependencies}"/>
    3.71 +            </and>
    3.72 +        </condition>
    3.73 +        <condition property="no.dist.ear.dir">
    3.74 +            <not>
    3.75 +                <isset property="dist.ear.dir"/>
    3.76 +            </not>
    3.77 +        </condition>
    3.78 +        <property name="build.web.excludes" value="${build.classes.excludes}"/>
    3.79 +        <condition property="do.compile.jsps">
    3.80 +            <istrue value="${compile.jsps}"/>
    3.81 +        </condition>
    3.82 +        <condition property="do.debug.server">
    3.83 +            <or>
    3.84 +                <not>
    3.85 +                    <isset property="debug.server"/>
    3.86 +                </not>
    3.87 +                <istrue value="${debug.server}"/>
    3.88 +                <and>
    3.89 +                    <not>
    3.90 +                        <istrue value="${debug.server}"/>
    3.91 +                    </not>
    3.92 +                    <not>
    3.93 +                        <istrue value="${debug.client}"/>
    3.94 +                    </not>
    3.95 +                </and>
    3.96 +            </or>
    3.97 +        </condition>
    3.98 +        <condition property="do.debug.client">
    3.99 +            <istrue value="${debug.client}"/>
   3.100 +        </condition>
   3.101 +        <condition property="do.display.browser">
   3.102 +            <istrue value="${display.browser}"/>
   3.103 +        </condition>
   3.104 +        <condition property="do.display.browser.debug">
   3.105 +            <and>
   3.106 +                <isset property="do.display.browser"/>
   3.107 +                <not>
   3.108 +                    <isset property="do.debug.client"/>
   3.109 +                </not>
   3.110 +            </and>
   3.111 +        </condition>
   3.112 +        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
   3.113 +        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
   3.114 +        <condition property="do.war.package.with.custom.manifest">
   3.115 +            <isset property="has.custom.manifest"/>
   3.116 +        </condition>
   3.117 +        <condition property="do.war.package.without.custom.manifest">
   3.118 +            <not>
   3.119 +                <isset property="has.custom.manifest"/>
   3.120 +            </not>
   3.121 +        </condition>
   3.122 +        <condition property="do.tmp.war.package.with.custom.manifest">
   3.123 +            <and>
   3.124 +                <isset property="has.custom.manifest"/>
   3.125 +                <isfalse value="${directory.deployment.supported}"/>
   3.126 +            </and>
   3.127 +        </condition>
   3.128 +        <condition property="do.tmp.war.package.without.custom.manifest">
   3.129 +            <and>
   3.130 +                <not>
   3.131 +                    <isset property="has.custom.manifest"/>
   3.132 +                </not>
   3.133 +                <isfalse value="${directory.deployment.supported}"/>
   3.134 +            </and>
   3.135 +        </condition>
   3.136 +        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
   3.137 +        <condition else="" property="application.args.param" value="${application.args}">
   3.138 +            <and>
   3.139 +                <isset property="application.args"/>
   3.140 +                <not>
   3.141 +                    <equals arg1="${application.args}" arg2="" trim="true"/>
   3.142 +                </not>
   3.143 +            </and>
   3.144 +        </condition>
   3.145 +        <property name="source.encoding" value="${file.encoding}"/>
   3.146 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   3.147 +            <and>
   3.148 +                <isset property="javadoc.encoding"/>
   3.149 +                <not>
   3.150 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
   3.151 +                </not>
   3.152 +            </and>
   3.153 +        </condition>
   3.154 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
   3.155 +        <property name="includes" value="**"/>
   3.156 +        <property name="excludes" value=""/>
   3.157 +        <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
   3.158 +            <and>
   3.159 +                <isset property="jaxws.endorsed.dir"/>
   3.160 +                <available file="nbproject/jaxws-build.xml"/>
   3.161 +            </and>
   3.162 +        </condition>
   3.163 +        <property name="runmain.jvmargs" value=""/>
   3.164 +    </target>
   3.165 +    <target depends="init" name="-init-cos" unless="deploy.on.save">
   3.166 +        <condition property="deploy.on.save" value="true">
   3.167 +            <istrue value="${j2ee.deploy.on.save}"/>
   3.168 +        </condition>
   3.169 +    </target>
   3.170 +    <target name="-post-init">
   3.171 +        <!-- Empty placeholder for easier customization. -->
   3.172 +        <!-- You can override this target in the ../build.xml file. -->
   3.173 +    </target>
   3.174 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
   3.175 +        <fail unless="src.dir">Must set src.dir</fail>
   3.176 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
   3.177 +        <fail unless="build.dir">Must set build.dir</fail>
   3.178 +        <fail unless="build.web.dir">Must set build.web.dir</fail>
   3.179 +        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
   3.180 +        <fail unless="dist.dir">Must set dist.dir</fail>
   3.181 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   3.182 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   3.183 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   3.184 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   3.185 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   3.186 +        <fail unless="dist.war">Must set dist.war</fail>
   3.187 +        <fail unless="j2ee.platform.classpath">
   3.188 +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
   3.189 +Either open the project in the IDE and assign the server or setup the server classpath manually.
   3.190 +For example like this:
   3.191 +   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
   3.192 +or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
   3.193 +                </fail>
   3.194 +    </target>
   3.195 +    <target name="-init-macrodef-property">
   3.196 +        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
   3.197 +            <attribute name="name"/>
   3.198 +            <attribute name="value"/>
   3.199 +            <sequential>
   3.200 +                <property name="@{name}" value="${@{value}}"/>
   3.201 +            </sequential>
   3.202 +        </macrodef>
   3.203 +    </target>
   3.204 +    <target name="-init-macrodef-javac">
   3.205 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
   3.206 +            <attribute default="${src.dir}" name="srcdir"/>
   3.207 +            <attribute default="${build.classes.dir}" name="destdir"/>
   3.208 +            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   3.209 +            <attribute default="${includes}" name="includes"/>
   3.210 +            <attribute default="${excludes}" name="excludes"/>
   3.211 +            <attribute default="${javac.debug}" name="debug"/>
   3.212 +            <element name="customize" optional="true"/>
   3.213 +            <sequential>
   3.214 +                <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}">
   3.215 +                    <classpath>
   3.216 +                        <path path="@{classpath}"/>
   3.217 +                    </classpath>
   3.218 +                    <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
   3.219 +                    <customize/>
   3.220 +                </javac>
   3.221 +            </sequential>
   3.222 +        </macrodef>
   3.223 +    </target>
   3.224 +    <target name="-init-macrodef-junit">
   3.225 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
   3.226 +            <attribute default="${includes}" name="includes"/>
   3.227 +            <attribute default="${excludes}" name="excludes"/>
   3.228 +            <attribute default="**" name="testincludes"/>
   3.229 +            <sequential>
   3.230 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
   3.231 +                    <batchtest todir="${build.test.results.dir}">
   3.232 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   3.233 +                            <filename name="@{testincludes}"/>
   3.234 +                        </fileset>
   3.235 +                    </batchtest>
   3.236 +                    <classpath>
   3.237 +                        <path path="${run.test.classpath}:${j2ee.platform.classpath}"/>
   3.238 +                    </classpath>
   3.239 +                    <syspropertyset>
   3.240 +                        <propertyref prefix="test-sys-prop."/>
   3.241 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   3.242 +                    </syspropertyset>
   3.243 +                    <formatter type="brief" usefile="false"/>
   3.244 +                    <formatter type="xml"/>
   3.245 +                    <jvmarg line="${runmain.jvmargs}"/>
   3.246 +                </junit>
   3.247 +            </sequential>
   3.248 +        </macrodef>
   3.249 +    </target>
   3.250 +    <target name="-init-macrodef-java">
   3.251 +        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
   3.252 +            <attribute default="${main.class}" name="classname"/>
   3.253 +            <element name="customize" optional="true"/>
   3.254 +            <sequential>
   3.255 +                <java classname="@{classname}" fork="true">
   3.256 +                    <jvmarg line="${runmain.jvmargs}"/>
   3.257 +                    <classpath>
   3.258 +                        <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
   3.259 +                    </classpath>
   3.260 +                    <syspropertyset>
   3.261 +                        <propertyref prefix="run-sys-prop."/>
   3.262 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   3.263 +                    </syspropertyset>
   3.264 +                    <customize/>
   3.265 +                </java>
   3.266 +            </sequential>
   3.267 +        </macrodef>
   3.268 +    </target>
   3.269 +    <target name="-init-macrodef-nbjsdebug">
   3.270 +        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
   3.271 +            <attribute default="${client.url}" name="webUrl"/>
   3.272 +            <sequential>
   3.273 +                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
   3.274 +            </sequential>
   3.275 +        </macrodef>
   3.276 +    </target>
   3.277 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   3.278 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
   3.279 +            <attribute default="${main.class}" name="name"/>
   3.280 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   3.281 +            <sequential>
   3.282 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
   3.283 +                    <classpath>
   3.284 +                        <path path="@{classpath}"/>
   3.285 +                    </classpath>
   3.286 +                </nbjpdastart>
   3.287 +            </sequential>
   3.288 +        </macrodef>
   3.289 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
   3.290 +            <attribute default="${build.classes.dir}" name="dir"/>
   3.291 +            <sequential>
   3.292 +                <nbjpdareload>
   3.293 +                    <fileset dir="@{dir}" includes="${fix.classes}">
   3.294 +                        <include name="${fix.includes}*.class"/>
   3.295 +                    </fileset>
   3.296 +                </nbjpdareload>
   3.297 +            </sequential>
   3.298 +        </macrodef>
   3.299 +        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
   3.300 +            <sequential>
   3.301 +                <nbjpdaappreloaded/>
   3.302 +            </sequential>
   3.303 +        </macrodef>
   3.304 +    </target>
   3.305 +    <target name="-init-debug-args">
   3.306 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   3.307 +        <condition property="have-jdk-older-than-1.4">
   3.308 +            <or>
   3.309 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
   3.310 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
   3.311 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
   3.312 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
   3.313 +            </or>
   3.314 +        </condition>
   3.315 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   3.316 +            <istrue value="${have-jdk-older-than-1.4}"/>
   3.317 +        </condition>
   3.318 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   3.319 +            <os family="windows"/>
   3.320 +        </condition>
   3.321 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   3.322 +            <isset property="debug.transport"/>
   3.323 +        </condition>
   3.324 +    </target>
   3.325 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
   3.326 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
   3.327 +            <attribute default="${main.class}" name="classname"/>
   3.328 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   3.329 +            <attribute default="${application.args.param}" name="args"/>
   3.330 +            <element name="customize" optional="true"/>
   3.331 +            <sequential>
   3.332 +                <java classname="@{classname}" fork="true">
   3.333 +                    <jvmarg line="${debug-args-line}"/>
   3.334 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   3.335 +                    <jvmarg line="${runmain.jvmargs}"/>
   3.336 +                    <classpath>
   3.337 +                        <path path="@{classpath}"/>
   3.338 +                    </classpath>
   3.339 +                    <syspropertyset>
   3.340 +                        <propertyref prefix="run-sys-prop."/>
   3.341 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   3.342 +                    </syspropertyset>
   3.343 +                    <arg line="@{args}"/>
   3.344 +                    <customize/>
   3.345 +                </java>
   3.346 +            </sequential>
   3.347 +        </macrodef>
   3.348 +    </target>
   3.349 +    <target name="-init-taskdefs">
   3.350 +        <fail unless="libs.CopyLibs.classpath">
   3.351 +The libs.CopyLibs.classpath property is not set up.
   3.352 +This property must point to 
   3.353 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   3.354 +of NetBeans IDE installation and is usually located at 
   3.355 +&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   3.356 +Either open the project in the IDE and make sure CopyLibs library
   3.357 +exists or setup the property manually. For example like this:
   3.358 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   3.359 +                </fail>
   3.360 +        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   3.361 +    </target>
   3.362 +    <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" name="init"/>
   3.363 +    <!--
   3.364 +                COMPILATION SECTION
   3.365 +            -->
   3.366 +    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps"/>
   3.367 +    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps"/>
   3.368 +    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
   3.369 +    <target depends="init,deps-jar" name="-pre-pre-compile">
   3.370 +        <mkdir dir="${build.classes.dir}"/>
   3.371 +    </target>
   3.372 +    <target name="-pre-compile">
   3.373 +        <!-- Empty placeholder for easier customization. -->
   3.374 +        <!-- You can override this target in the ../build.xml file. -->
   3.375 +    </target>
   3.376 +    <target name="-copy-webdir">
   3.377 +        <copy todir="${build.web.dir}">
   3.378 +            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
   3.379 +        </copy>
   3.380 +        <copy todir="${build.web.dir}/WEB-INF">
   3.381 +            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
   3.382 +        </copy>
   3.383 +    </target>
   3.384 +    <target name="-do-ws-compile"/>
   3.385 +    <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,-do-ws-compile" if="have.sources" name="-do-compile">
   3.386 +        <webproject2:javac destdir="${build.classes.dir}"/>
   3.387 +        <copy todir="${build.classes.dir}">
   3.388 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   3.389 +        </copy>
   3.390 +    </target>
   3.391 +    <target if="has.custom.manifest" name="-copy-manifest">
   3.392 +        <mkdir dir="${build.meta.inf.dir}"/>
   3.393 +        <copy todir="${build.meta.inf.dir}">
   3.394 +            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
   3.395 +        </copy>
   3.396 +    </target>
   3.397 +    <target if="has.persistence.xml" name="-copy-persistence-xml">
   3.398 +        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
   3.399 +        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
   3.400 +            <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
   3.401 +        </copy>
   3.402 +    </target>
   3.403 +    <target name="-post-compile">
   3.404 +        <!-- Empty placeholder for easier customization. -->
   3.405 +        <!-- You can override this target in the ../build.xml file. -->
   3.406 +    </target>
   3.407 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   3.408 +    <target name="-pre-compile-single">
   3.409 +        <!-- Empty placeholder for easier customization. -->
   3.410 +        <!-- You can override this target in the ../build.xml file. -->
   3.411 +    </target>
   3.412 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   3.413 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   3.414 +        <webproject2:javac excludes="" includes="${javac.includes}"/>
   3.415 +        <copy todir="${build.classes.dir}">
   3.416 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   3.417 +        </copy>
   3.418 +    </target>
   3.419 +    <target name="-post-compile-single">
   3.420 +        <!-- Empty placeholder for easier customization. -->
   3.421 +        <!-- You can override this target in the ../build.xml file. -->
   3.422 +    </target>
   3.423 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   3.424 +    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
   3.425 +        <mkdir dir="${build.generated.dir}/src"/>
   3.426 +        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
   3.427 +            <arg value="-uriroot"/>
   3.428 +            <arg file="${basedir}/${build.web.dir}"/>
   3.429 +            <arg value="-d"/>
   3.430 +            <arg file="${basedir}/${build.generated.dir}/src"/>
   3.431 +            <arg value="-die1"/>
   3.432 +            <arg value="-compilerSourceVM ${javac.source}"/>
   3.433 +            <arg value="-compilerTargetVM ${javac.target}"/>
   3.434 +            <arg value="-javaEncoding ${source.encoding}"/>
   3.435 +            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
   3.436 +        </java>
   3.437 +        <mkdir dir="${build.generated.dir}/classes"/>
   3.438 +        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
   3.439 +    </target>
   3.440 +    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
   3.441 +        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
   3.442 +        <mkdir dir="${build.generated.dir}/src"/>
   3.443 +        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
   3.444 +            <arg value="-uriroot"/>
   3.445 +            <arg file="${basedir}/${build.web.dir}"/>
   3.446 +            <arg value="-d"/>
   3.447 +            <arg file="${basedir}/${build.generated.dir}/src"/>
   3.448 +            <arg value="-die1"/>
   3.449 +            <arg value="-jspc.files"/>
   3.450 +            <arg path="${jsp.includes}"/>
   3.451 +            <arg value="-compilerSourceVM ${javac.source}"/>
   3.452 +            <arg value="-compilerTargetVM ${javac.target}"/>
   3.453 +            <arg value="-javaEncoding ${source.encoding}"/>
   3.454 +            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
   3.455 +        </java>
   3.456 +        <mkdir dir="${build.generated.dir}/classes"/>
   3.457 +        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
   3.458 +            <customize>
   3.459 +                <patternset includes="${javac.jsp.includes}"/>
   3.460 +            </customize>
   3.461 +        </webproject2:javac>
   3.462 +    </target>
   3.463 +    <target name="compile-single-jsp">
   3.464 +        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
   3.465 +        <antcall target="-do-compile-single-jsp"/>
   3.466 +    </target>
   3.467 +    <!--
   3.468 +                DIST BUILDING SECTION
   3.469 +            -->
   3.470 +    <target name="-pre-dist">
   3.471 +        <!-- Empty placeholder for easier customization. -->
   3.472 +        <!-- You can override this target in the ../build.xml file. -->
   3.473 +    </target>
   3.474 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
   3.475 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   3.476 +        <mkdir dir="${dist.jar.dir}"/>
   3.477 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
   3.478 +            <fileset dir="${build.web.dir}"/>
   3.479 +        </jar>
   3.480 +    </target>
   3.481 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
   3.482 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   3.483 +        <mkdir dir="${dist.jar.dir}"/>
   3.484 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
   3.485 +            <fileset dir="${build.web.dir}"/>
   3.486 +        </jar>
   3.487 +    </target>
   3.488 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
   3.489 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   3.490 +        <mkdir dir="${dist.jar.dir}"/>
   3.491 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
   3.492 +            <fileset dir="${build.web.dir}"/>
   3.493 +        </jar>
   3.494 +    </target>
   3.495 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
   3.496 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   3.497 +        <mkdir dir="${dist.jar.dir}"/>
   3.498 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
   3.499 +            <fileset dir="${build.web.dir}"/>
   3.500 +        </jar>
   3.501 +    </target>
   3.502 +    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
   3.503 +    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
   3.504 +        <mkdir dir="${build.web.dir}/META-INF"/>
   3.505 +        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
   3.506 +    </target>
   3.507 +    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir"/>
   3.508 +    <target depends="init,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" name="do-ear-dist">
   3.509 +        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
   3.510 +        <mkdir dir="${dist.jar.dir}"/>
   3.511 +        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
   3.512 +            <fileset dir="${build.web.dir}"/>
   3.513 +        </jar>
   3.514 +    </target>
   3.515 +    <target name="-post-dist">
   3.516 +        <!-- Empty placeholder for easier customization. -->
   3.517 +        <!-- You can override this target in the ../build.xml file. -->
   3.518 +    </target>
   3.519 +    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
   3.520 +    <target depends="init,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
   3.521 +    <!--
   3.522 +                EXECUTION SECTION
   3.523 +            -->
   3.524 +    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
   3.525 +    <target name="-pre-run-deploy">
   3.526 +        <!-- Empty placeholder for easier customization. -->
   3.527 +        <!-- You can override this target in the ../build.xml file. -->
   3.528 +    </target>
   3.529 +    <target name="-post-run-deploy">
   3.530 +        <!-- Empty placeholder for easier customization. -->
   3.531 +        <!-- You can override this target in the ../build.xml file. -->
   3.532 +    </target>
   3.533 +    <target name="-pre-nbmodule-run-deploy">
   3.534 +        <!-- Empty placeholder for easier customization. -->
   3.535 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   3.536 +    </target>
   3.537 +    <target name="-post-nbmodule-run-deploy">
   3.538 +        <!-- Empty placeholder for easier customization. -->
   3.539 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   3.540 +    </target>
   3.541 +    <target name="-run-deploy-am">
   3.542 +        <!-- Task to deploy to the Access Manager runtime. -->
   3.543 +    </target>
   3.544 +    <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">
   3.545 +        <nbjpdaappreloaded/>
   3.546 +    </target>
   3.547 +    <target if="netbeans.home" name="-run-deploy-nb">
   3.548 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
   3.549 +    </target>
   3.550 +    <target name="-init-deploy-ant" unless="netbeans.home">
   3.551 +        <property name="deploy.ant.archive" value="${dist.war}"/>
   3.552 +        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
   3.553 +        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   3.554 +        <property name="deploy.ant.enabled" value="true"/>
   3.555 +    </target>
   3.556 +    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   3.557 +    <target if="netbeans.home" name="-run-undeploy-nb">
   3.558 +        <fail message="Undeploy is not supported from within the IDE"/>
   3.559 +    </target>
   3.560 +    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
   3.561 +        <nbverify file="${dist.war}"/>
   3.562 +    </target>
   3.563 +    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
   3.564 +    <target if="do.display.browser" name="-init-display-browser">
   3.565 +        <condition property="do.display.browser.nb">
   3.566 +            <isset property="netbeans.home"/>
   3.567 +        </condition>
   3.568 +        <condition property="do.display.browser.cl">
   3.569 +            <isset property="deploy.ant.enabled"/>
   3.570 +        </condition>
   3.571 +    </target>
   3.572 +    <target if="do.display.browser.nb" name="-display-browser-nb">
   3.573 +        <nbbrowse url="${client.url}"/>
   3.574 +    </target>
   3.575 +    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
   3.576 +        <condition property="browser" value="rundll32">
   3.577 +            <os family="windows"/>
   3.578 +        </condition>
   3.579 +        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
   3.580 +            <os family="windows"/>
   3.581 +        </condition>
   3.582 +        <condition property="browser" value="/usr/bin/open">
   3.583 +            <os family="mac"/>
   3.584 +        </condition>
   3.585 +        <property environment="env"/>
   3.586 +        <condition property="browser" value="${env.BROWSER}">
   3.587 +            <isset property="env.BROWSER"/>
   3.588 +        </condition>
   3.589 +        <condition property="browser" value="/usr/bin/firefox">
   3.590 +            <available file="/usr/bin/firefox"/>
   3.591 +        </condition>
   3.592 +        <condition property="browser" value="/usr/local/firefox/firefox">
   3.593 +            <available file="/usr/local/firefox/firefox"/>
   3.594 +        </condition>
   3.595 +        <condition property="browser" value="/usr/bin/mozilla">
   3.596 +            <available file="/usr/bin/mozilla"/>
   3.597 +        </condition>
   3.598 +        <condition property="browser" value="/usr/local/mozilla/mozilla">
   3.599 +            <available file="/usr/local/mozilla/mozilla"/>
   3.600 +        </condition>
   3.601 +        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
   3.602 +            <available file="/usr/sfw/lib/firefox/firefox"/>
   3.603 +        </condition>
   3.604 +        <condition property="browser" value="/opt/csw/bin/firefox">
   3.605 +            <available file="/opt/csw/bin/firefox"/>
   3.606 +        </condition>
   3.607 +        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
   3.608 +            <available file="/usr/sfw/lib/mozilla/mozilla"/>
   3.609 +        </condition>
   3.610 +        <condition property="browser" value="/opt/csw/bin/mozilla">
   3.611 +            <available file="/opt/csw/bin/mozilla"/>
   3.612 +        </condition>
   3.613 +    </target>
   3.614 +    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
   3.615 +        <fail unless="browser">
   3.616 +                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
   3.617 +                </fail>
   3.618 +        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
   3.619 +        <echo>Launching ${browse.url}</echo>
   3.620 +        <exec executable="${browser}" spawn="true">
   3.621 +            <arg line="${browser.args} ${browse.url}"/>
   3.622 +        </exec>
   3.623 +    </target>
   3.624 +    <target depends="init,-init-cos,compile-single" name="run-main">
   3.625 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   3.626 +        <webproject1:java classname="${run.class}"/>
   3.627 +    </target>
   3.628 +    <!--
   3.629 +                DEBUGGING SECTION
   3.630 +            -->
   3.631 +    <target depends="init,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">
   3.632 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true"/>
   3.633 +        <antcall target="connect-debugger"/>
   3.634 +        <antcall target="debug-display-browser"/>
   3.635 +        <antcall target="connect-client-debugger"/>
   3.636 +    </target>
   3.637 +    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
   3.638 +        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   3.639 +            <classpath>
   3.640 +                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
   3.641 +            </classpath>
   3.642 +            <sourcepath>
   3.643 +                <path path="${web.docbase.dir}"/>
   3.644 +            </sourcepath>
   3.645 +        </nbjpdaconnect>
   3.646 +    </target>
   3.647 +    <target if="do.display.browser.debug" name="debug-display-browser">
   3.648 +        <nbbrowse url="${client.url}"/>
   3.649 +    </target>
   3.650 +    <target if="do.debug.client" name="connect-client-debugger">
   3.651 +        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
   3.652 +    </target>
   3.653 +    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
   3.654 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   3.655 +        <webproject1:nbjpdastart name="${debug.class}"/>
   3.656 +    </target>
   3.657 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   3.658 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
   3.659 +        <webproject1:debug classname="${debug.class}"/>
   3.660 +    </target>
   3.661 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
   3.662 +    <target depends="init" name="-pre-debug-fix">
   3.663 +        <fail unless="fix.includes">Must set fix.includes</fail>
   3.664 +        <property name="javac.includes" value="${fix.includes}.java"/>
   3.665 +    </target>
   3.666 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   3.667 +        <webproject1:nbjpdareload/>
   3.668 +    </target>
   3.669 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   3.670 +    <!--
   3.671 +                JAVADOC SECTION
   3.672 +            -->
   3.673 +    <target depends="init" name="javadoc-build">
   3.674 +        <mkdir dir="${dist.javadoc.dir}"/>
   3.675 +        <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}">
   3.676 +            <classpath>
   3.677 +                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
   3.678 +            </classpath>
   3.679 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   3.680 +                <filename name="**/*.java"/>
   3.681 +            </fileset>
   3.682 +        </javadoc>
   3.683 +    </target>
   3.684 +    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
   3.685 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   3.686 +    </target>
   3.687 +    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
   3.688 +    <!--
   3.689 +                
   3.690 +                JUNIT COMPILATION SECTION
   3.691 +            -->
   3.692 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   3.693 +        <mkdir dir="${build.test.classes.dir}"/>
   3.694 +    </target>
   3.695 +    <target name="-pre-compile-test">
   3.696 +        <!-- Empty placeholder for easier customization. -->
   3.697 +        <!-- You can override this target in the ../build.xml file. -->
   3.698 +    </target>
   3.699 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
   3.700 +        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   3.701 +        <copy todir="${build.test.classes.dir}">
   3.702 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   3.703 +        </copy>
   3.704 +    </target>
   3.705 +    <target name="-post-compile-test">
   3.706 +        <!-- Empty placeholder for easier customization. -->
   3.707 +        <!-- You can override this target in the ../build.xml file. -->
   3.708 +    </target>
   3.709 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   3.710 +    <target name="-pre-compile-test-single">
   3.711 +        <!-- Empty placeholder for easier customization. -->
   3.712 +        <!-- You can override this target in the ../build.xml file. -->
   3.713 +    </target>
   3.714 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   3.715 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   3.716 +        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
   3.717 +        <copy todir="${build.test.classes.dir}">
   3.718 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   3.719 +        </copy>
   3.720 +    </target>
   3.721 +    <target name="-post-compile-test-single">
   3.722 +        <!-- Empty placeholder for easier customization. -->
   3.723 +        <!-- You can override this target in the ../build.xml file. -->
   3.724 +    </target>
   3.725 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   3.726 +    <!--
   3.727 +                
   3.728 +                JUNIT EXECUTION SECTION
   3.729 +            -->
   3.730 +    <target depends="init" if="have.tests" name="-pre-test-run">
   3.731 +        <mkdir dir="${build.test.results.dir}"/>
   3.732 +    </target>
   3.733 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   3.734 +        <webproject2:junit testincludes="**/*Test.java"/>
   3.735 +    </target>
   3.736 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   3.737 +        <fail if="tests.failed">Some tests failed; see details above.</fail>
   3.738 +    </target>
   3.739 +    <target depends="init" if="have.tests" name="test-report"/>
   3.740 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   3.741 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   3.742 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
   3.743 +        <mkdir dir="${build.test.results.dir}"/>
   3.744 +    </target>
   3.745 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   3.746 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   3.747 +        <webproject2:junit excludes="" includes="${test.includes}"/>
   3.748 +    </target>
   3.749 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   3.750 +        <fail if="tests.failed">Some tests failed; see details above.</fail>
   3.751 +    </target>
   3.752 +    <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"/>
   3.753 +    <!--
   3.754 +                
   3.755 +                JUNIT DEBUGGING SECTION
   3.756 +            -->
   3.757 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   3.758 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   3.759 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   3.760 +        <delete file="${test.report.file}"/>
   3.761 +        <!-- must exist, otherwise the XML formatter would fail -->
   3.762 +        <mkdir dir="${build.test.results.dir}"/>
   3.763 +        <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
   3.764 +            <customize>
   3.765 +                <arg value="showoutput=true"/>
   3.766 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   3.767 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   3.768 +            </customize>
   3.769 +        </webproject1:debug>
   3.770 +    </target>
   3.771 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   3.772 +        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   3.773 +    </target>
   3.774 +    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   3.775 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   3.776 +        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   3.777 +    </target>
   3.778 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   3.779 +    <!--
   3.780 +                
   3.781 +                CLEANUP SECTION
   3.782 +            -->
   3.783 +    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps"/>
   3.784 +    <target depends="init" name="do-clean">
   3.785 +        <condition property="build.dir.to.clean" value="${build.web.dir}">
   3.786 +            <isset property="dist.ear.dir"/>
   3.787 +        </condition>
   3.788 +        <property name="build.dir.to.clean" value="${build.web.dir}"/>
   3.789 +        <delete includeEmptyDirs="true" quiet="true">
   3.790 +            <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
   3.791 +        </delete>
   3.792 +        <delete dir="${build.dir}"/>
   3.793 +        <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
   3.794 +        <delete dir="${dist.dir}"/>
   3.795 +    </target>
   3.796 +    <target depends="do-clean" if="status.clean-failed" name="check-clean">
   3.797 +        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
   3.798 +        <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
   3.799 +    </target>
   3.800 +    <target depends="init" if="netbeans.home" name="undeploy-clean">
   3.801 +        <nbundeploy failOnError="false" startServer="false"/>
   3.802 +    </target>
   3.803 +    <target name="-post-clean">
   3.804 +        <!-- Empty placeholder for easier customization. -->
   3.805 +        <!-- You can override this target in the ../build.xml file. -->
   3.806 +    </target>
   3.807 +    <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
   3.808 +    <target depends="clean" description="Clean build products." name="clean-ear"/>
   3.809 +</project>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/java/HrisniciSpameri/nbproject/genfiles.properties	Wed Feb 11 17:09:01 2009 +0100
     4.3 @@ -0,0 +1,8 @@
     4.4 +build.xml.data.CRC32=4b8c700f
     4.5 +build.xml.script.CRC32=20d691ac
     4.6 +build.xml.stylesheet.CRC32=c0ebde35
     4.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     4.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
     4.9 +nbproject/build-impl.xml.data.CRC32=4b8c700f
    4.10 +nbproject/build-impl.xml.script.CRC32=cde5e1cb
    4.11 +nbproject/build-impl.xml.stylesheet.CRC32=174458fc
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/java/HrisniciSpameri/nbproject/private/private.properties	Wed Feb 11 17:09:01 2009 +0100
     5.3 @@ -0,0 +1,10 @@
     5.4 +deploy.ant.properties.file=/home/fiki/.netbeans/6.5/glassfish_2.properties
     5.5 +j2ee.platform.classpath=/usr/local/glassfish-v2ur2/lib/javaee.jar:/usr/local/glassfish-v2ur2/lib/jsf-impl.jar:/usr/local/glassfish-v2ur2/lib/activation.jar:/usr/local/glassfish-v2ur2/lib/appserv-tags.jar:/usr/local/glassfish-v2ur2/lib/mail.jar:/usr/local/glassfish-v2ur2/lib/appserv-jstl.jar:/usr/local/glassfish-v2ur2/lib/webservices-tools.jar:/usr/local/glassfish-v2ur2/lib/webservices-rt.jar:/usr/local/glassfish-v2ur2/lib/appserv-ws.jar
     5.6 +j2ee.platform.is.jsr109=true
     5.7 +j2ee.platform.wscompile.classpath=/usr/local/glassfish-v2ur2/lib/j2ee.jar:/usr/local/glassfish-v2ur2/lib/saaj-api.jar:/usr/local/glassfish-v2ur2/lib/saaj-impl.jar:/usr/local/glassfish-v2ur2/lib/jaxrpc-api.jar:/usr/local/glassfish-v2ur2/lib/jaxrpc-impl.jar:/usr/local/glassfish-v2ur2/lib/endorsed/jaxp-api.jar:/usr/local/glassfish-v2ur2/lib/appserv-ws.jar:/usr/local/glassfish-v2ur2/lib/webservices-tools.jar:/usr/local/glassfish-v2ur2/lib/webservices-rt.jar
     5.8 +j2ee.platform.wsgen.classpath=/usr/local/glassfish-v2ur2/lib/webservices-tools.jar:/usr/local/glassfish-v2ur2/lib/webservices-rt.jar:/usr/local/glassfish-v2ur2/lib/tools.jar:/usr/local/glassfish-v2ur2/lib/appserv-jstl.jar:/usr/local/glassfish-v2ur2/lib/javaee.jar:/usr/local/glassfish-v2ur2/lib/appserv-ws.jar:/usr/local/glassfish-v2ur2/lib/mail.jar:/usr/local/glassfish-v2ur2/lib/activation.jar
     5.9 +j2ee.platform.wsimport.classpath=/usr/local/glassfish-v2ur2/lib/webservices-tools.jar:/usr/local/glassfish-v2ur2/lib/webservices-rt.jar:/usr/local/glassfish-v2ur2/lib/tools.jar:/usr/local/glassfish-v2ur2/lib/appserv-jstl.jar:/usr/local/glassfish-v2ur2/lib/javaee.jar:/usr/local/glassfish-v2ur2/lib/appserv-ws.jar:/usr/local/glassfish-v2ur2/lib/mail.jar:/usr/local/glassfish-v2ur2/lib/activation.jar
    5.10 +j2ee.platform.wsit.classpath=
    5.11 +j2ee.server.instance=[/usr/local/glassfish-v2ur2]deployer:Sun:AppServer::hw.frantovo.cz:4949
    5.12 +jaxws.endorsed.dir=/usr/local/netbeans-6.5/java2/modules/ext/jaxws21/api:/usr/local/netbeans-6.5/ide10/modules/ext/jaxb/api
    5.13 +user.properties.file=/home/fiki/.netbeans/6.5/build.properties
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/java/HrisniciSpameri/nbproject/private/private.xml	Wed Feb 11 17:09:01 2009 +0100
     6.3 @@ -0,0 +1,6 @@
     6.4 +<?xml version="1.0" encoding="UTF-8"?>
     6.5 +<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
     6.6 +    <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/1">
     6.7 +        <file>file:/home/fiki/src/HrisniciSpameri/web/index.jsp</file>
     6.8 +    </open-files>
     6.9 +</project-private>
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/java/HrisniciSpameri/nbproject/project.properties	Wed Feb 11 17:09:01 2009 +0100
     7.3 @@ -0,0 +1,70 @@
     7.4 +build.classes.dir=${build.web.dir}/WEB-INF/classes
     7.5 +build.classes.excludes=**/*.java,**/*.form
     7.6 +build.dir=build
     7.7 +build.generated.dir=${build.dir}/generated
     7.8 +build.test.classes.dir=${build.dir}/test/classes
     7.9 +build.test.results.dir=${build.dir}/test/results
    7.10 +build.web.dir=${build.dir}/web
    7.11 +build.web.excludes=${build.classes.excludes}
    7.12 +client.urlPart=
    7.13 +compile.jsps=false
    7.14 +conf.dir=${source.root}/conf
    7.15 +debug.classpath=${build.classes.dir}:${javac.classpath}
    7.16 +debug.test.classpath=\
    7.17 +    ${run.test.classpath}
    7.18 +display.browser=true
    7.19 +dist.dir=dist
    7.20 +dist.ear.war=${dist.dir}/${war.ear.name}
    7.21 +dist.javadoc.dir=${dist.dir}/javadoc
    7.22 +dist.war=${dist.dir}/${war.name}
    7.23 +excludes=
    7.24 +includes=**
    7.25 +j2ee.deploy.on.save=true
    7.26 +j2ee.platform=1.5
    7.27 +j2ee.server.type=J2EE
    7.28 +jar.compress=false
    7.29 +javac.classpath=
    7.30 +# Space-separated list of extra javac options
    7.31 +javac.compilerargs=
    7.32 +javac.debug=true
    7.33 +javac.deprecation=false
    7.34 +javac.source=1.5
    7.35 +javac.target=1.5
    7.36 +javac.test.classpath=\
    7.37 +    ${javac.classpath}:\
    7.38 +    ${build.classes.dir}:\
    7.39 +    ${libs.junit.classpath}:\
    7.40 +    ${libs.junit_4.classpath}
    7.41 +javadoc.additionalparam=
    7.42 +javadoc.author=false
    7.43 +javadoc.encoding=${source.encoding}
    7.44 +javadoc.noindex=false
    7.45 +javadoc.nonavbar=false
    7.46 +javadoc.notree=false
    7.47 +javadoc.preview=true
    7.48 +javadoc.private=false
    7.49 +javadoc.splitindex=true
    7.50 +javadoc.use=true
    7.51 +javadoc.version=false
    7.52 +javadoc.windowtitle=
    7.53 +jspcompilation.classpath=${jspc.classpath}:${javac.classpath}
    7.54 +lib.dir=${web.docbase.dir}/WEB-INF/lib
    7.55 +no.dependencies=false
    7.56 +persistence.xml.dir=${conf.dir}
    7.57 +platform.active=default_platform
    7.58 +resource.dir=setup
    7.59 +run.test.classpath=\
    7.60 +    ${javac.test.classpath}:\
    7.61 +    ${build.test.classes.dir}
    7.62 +# Space-separated list of JVM arguments used when running a class with a main method or a unit test
    7.63 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
    7.64 +runmain.jvmargs=
    7.65 +source.encoding=UTF-8
    7.66 +source.root=src
    7.67 +src.dir=${source.root}/java
    7.68 +test.src.dir=test
    7.69 +war.content.additional=
    7.70 +war.ear.name=HrisniciSpameri.war
    7.71 +war.name=HrisniciSpameri.war
    7.72 +web.docbase.dir=web
    7.73 +webinf.dir=web/WEB-INF
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/java/HrisniciSpameri/nbproject/project.xml	Wed Feb 11 17:09:01 2009 +0100
     8.3 @@ -0,0 +1,18 @@
     8.4 +<?xml version="1.0" encoding="UTF-8"?>
     8.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
     8.6 +    <type>org.netbeans.modules.web.project</type>
     8.7 +    <configuration>
     8.8 +        <data xmlns="http://www.netbeans.org/ns/web-project/3">
     8.9 +            <name>HrisniciSpameri</name>
    8.10 +            <minimum-ant-version>1.6.5</minimum-ant-version>
    8.11 +            <web-module-libraries/>
    8.12 +            <web-module-additional-libraries/>
    8.13 +            <source-roots>
    8.14 +                <root id="src.dir" name="Source Packages"/>
    8.15 +            </source-roots>
    8.16 +            <test-roots>
    8.17 +                <root id="test.src.dir" name="Test Packages"/>
    8.18 +            </test-roots>
    8.19 +        </data>
    8.20 +    </configuration>
    8.21 +</project>
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/java/HrisniciSpameri/src/conf/MANIFEST.MF	Wed Feb 11 17:09:01 2009 +0100
     9.3 @@ -0,0 +1,2 @@
     9.4 +Manifest-Version: 1.0
     9.5 +
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/java/HrisniciSpameri/web/WEB-INF/sun-web.xml	Wed Feb 11 17:09:01 2009 +0100
    10.3 @@ -0,0 +1,11 @@
    10.4 +<?xml version="1.0" encoding="UTF-8"?>
    10.5 +<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
    10.6 +<sun-web-app error-url="">
    10.7 +  <context-root>/HrisniciSpameri</context-root>
    10.8 +  <class-loader delegate="true"/>
    10.9 +  <jsp-config>
   10.10 +    <property name="keepgenerated" value="true">
   10.11 +      <description>Keep a copy of the generated servlet class' java code.</description>
   10.12 +    </property>
   10.13 +  </jsp-config>
   10.14 +</sun-web-app>
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/java/HrisniciSpameri/web/WEB-INF/web.xml	Wed Feb 11 17:09:01 2009 +0100
    11.3 @@ -0,0 +1,11 @@
    11.4 +<?xml version="1.0" encoding="UTF-8"?>
    11.5 +<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    11.6 +    <session-config>
    11.7 +        <session-timeout>
    11.8 +            30
    11.9 +        </session-timeout>
   11.10 +    </session-config>
   11.11 +    <welcome-file-list>
   11.12 +        <welcome-file>index.jsp</welcome-file>
   11.13 +        </welcome-file-list>
   11.14 +    </web-app>
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/java/HrisniciSpameri/web/index.jsp	Wed Feb 11 17:09:01 2009 +0100
    12.3 @@ -0,0 +1,19 @@
    12.4 +<%-- 
    12.5 +    Document   : index
    12.6 +    Created on : 11.2.2009, 16:54:21
    12.7 +    Author     : fiki
    12.8 +--%>
    12.9 +
   12.10 +<%@page contentType="text/html" pageEncoding="UTF-8"%>
   12.11 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   12.12 +   "http://www.w3.org/TR/html4/loose.dtd">
   12.13 +
   12.14 +<html>
   12.15 +    <head>
   12.16 +        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   12.17 +        <title>JSP Page</title>
   12.18 +    </head>
   12.19 +    <body>
   12.20 +        <h1>Hello World!</h1>
   12.21 +    </body>
   12.22 +</html>