WS: přidána pokusná webová služba – SOAP.
authorFrantišek Kučera <franta-hg@frantovo.cz>
Mon Apr 12 10:50:39 2010 +0200 (2010-04-12)
changeset 9875dec396f0e3
parent 97 8fce6d532576
child 99 fd22f66e812d
WS: přidána pokusná webová služba – SOAP.
.hgignore
java/nekurak.net-ear/nbproject/build-impl.xml
java/nekurak.net-ear/nbproject/genfiles.properties
java/nekurak.net-ear/nbproject/project.properties
java/nekurak.net-ear/nbproject/project.xml
java/nekurak.net-ws/nbproject/ant-deploy.xml
java/nekurak.net-ws/nbproject/build-impl.xml
java/nekurak.net-ws/nbproject/genfiles.properties
java/nekurak.net-ws/nbproject/jax-ws.xml
java/nekurak.net-ws/nbproject/jaxws-build.xml
java/nekurak.net-ws/nbproject/project.properties
java/nekurak.net-ws/nbproject/project.xml
java/nekurak.net-ws/nbproject/wsit-deploy.xml
java/nekurak.net-ws/nbproject/wsit.createuser
java/nekurak.net-ws/src/conf/MANIFEST.MF
java/nekurak.net-ws/src/java/cz/frantovo/nekurak/ws/Pokus.java
java/nekurak.net-ws/web/WEB-INF/beans.xml
java/nekurak.net-ws/web/WEB-INF/sun-web.xml
java/nekurak.net-ws/web/WEB-INF/web.xml
java/nekurak.net-ws/web/WEB-INF/wsit-cz.frantovo.nekurak.ws.Pokus.xml
java/nekurak.net-ws/web/index.jsp
     1.1 --- a/.hgignore	Tue Apr 06 23:43:24 2010 +0200
     1.2 +++ b/.hgignore	Mon Apr 12 10:50:39 2010 +0200
     1.3 @@ -24,3 +24,7 @@
     1.4  java/nekurak.net-rest/dist/*
     1.5  java/nekurak.net-rest/build/*
     1.6  java/nekurak.net-rest/nbproject/private
     1.7 +
     1.8 +java/nekurak.net-ws/dist/*
     1.9 +java/nekurak.net-ws/build/*
    1.10 +java/nekurak.net-ws/nbproject/private
     2.1 --- a/java/nekurak.net-ear/nbproject/build-impl.xml	Tue Apr 06 23:43:24 2010 +0200
     2.2 +++ b/java/nekurak.net-ear/nbproject/build-impl.xml	Mon Apr 12 10:50:39 2010 +0200
     2.3 @@ -179,6 +179,15 @@
     2.4              <property location="${build.dir}" name="dist.ear.dir"/>
     2.5              <property name="deploy.on.save" value="${build.deploy.on.save}"/>
     2.6          </ant>
     2.7 +        <condition property="build.deploy.on.save" value="false">
     2.8 +            <not>
     2.9 +                <isset property="build.deploy.on.save"/>
    2.10 +            </not>
    2.11 +        </condition>
    2.12 +        <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="dist-ear">
    2.13 +            <property location="${build.dir}" name="dist.ear.dir"/>
    2.14 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
    2.15 +        </ant>
    2.16      </target>
    2.17      <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
    2.18      <target name="pre-compile">
    2.19 @@ -194,6 +203,7 @@
    2.20          <copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
    2.21          <copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
    2.22          <copyfiles files="${reference.nekurak_net-rest.dist-ear}" todir="${build.dir}//"/>
    2.23 +        <copyfiles files="${reference.nekurak_net-ws.dist-ear}" todir="${build.dir}//"/>
    2.24      </target>
    2.25      <target name="post-compile">
    2.26          <!-- Empty placeholder for easier customization. -->
    2.27 @@ -273,6 +283,7 @@
    2.28          <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
    2.29          <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="-run-deploy-am"/>
    2.30          <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
    2.31 +        <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="-run-deploy-am"/>
    2.32      </target>
    2.33      <target depends="-init-cos,dist-directory-deploy,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"/>
    2.34      <target if="netbeans.home" name="-run-deploy-nb">
    2.35 @@ -479,6 +490,15 @@
    2.36              <property location="${build.dir}" name="dist.ear.dir"/>
    2.37              <property name="deploy.on.save" value="${build.deploy.on.save}"/>
    2.38          </ant>
    2.39 +        <condition property="build.deploy.on.save" value="false">
    2.40 +            <not>
    2.41 +                <isset property="build.deploy.on.save"/>
    2.42 +            </not>
    2.43 +        </condition>
    2.44 +        <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="clean-ear">
    2.45 +            <property location="${build.dir}" name="dist.ear.dir"/>
    2.46 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
    2.47 +        </ant>
    2.48      </target>
    2.49      <target depends="init" name="do-clean">
    2.50          <delete dir="${build.dir}"/>
     3.1 --- a/java/nekurak.net-ear/nbproject/genfiles.properties	Tue Apr 06 23:43:24 2010 +0200
     3.2 +++ b/java/nekurak.net-ear/nbproject/genfiles.properties	Mon Apr 12 10:50:39 2010 +0200
     3.3 @@ -3,6 +3,6 @@
     3.4  build.xml.stylesheet.CRC32=475c2a62@1.17.2
     3.5  # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     3.6  # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
     3.7 -nbproject/build-impl.xml.data.CRC32=efe37659
     3.8 -nbproject/build-impl.xml.script.CRC32=4bf9637a
     3.9 +nbproject/build-impl.xml.data.CRC32=3ed495e4
    3.10 +nbproject/build-impl.xml.script.CRC32=a4c4fbbd
    3.11  nbproject/build-impl.xml.stylesheet.CRC32=624b8ca2@1.17.2
     4.1 --- a/java/nekurak.net-ear/nbproject/project.properties	Tue Apr 06 23:43:24 2010 +0200
     4.2 +++ b/java/nekurak.net-ear/nbproject/project.properties	Mon Apr 12 10:50:39 2010 +0200
     4.3 @@ -17,7 +17,8 @@
     4.4  jar.content.additional=\
     4.5      ${reference.nekurak_net-web.dist-ear}:\
     4.6      ${reference.nekurak_net-ejb.dist-ear}:\
     4.7 -    ${reference.nekurak_net-rest.dist-ear}
     4.8 +    ${reference.nekurak_net-rest.dist-ear}:\
     4.9 +    ${reference.nekurak_net-ws.dist-ear}
    4.10  jar.name=nekurak.net-ear.ear
    4.11  javac.debug=true
    4.12  javac.deprecation=false
    4.13 @@ -29,9 +30,11 @@
    4.14  project.nekurak_net-ejb=../nekurak.net-ejb
    4.15  project.nekurak_net-rest=../nekurak.net-rest
    4.16  project.nekurak_net-web=../nekurak.net-web
    4.17 +project.nekurak_net-ws=../nekurak.net-ws
    4.18  reference.nekurak_net-ejb.dist-ear=${project.nekurak_net-ejb}/dist/nekurak.net-ejb.jar
    4.19  reference.nekurak_net-rest.dist-ear=${project.nekurak_net-rest}/dist/nekurak.net-rest.war
    4.20  reference.nekurak_net-web.dist-ear=${project.nekurak_net-web}/dist/nekurak.net-web.war
    4.21 +reference.nekurak_net-ws.dist-ear=${project.nekurak_net-ws}/dist/nekurak.net-ws.war
    4.22  resource.dir=setup
    4.23  run.classpath=
    4.24  source.root=.
     5.1 --- a/java/nekurak.net-ear/nbproject/project.xml	Tue Apr 06 23:43:24 2010 +0200
     5.2 +++ b/java/nekurak.net-ear/nbproject/project.xml	Mon Apr 12 10:50:39 2010 +0200
     5.3 @@ -19,6 +19,10 @@
     5.4                      <file>${reference.nekurak_net-rest.dist-ear}</file>
     5.5                      <path-in-war>/</path-in-war>
     5.6                  </library>
     5.7 +                <library>
     5.8 +                    <file>${reference.nekurak_net-ws.dist-ear}</file>
     5.9 +                    <path-in-war>/</path-in-war>
    5.10 +                </library>
    5.11              </web-module-additional-libraries>
    5.12          </data>
    5.13          <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
    5.14 @@ -46,6 +50,14 @@
    5.15                  <clean-target>clean-ear</clean-target>
    5.16                  <id>dist-ear</id>
    5.17              </reference>
    5.18 +            <reference>
    5.19 +                <foreign-project>nekurak_net-ws</foreign-project>
    5.20 +                <artifact-type>j2ee_ear_archive</artifact-type>
    5.21 +                <script>build.xml</script>
    5.22 +                <target>dist-ear</target>
    5.23 +                <clean-target>clean-ear</clean-target>
    5.24 +                <id>dist-ear</id>
    5.25 +            </reference>
    5.26          </references>
    5.27      </configuration>
    5.28  </project>
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/java/nekurak.net-ws/nbproject/ant-deploy.xml	Mon Apr 12 10:50:39 2010 +0200
     6.3 @@ -0,0 +1,60 @@
     6.4 +<?xml version="1.0" encoding="UTF-8"?>
     6.5 +<project default="-deploy-ant" basedir=".">
     6.6 +    <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
     6.7 +        <property file="${deploy.ant.properties.file}" />
     6.8 +        <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
     6.9 +        <available file="${deploy.ant.resource.dir}" property="has.setup"/>
    6.10 +        <tempfile prefix="gfv3" property="gfv3.password.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
    6.11 +        <echo message="AS_ADMIN_PASSWORD=${gfv3.password}" file="${gfv3.password.file}"/>
    6.12 +    </target>
    6.13 +    
    6.14 +    <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
    6.15 +        <tempfile prefix="gfv3" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
    6.16 +        <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
    6.17 +        <!-- The doctype triggers resolution which can fail -->
    6.18 +        <replace file="${temp.sun.web}">
    6.19 +            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
    6.20 +            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
    6.21 +        </replace>
    6.22 +        <replace file="${temp.sun.web}">
    6.23 +            <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
    6.24 +            <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
    6.25 +        </replace>
    6.26 +        <xmlproperty file="${temp.sun.web}" validate="false">
    6.27 +        </xmlproperty>    
    6.28 +        <delete file="${temp.sun.web}"/>
    6.29 +        <property name="deploy.ant.client.url" value="${gfv3.url}${sun-web-app.context-root}"/>
    6.30 +        <property name="deploy.context.root.argument" value="?contextroot=${sun-web-app.context-root}"/>
    6.31 +    </target>
    6.32 +    <target name="-no-parse-sun-web" depends="-init-cl-deployment-env" unless="sun.web.present">
    6.33 +        <property name="deploy.context.root.argument" value=""/>
    6.34 +    </target>
    6.35 +    <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
    6.36 +        <tempfile prefix="gfv3" property="gfv3.resources.dir" destdir="${java.io.tmpdir}"/>
    6.37 +        <mkdir dir="${gfv3.resources.dir}"/>
    6.38 +        <mkdir dir="${gfv3.resources.dir}/META-INF"/>
    6.39 +        <property name="gfv3.resources.file" value="${gfv3.resources.dir}/META-INF/sun-resources.xml"/>
    6.40 +        <copy todir="${gfv3.resources.dir}/META-INF">
    6.41 +            <fileset dir="${deploy.ant.resource.dir}"/>
    6.42 +        </copy>
    6.43 +        <jar destfile="${deploy.ant.archive}" update="true">
    6.44 +            <fileset dir="${gfv3.resources.dir}"/>
    6.45 +        </jar>
    6.46 +        <delete dir="${gfv3.resources.dir}"/>
    6.47 +    </target>
    6.48 +    <target name="-deploy-ant" depends="-parse-sun-web,-no-parse-sun-web,-add-resources" if="deploy.ant.enabled">
    6.49 +        <echo message="Deploying ${deploy.ant.archive}"/>
    6.50 +        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
    6.51 +        <property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
    6.52 +        <get src="${gfv3.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}?force=true?name=${ant.project.name}"
    6.53 +            dest="${gfv3.results.file}"/>
    6.54 +        <delete file="${gfv3.results.file}"/>    
    6.55 +    </target>
    6.56 +    <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
    6.57 +        <echo message="Undeploying ${deploy.ant.archive}"/>
    6.58 +        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
    6.59 +        <get src="${gfv3.url}/__asadmin/undeploy?name=${ant.project.name}"
    6.60 +            dest="${gfv3.results.file}"/>
    6.61 +        <delete file="${gfv3.results.file}"/>    
    6.62 +    </target>
    6.63 +</project>
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/java/nekurak.net-ws/nbproject/build-impl.xml	Mon Apr 12 10:50:39 2010 +0200
     7.3 @@ -0,0 +1,856 @@
     7.4 +<?xml version="1.0" encoding="UTF-8"?>
     7.5 +<!--
     7.6 +        *** GENERATED FROM project.xml - DO NOT EDIT  ***
     7.7 +        ***         EDIT ../build.xml INSTEAD         ***
     7.8 +
     7.9 +        For the purpose of easier reading the script
    7.10 +        is divided into following sections:
    7.11 +        - initialization
    7.12 +        - compilation
    7.13 +        - dist
    7.14 +        - execution
    7.15 +        - debugging
    7.16 +        - javadoc
    7.17 +        - junit compilation
    7.18 +        - junit execution
    7.19 +        - junit debugging
    7.20 +        - cleanup
    7.21 +
    7.22 +        -->
    7.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="nekurak.net-ws-impl">
    7.24 +    <import file="jaxws-build.xml"/>
    7.25 +    <import file="ant-deploy.xml"/>
    7.26 +    <fail message="Please build using Ant 1.7.1 or higher.">
    7.27 +        <condition>
    7.28 +            <not>
    7.29 +                <antversion atleast="1.7.1"/>
    7.30 +            </not>
    7.31 +        </condition>
    7.32 +    </fail>
    7.33 +    <target depends="dist,javadoc" description="Build whole project." name="default"/>
    7.34 +    <!--
    7.35 +                INITIALIZATION SECTION
    7.36 +            -->
    7.37 +    <target name="-pre-init">
    7.38 +        <!-- Empty placeholder for easier customization. -->
    7.39 +        <!-- You can override this target in the ../build.xml file. -->
    7.40 +    </target>
    7.41 +    <target depends="-pre-init" name="-init-private">
    7.42 +        <property file="nbproject/private/private.properties"/>
    7.43 +    </target>
    7.44 +    <target depends="-pre-init,-init-private" name="-init-user">
    7.45 +        <property file="${user.properties.file}"/>
    7.46 +        <!-- The two properties below are usually overridden -->
    7.47 +        <!-- by the active platform. Just a fallback. -->
    7.48 +        <property name="default.javac.source" value="1.4"/>
    7.49 +        <property name="default.javac.target" value="1.4"/>
    7.50 +    </target>
    7.51 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    7.52 +        <property file="nbproject/project.properties"/>
    7.53 +    </target>
    7.54 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
    7.55 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    7.56 +        <condition property="have.tests">
    7.57 +            <or>
    7.58 +                <available file="${test.src.dir}"/>
    7.59 +            </or>
    7.60 +        </condition>
    7.61 +        <condition property="have.sources">
    7.62 +            <or>
    7.63 +                <available file="${src.dir}"/>
    7.64 +            </or>
    7.65 +        </condition>
    7.66 +        <condition property="netbeans.home+have.tests">
    7.67 +            <and>
    7.68 +                <isset property="netbeans.home"/>
    7.69 +                <isset property="have.tests"/>
    7.70 +            </and>
    7.71 +        </condition>
    7.72 +        <condition property="no.javadoc.preview">
    7.73 +            <isfalse value="${javadoc.preview}"/>
    7.74 +        </condition>
    7.75 +        <property name="javac.compilerargs" value=""/>
    7.76 +        <condition property="no.deps">
    7.77 +            <and>
    7.78 +                <istrue value="${no.dependencies}"/>
    7.79 +            </and>
    7.80 +        </condition>
    7.81 +        <condition property="no.dist.ear.dir">
    7.82 +            <not>
    7.83 +                <isset property="dist.ear.dir"/>
    7.84 +            </not>
    7.85 +        </condition>
    7.86 +        <property name="build.web.excludes" value="${build.classes.excludes}"/>
    7.87 +        <condition property="do.compile.jsps">
    7.88 +            <istrue value="${compile.jsps}"/>
    7.89 +        </condition>
    7.90 +        <condition property="do.debug.server">
    7.91 +            <or>
    7.92 +                <not>
    7.93 +                    <isset property="debug.server"/>
    7.94 +                </not>
    7.95 +                <istrue value="${debug.server}"/>
    7.96 +                <and>
    7.97 +                    <not>
    7.98 +                        <istrue value="${debug.server}"/>
    7.99 +                    </not>
   7.100 +                    <not>
   7.101 +                        <istrue value="${debug.client}"/>
   7.102 +                    </not>
   7.103 +                </and>
   7.104 +            </or>
   7.105 +        </condition>
   7.106 +        <condition property="do.debug.client">
   7.107 +            <istrue value="${debug.client}"/>
   7.108 +        </condition>
   7.109 +        <condition property="do.display.browser">
   7.110 +            <istrue value="${display.browser}"/>
   7.111 +        </condition>
   7.112 +        <condition property="do.display.browser.debug">
   7.113 +            <and>
   7.114 +                <isset property="do.display.browser"/>
   7.115 +                <not>
   7.116 +                    <isset property="do.debug.client"/>
   7.117 +                </not>
   7.118 +            </and>
   7.119 +        </condition>
   7.120 +        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
   7.121 +        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
   7.122 +        <condition property="do.war.package.with.custom.manifest">
   7.123 +            <isset property="has.custom.manifest"/>
   7.124 +        </condition>
   7.125 +        <condition property="do.war.package.without.custom.manifest">
   7.126 +            <not>
   7.127 +                <isset property="has.custom.manifest"/>
   7.128 +            </not>
   7.129 +        </condition>
   7.130 +        <condition property="do.tmp.war.package.with.custom.manifest">
   7.131 +            <and>
   7.132 +                <isset property="has.custom.manifest"/>
   7.133 +                <or>
   7.134 +                    <isfalse value="${directory.deployment.supported}"/>
   7.135 +                    <isset property="dist.ear.dir"/>
   7.136 +                </or>
   7.137 +            </and>
   7.138 +        </condition>
   7.139 +        <condition property="do.tmp.war.package.without.custom.manifest">
   7.140 +            <and>
   7.141 +                <not>
   7.142 +                    <isset property="has.custom.manifest"/>
   7.143 +                </not>
   7.144 +                <or>
   7.145 +                    <isfalse value="${directory.deployment.supported}"/>
   7.146 +                    <isset property="dist.ear.dir"/>
   7.147 +                </or>
   7.148 +            </and>
   7.149 +        </condition>
   7.150 +        <condition property="do.tmp.war.package">
   7.151 +            <or>
   7.152 +                <isfalse value="${directory.deployment.supported}"/>
   7.153 +                <isset property="dist.ear.dir"/>
   7.154 +            </or>
   7.155 +        </condition>
   7.156 +        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
   7.157 +        <condition else="" property="application.args.param" value="${application.args}">
   7.158 +            <and>
   7.159 +                <isset property="application.args"/>
   7.160 +                <not>
   7.161 +                    <equals arg1="${application.args}" arg2="" trim="true"/>
   7.162 +                </not>
   7.163 +            </and>
   7.164 +        </condition>
   7.165 +        <property name="source.encoding" value="${file.encoding}"/>
   7.166 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   7.167 +            <and>
   7.168 +                <isset property="javadoc.encoding"/>
   7.169 +                <not>
   7.170 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
   7.171 +                </not>
   7.172 +            </and>
   7.173 +        </condition>
   7.174 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
   7.175 +        <property name="includes" value="**"/>
   7.176 +        <property name="excludes" value=""/>
   7.177 +        <property name="runmain.jvmargs" value=""/>
   7.178 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   7.179 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   7.180 +            <length length="0" string="${endorsed.classpath}" when="greater"/>
   7.181 +        </condition>
   7.182 +    </target>
   7.183 +    <target depends="init" name="-init-cos" unless="deploy.on.save">
   7.184 +        <condition property="deploy.on.save" value="true">
   7.185 +            <istrue value="${j2ee.deploy.on.save}"/>
   7.186 +        </condition>
   7.187 +    </target>
   7.188 +    <target name="-post-init">
   7.189 +        <!-- Empty placeholder for easier customization. -->
   7.190 +        <!-- You can override this target in the ../build.xml file. -->
   7.191 +    </target>
   7.192 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
   7.193 +        <fail unless="src.dir">Must set src.dir</fail>
   7.194 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
   7.195 +        <fail unless="build.dir">Must set build.dir</fail>
   7.196 +        <fail unless="build.web.dir">Must set build.web.dir</fail>
   7.197 +        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
   7.198 +        <fail unless="dist.dir">Must set dist.dir</fail>
   7.199 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   7.200 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   7.201 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   7.202 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   7.203 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   7.204 +        <fail unless="dist.war">Must set dist.war</fail>
   7.205 +        <fail unless="j2ee.platform.classpath">
   7.206 +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
   7.207 +Either open the project in the IDE and assign the server or setup the server classpath manually.
   7.208 +For example like this:
   7.209 +   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
   7.210 +or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
   7.211 +                </fail>
   7.212 +    </target>
   7.213 +    <target name="-init-macrodef-property">
   7.214 +        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
   7.215 +            <attribute name="name"/>
   7.216 +            <attribute name="value"/>
   7.217 +            <sequential>
   7.218 +                <property name="@{name}" value="${@{value}}"/>
   7.219 +            </sequential>
   7.220 +        </macrodef>
   7.221 +    </target>
   7.222 +    <target name="-init-macrodef-javac">
   7.223 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
   7.224 +            <attribute default="${src.dir}" name="srcdir"/>
   7.225 +            <attribute default="${build.classes.dir}" name="destdir"/>
   7.226 +            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   7.227 +            <attribute default="${includes}" name="includes"/>
   7.228 +            <attribute default="${excludes}" name="excludes"/>
   7.229 +            <attribute default="${javac.debug}" name="debug"/>
   7.230 +            <attribute default="${empty.dir}" name="gensrcdir"/>
   7.231 +            <element name="customize" optional="true"/>
   7.232 +            <sequential>
   7.233 +                <property location="${build.dir}/empty" name="empty.dir"/>
   7.234 +                <mkdir dir="${empty.dir}"/>
   7.235 +                <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}">
   7.236 +                    <src>
   7.237 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   7.238 +                            <include name="*"/>
   7.239 +                        </dirset>
   7.240 +                    </src>
   7.241 +                    <classpath>
   7.242 +                        <path path="@{classpath}"/>
   7.243 +                    </classpath>
   7.244 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   7.245 +                    <compilerarg line="${javac.compilerargs}"/>
   7.246 +                    <customize/>
   7.247 +                </javac>
   7.248 +            </sequential>
   7.249 +        </macrodef>
   7.250 +    </target>
   7.251 +    <target name="-init-macrodef-junit">
   7.252 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
   7.253 +            <attribute default="${includes}" name="includes"/>
   7.254 +            <attribute default="${excludes}" name="excludes"/>
   7.255 +            <attribute default="**" name="testincludes"/>
   7.256 +            <sequential>
   7.257 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
   7.258 +                    <batchtest todir="${build.test.results.dir}">
   7.259 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   7.260 +                            <filename name="@{testincludes}"/>
   7.261 +                        </fileset>
   7.262 +                    </batchtest>
   7.263 +                    <classpath>
   7.264 +                        <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
   7.265 +                    </classpath>
   7.266 +                    <syspropertyset>
   7.267 +                        <propertyref prefix="test-sys-prop."/>
   7.268 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   7.269 +                    </syspropertyset>
   7.270 +                    <formatter type="brief" usefile="false"/>
   7.271 +                    <formatter type="xml"/>
   7.272 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   7.273 +                    <jvmarg line="${runmain.jvmargs}"/>
   7.274 +                </junit>
   7.275 +            </sequential>
   7.276 +        </macrodef>
   7.277 +    </target>
   7.278 +    <target name="-init-macrodef-java">
   7.279 +        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
   7.280 +            <attribute default="${main.class}" name="classname"/>
   7.281 +            <attribute default="${debug.classpath}" name="classpath"/>
   7.282 +            <element name="customize" optional="true"/>
   7.283 +            <sequential>
   7.284 +                <java classname="@{classname}" fork="true">
   7.285 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   7.286 +                    <jvmarg line="${runmain.jvmargs}"/>
   7.287 +                    <classpath>
   7.288 +                        <path path="@{classpath}:${j2ee.platform.classpath}"/>
   7.289 +                    </classpath>
   7.290 +                    <syspropertyset>
   7.291 +                        <propertyref prefix="run-sys-prop."/>
   7.292 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   7.293 +                    </syspropertyset>
   7.294 +                    <customize/>
   7.295 +                </java>
   7.296 +            </sequential>
   7.297 +        </macrodef>
   7.298 +    </target>
   7.299 +    <target name="-init-macrodef-nbjsdebug">
   7.300 +        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
   7.301 +            <attribute default="${client.url}" name="webUrl"/>
   7.302 +            <sequential>
   7.303 +                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
   7.304 +            </sequential>
   7.305 +        </macrodef>
   7.306 +    </target>
   7.307 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   7.308 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
   7.309 +            <attribute default="${main.class}" name="name"/>
   7.310 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   7.311 +            <sequential>
   7.312 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
   7.313 +                    <classpath>
   7.314 +                        <path path="@{classpath}"/>
   7.315 +                    </classpath>
   7.316 +                </nbjpdastart>
   7.317 +            </sequential>
   7.318 +        </macrodef>
   7.319 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
   7.320 +            <attribute default="${build.classes.dir}" name="dir"/>
   7.321 +            <sequential>
   7.322 +                <nbjpdareload>
   7.323 +                    <fileset dir="@{dir}" includes="${fix.classes}">
   7.324 +                        <include name="${fix.includes}*.class"/>
   7.325 +                    </fileset>
   7.326 +                </nbjpdareload>
   7.327 +            </sequential>
   7.328 +        </macrodef>
   7.329 +        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
   7.330 +            <sequential>
   7.331 +                <nbjpdaappreloaded/>
   7.332 +            </sequential>
   7.333 +        </macrodef>
   7.334 +    </target>
   7.335 +    <target name="-init-debug-args">
   7.336 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   7.337 +        <condition property="have-jdk-older-than-1.4">
   7.338 +            <or>
   7.339 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
   7.340 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
   7.341 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
   7.342 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
   7.343 +            </or>
   7.344 +        </condition>
   7.345 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   7.346 +            <istrue value="${have-jdk-older-than-1.4}"/>
   7.347 +        </condition>
   7.348 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   7.349 +            <os family="windows"/>
   7.350 +        </condition>
   7.351 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   7.352 +            <isset property="debug.transport"/>
   7.353 +        </condition>
   7.354 +    </target>
   7.355 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
   7.356 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
   7.357 +            <attribute default="${main.class}" name="classname"/>
   7.358 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   7.359 +            <attribute default="${application.args.param}" name="args"/>
   7.360 +            <element name="customize" optional="true"/>
   7.361 +            <sequential>
   7.362 +                <java classname="@{classname}" fork="true">
   7.363 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   7.364 +                    <jvmarg line="${debug-args-line}"/>
   7.365 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   7.366 +                    <jvmarg line="${runmain.jvmargs}"/>
   7.367 +                    <classpath>
   7.368 +                        <path path="@{classpath}"/>
   7.369 +                    </classpath>
   7.370 +                    <syspropertyset>
   7.371 +                        <propertyref prefix="run-sys-prop."/>
   7.372 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   7.373 +                    </syspropertyset>
   7.374 +                    <arg line="@{args}"/>
   7.375 +                    <customize/>
   7.376 +                </java>
   7.377 +            </sequential>
   7.378 +        </macrodef>
   7.379 +    </target>
   7.380 +    <target name="-init-taskdefs">
   7.381 +        <fail unless="libs.CopyLibs.classpath">
   7.382 +The libs.CopyLibs.classpath property is not set up.
   7.383 +This property must point to 
   7.384 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   7.385 +of NetBeans IDE installation and is usually located at 
   7.386 +&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   7.387 +Either open the project in the IDE and make sure CopyLibs library
   7.388 +exists or setup the property manually. For example like this:
   7.389 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   7.390 +                </fail>
   7.391 +        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   7.392 +    </target>
   7.393 +    <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"/>
   7.394 +    <!--
   7.395 +                COMPILATION SECTION
   7.396 +            -->
   7.397 +    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps"/>
   7.398 +    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps"/>
   7.399 +    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
   7.400 +    <target depends="init,deps-jar" name="-pre-pre-compile">
   7.401 +        <mkdir dir="${build.classes.dir}"/>
   7.402 +    </target>
   7.403 +    <target name="-pre-compile">
   7.404 +        <!-- Empty placeholder for easier customization. -->
   7.405 +        <!-- You can override this target in the ../build.xml file. -->
   7.406 +    </target>
   7.407 +    <target name="-copy-webdir">
   7.408 +        <copy todir="${build.web.dir}">
   7.409 +            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
   7.410 +        </copy>
   7.411 +        <copy todir="${build.web.dir}/WEB-INF">
   7.412 +            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
   7.413 +        </copy>
   7.414 +    </target>
   7.415 +    <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">
   7.416 +        <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
   7.417 +        <copy todir="${build.classes.dir}">
   7.418 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   7.419 +        </copy>
   7.420 +    </target>
   7.421 +    <target if="has.custom.manifest" name="-copy-manifest">
   7.422 +        <mkdir dir="${build.meta.inf.dir}"/>
   7.423 +        <copy todir="${build.meta.inf.dir}">
   7.424 +            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
   7.425 +        </copy>
   7.426 +    </target>
   7.427 +    <target if="has.persistence.xml" name="-copy-persistence-xml">
   7.428 +        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
   7.429 +        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
   7.430 +            <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
   7.431 +        </copy>
   7.432 +    </target>
   7.433 +    <target name="-post-compile">
   7.434 +        <!-- Empty placeholder for easier customization. -->
   7.435 +        <!-- You can override this target in the ../build.xml file. -->
   7.436 +    </target>
   7.437 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   7.438 +    <target name="-pre-compile-single">
   7.439 +        <!-- Empty placeholder for easier customization. -->
   7.440 +        <!-- You can override this target in the ../build.xml file. -->
   7.441 +    </target>
   7.442 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   7.443 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   7.444 +        <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
   7.445 +        <copy todir="${build.classes.dir}">
   7.446 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   7.447 +        </copy>
   7.448 +    </target>
   7.449 +    <target name="-post-compile-single">
   7.450 +        <!-- Empty placeholder for easier customization. -->
   7.451 +        <!-- You can override this target in the ../build.xml file. -->
   7.452 +    </target>
   7.453 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   7.454 +    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
   7.455 +        <mkdir dir="${build.generated.dir}/src"/>
   7.456 +        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
   7.457 +            <arg value="-uriroot"/>
   7.458 +            <arg file="${basedir}/${build.web.dir}"/>
   7.459 +            <arg value="-d"/>
   7.460 +            <arg file="${basedir}/${build.generated.dir}/src"/>
   7.461 +            <arg value="-die1"/>
   7.462 +            <arg value="-compilerSourceVM ${javac.source}"/>
   7.463 +            <arg value="-compilerTargetVM ${javac.target}"/>
   7.464 +            <arg value="-javaEncoding ${source.encoding}"/>
   7.465 +            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
   7.466 +        </java>
   7.467 +        <mkdir dir="${build.generated.dir}/classes"/>
   7.468 +        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
   7.469 +    </target>
   7.470 +    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
   7.471 +        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
   7.472 +        <mkdir dir="${build.generated.dir}/src"/>
   7.473 +        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
   7.474 +            <arg value="-uriroot"/>
   7.475 +            <arg file="${basedir}/${build.web.dir}"/>
   7.476 +            <arg value="-d"/>
   7.477 +            <arg file="${basedir}/${build.generated.dir}/src"/>
   7.478 +            <arg value="-die1"/>
   7.479 +            <arg value="-jspc.files"/>
   7.480 +            <arg path="${jsp.includes}"/>
   7.481 +            <arg value="-compilerSourceVM ${javac.source}"/>
   7.482 +            <arg value="-compilerTargetVM ${javac.target}"/>
   7.483 +            <arg value="-javaEncoding ${source.encoding}"/>
   7.484 +            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
   7.485 +        </java>
   7.486 +        <mkdir dir="${build.generated.dir}/classes"/>
   7.487 +        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
   7.488 +            <customize>
   7.489 +                <patternset includes="${javac.jsp.includes}"/>
   7.490 +            </customize>
   7.491 +        </webproject2:javac>
   7.492 +    </target>
   7.493 +    <target name="compile-single-jsp">
   7.494 +        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
   7.495 +        <antcall target="-do-compile-single-jsp"/>
   7.496 +    </target>
   7.497 +    <!--
   7.498 +                DIST BUILDING SECTION
   7.499 +            -->
   7.500 +    <target name="-pre-dist">
   7.501 +        <!-- Empty placeholder for easier customization. -->
   7.502 +        <!-- You can override this target in the ../build.xml file. -->
   7.503 +    </target>
   7.504 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
   7.505 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   7.506 +        <mkdir dir="${dist.jar.dir}"/>
   7.507 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
   7.508 +            <fileset dir="${build.web.dir}"/>
   7.509 +        </jar>
   7.510 +    </target>
   7.511 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
   7.512 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   7.513 +        <mkdir dir="${dist.jar.dir}"/>
   7.514 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
   7.515 +            <fileset dir="${build.web.dir}"/>
   7.516 +        </jar>
   7.517 +    </target>
   7.518 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
   7.519 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   7.520 +        <mkdir dir="${dist.jar.dir}"/>
   7.521 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
   7.522 +            <fileset dir="${build.web.dir}"/>
   7.523 +        </jar>
   7.524 +    </target>
   7.525 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
   7.526 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   7.527 +        <mkdir dir="${dist.jar.dir}"/>
   7.528 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
   7.529 +            <fileset dir="${build.web.dir}"/>
   7.530 +        </jar>
   7.531 +    </target>
   7.532 +    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
   7.533 +    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
   7.534 +        <mkdir dir="${build.web.dir}/META-INF"/>
   7.535 +        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
   7.536 +    </target>
   7.537 +    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir"/>
   7.538 +    <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
   7.539 +        <delete dir="${build.web.dir}/WEB-INF/lib"/>
   7.540 +    </target>
   7.541 +    <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
   7.542 +        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
   7.543 +        <mkdir dir="${dist.jar.dir}"/>
   7.544 +        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
   7.545 +            <fileset dir="${build.web.dir}"/>
   7.546 +        </jar>
   7.547 +    </target>
   7.548 +    <target name="-post-dist">
   7.549 +        <!-- Empty placeholder for easier customization. -->
   7.550 +        <!-- You can override this target in the ../build.xml file. -->
   7.551 +    </target>
   7.552 +    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
   7.553 +    <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"/>
   7.554 +    <!--
   7.555 +                EXECUTION SECTION
   7.556 +            -->
   7.557 +    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
   7.558 +    <target name="-pre-run-deploy">
   7.559 +        <!-- Empty placeholder for easier customization. -->
   7.560 +        <!-- You can override this target in the ../build.xml file. -->
   7.561 +    </target>
   7.562 +    <target name="-post-run-deploy">
   7.563 +        <!-- Empty placeholder for easier customization. -->
   7.564 +        <!-- You can override this target in the ../build.xml file. -->
   7.565 +    </target>
   7.566 +    <target name="-pre-nbmodule-run-deploy">
   7.567 +        <!-- Empty placeholder for easier customization. -->
   7.568 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   7.569 +    </target>
   7.570 +    <target name="-post-nbmodule-run-deploy">
   7.571 +        <!-- Empty placeholder for easier customization. -->
   7.572 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   7.573 +    </target>
   7.574 +    <target name="-run-deploy-am">
   7.575 +        <!-- Task to deploy to the Access Manager runtime. -->
   7.576 +    </target>
   7.577 +    <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">
   7.578 +        <nbjpdaappreloaded/>
   7.579 +    </target>
   7.580 +    <target if="netbeans.home" name="-run-deploy-nb">
   7.581 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
   7.582 +    </target>
   7.583 +    <target name="-init-deploy-ant" unless="netbeans.home">
   7.584 +        <property name="deploy.ant.archive" value="${dist.war}"/>
   7.585 +        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
   7.586 +        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   7.587 +        <property name="deploy.ant.enabled" value="true"/>
   7.588 +    </target>
   7.589 +    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   7.590 +    <target if="netbeans.home" name="-run-undeploy-nb">
   7.591 +        <fail message="Undeploy is not supported from within the IDE"/>
   7.592 +    </target>
   7.593 +    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
   7.594 +        <nbverify file="${dist.war}"/>
   7.595 +    </target>
   7.596 +    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
   7.597 +    <target if="do.display.browser" name="-init-display-browser">
   7.598 +        <condition property="do.display.browser.nb">
   7.599 +            <isset property="netbeans.home"/>
   7.600 +        </condition>
   7.601 +        <condition property="do.display.browser.cl">
   7.602 +            <isset property="deploy.ant.enabled"/>
   7.603 +        </condition>
   7.604 +    </target>
   7.605 +    <target if="do.display.browser.nb" name="-display-browser-nb">
   7.606 +        <nbbrowse url="${client.url}"/>
   7.607 +    </target>
   7.608 +    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
   7.609 +        <condition property="browser" value="rundll32">
   7.610 +            <os family="windows"/>
   7.611 +        </condition>
   7.612 +        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
   7.613 +            <os family="windows"/>
   7.614 +        </condition>
   7.615 +        <condition property="browser" value="/usr/bin/open">
   7.616 +            <os family="mac"/>
   7.617 +        </condition>
   7.618 +        <property environment="env"/>
   7.619 +        <condition property="browser" value="${env.BROWSER}">
   7.620 +            <isset property="env.BROWSER"/>
   7.621 +        </condition>
   7.622 +        <condition property="browser" value="/usr/bin/firefox">
   7.623 +            <available file="/usr/bin/firefox"/>
   7.624 +        </condition>
   7.625 +        <condition property="browser" value="/usr/local/firefox/firefox">
   7.626 +            <available file="/usr/local/firefox/firefox"/>
   7.627 +        </condition>
   7.628 +        <condition property="browser" value="/usr/bin/mozilla">
   7.629 +            <available file="/usr/bin/mozilla"/>
   7.630 +        </condition>
   7.631 +        <condition property="browser" value="/usr/local/mozilla/mozilla">
   7.632 +            <available file="/usr/local/mozilla/mozilla"/>
   7.633 +        </condition>
   7.634 +        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
   7.635 +            <available file="/usr/sfw/lib/firefox/firefox"/>
   7.636 +        </condition>
   7.637 +        <condition property="browser" value="/opt/csw/bin/firefox">
   7.638 +            <available file="/opt/csw/bin/firefox"/>
   7.639 +        </condition>
   7.640 +        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
   7.641 +            <available file="/usr/sfw/lib/mozilla/mozilla"/>
   7.642 +        </condition>
   7.643 +        <condition property="browser" value="/opt/csw/bin/mozilla">
   7.644 +            <available file="/opt/csw/bin/mozilla"/>
   7.645 +        </condition>
   7.646 +    </target>
   7.647 +    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
   7.648 +        <fail unless="browser">
   7.649 +                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
   7.650 +                </fail>
   7.651 +        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
   7.652 +        <echo>Launching ${browse.url}</echo>
   7.653 +        <exec executable="${browser}" spawn="true">
   7.654 +            <arg line="${browser.args} ${browse.url}"/>
   7.655 +        </exec>
   7.656 +    </target>
   7.657 +    <target depends="init,-init-cos,compile-single" name="run-main">
   7.658 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   7.659 +        <webproject1:java classname="${run.class}"/>
   7.660 +    </target>
   7.661 +    <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
   7.662 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   7.663 +        <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
   7.664 +    </target>
   7.665 +    <!--
   7.666 +                DEBUGGING SECTION
   7.667 +            -->
   7.668 +    <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">
   7.669 +        <nbstartserver debugmode="true"/>
   7.670 +        <antcall target="connect-debugger"/>
   7.671 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
   7.672 +        <antcall target="debug-display-browser"/>
   7.673 +        <antcall target="connect-client-debugger"/>
   7.674 +    </target>
   7.675 +    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
   7.676 +        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   7.677 +            <classpath>
   7.678 +                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
   7.679 +            </classpath>
   7.680 +            <sourcepath>
   7.681 +                <path path="${web.docbase.dir}"/>
   7.682 +            </sourcepath>
   7.683 +        </nbjpdaconnect>
   7.684 +    </target>
   7.685 +    <target if="do.display.browser.debug" name="debug-display-browser">
   7.686 +        <nbbrowse url="${client.url}"/>
   7.687 +    </target>
   7.688 +    <target if="do.debug.client" name="connect-client-debugger">
   7.689 +        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
   7.690 +    </target>
   7.691 +    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
   7.692 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
   7.693 +        <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
   7.694 +    </target>
   7.695 +    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
   7.696 +    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
   7.697 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
   7.698 +        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
   7.699 +    </target>
   7.700 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   7.701 +        <webproject1:nbjpdastart name="${debug.class}"/>
   7.702 +    </target>
   7.703 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   7.704 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
   7.705 +        <webproject1:debug classname="${debug.class}"/>
   7.706 +    </target>
   7.707 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
   7.708 +    <target depends="init" name="-pre-debug-fix">
   7.709 +        <fail unless="fix.includes">Must set fix.includes</fail>
   7.710 +        <property name="javac.includes" value="${fix.includes}.java"/>
   7.711 +    </target>
   7.712 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   7.713 +        <webproject1:nbjpdareload/>
   7.714 +    </target>
   7.715 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   7.716 +    <!--
   7.717 +                JAVADOC SECTION
   7.718 +            -->
   7.719 +    <target depends="init" name="javadoc-build">
   7.720 +        <mkdir dir="${dist.javadoc.dir}"/>
   7.721 +        <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}">
   7.722 +            <classpath>
   7.723 +                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
   7.724 +            </classpath>
   7.725 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   7.726 +                <filename name="**/*.java"/>
   7.727 +            </fileset>
   7.728 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   7.729 +                <include name="**/*.java"/>
   7.730 +            </fileset>
   7.731 +        </javadoc>
   7.732 +    </target>
   7.733 +    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
   7.734 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   7.735 +    </target>
   7.736 +    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
   7.737 +    <!--
   7.738 +                
   7.739 +                JUNIT COMPILATION SECTION
   7.740 +            -->
   7.741 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   7.742 +        <mkdir dir="${build.test.classes.dir}"/>
   7.743 +        <property name="j2ee.platform.embeddableejb.classpath" value=""/>
   7.744 +    </target>
   7.745 +    <target name="-pre-compile-test">
   7.746 +        <!-- Empty placeholder for easier customization. -->
   7.747 +        <!-- You can override this target in the ../build.xml file. -->
   7.748 +    </target>
   7.749 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
   7.750 +        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   7.751 +        <copy todir="${build.test.classes.dir}">
   7.752 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   7.753 +        </copy>
   7.754 +    </target>
   7.755 +    <target name="-post-compile-test">
   7.756 +        <!-- Empty placeholder for easier customization. -->
   7.757 +        <!-- You can override this target in the ../build.xml file. -->
   7.758 +    </target>
   7.759 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   7.760 +    <target name="-pre-compile-test-single">
   7.761 +        <!-- Empty placeholder for easier customization. -->
   7.762 +        <!-- You can override this target in the ../build.xml file. -->
   7.763 +    </target>
   7.764 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   7.765 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   7.766 +        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
   7.767 +        <copy todir="${build.test.classes.dir}">
   7.768 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   7.769 +        </copy>
   7.770 +    </target>
   7.771 +    <target name="-post-compile-test-single">
   7.772 +        <!-- Empty placeholder for easier customization. -->
   7.773 +        <!-- You can override this target in the ../build.xml file. -->
   7.774 +    </target>
   7.775 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   7.776 +    <!--
   7.777 +                
   7.778 +                JUNIT EXECUTION SECTION
   7.779 +            -->
   7.780 +    <target depends="init" if="have.tests" name="-pre-test-run">
   7.781 +        <mkdir dir="${build.test.results.dir}"/>
   7.782 +    </target>
   7.783 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   7.784 +        <webproject2:junit testincludes="**/*Test.java"/>
   7.785 +    </target>
   7.786 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   7.787 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   7.788 +    </target>
   7.789 +    <target depends="init" if="have.tests" name="test-report"/>
   7.790 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   7.791 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   7.792 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
   7.793 +        <mkdir dir="${build.test.results.dir}"/>
   7.794 +    </target>
   7.795 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   7.796 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   7.797 +        <webproject2:junit excludes="" includes="${test.includes}"/>
   7.798 +    </target>
   7.799 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   7.800 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   7.801 +    </target>
   7.802 +    <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"/>
   7.803 +    <!--
   7.804 +                
   7.805 +                JUNIT DEBUGGING SECTION
   7.806 +            -->
   7.807 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   7.808 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   7.809 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   7.810 +        <delete file="${test.report.file}"/>
   7.811 +        <!-- must exist, otherwise the XML formatter would fail -->
   7.812 +        <mkdir dir="${build.test.results.dir}"/>
   7.813 +        <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}:${j2ee.platform.embeddableejb.classpath}">
   7.814 +            <customize>
   7.815 +                <arg value="showoutput=true"/>
   7.816 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   7.817 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   7.818 +            </customize>
   7.819 +        </webproject1:debug>
   7.820 +    </target>
   7.821 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   7.822 +        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   7.823 +    </target>
   7.824 +    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   7.825 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   7.826 +        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   7.827 +    </target>
   7.828 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   7.829 +    <!--
   7.830 +                
   7.831 +                CLEANUP SECTION
   7.832 +            -->
   7.833 +    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps"/>
   7.834 +    <target depends="init" name="do-clean">
   7.835 +        <condition property="build.dir.to.clean" value="${build.web.dir}">
   7.836 +            <isset property="dist.ear.dir"/>
   7.837 +        </condition>
   7.838 +        <property name="build.dir.to.clean" value="${build.web.dir}"/>
   7.839 +        <delete includeEmptyDirs="true" quiet="true">
   7.840 +            <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
   7.841 +        </delete>
   7.842 +        <delete dir="${build.dir}"/>
   7.843 +        <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
   7.844 +        <delete dir="${dist.dir}"/>
   7.845 +    </target>
   7.846 +    <target depends="do-clean" if="status.clean-failed" name="check-clean">
   7.847 +        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
   7.848 +        <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
   7.849 +    </target>
   7.850 +    <target depends="init" if="netbeans.home" name="undeploy-clean">
   7.851 +        <nbundeploy failOnError="false" startServer="false"/>
   7.852 +    </target>
   7.853 +    <target name="-post-clean">
   7.854 +        <!-- Empty placeholder for easier customization. -->
   7.855 +        <!-- You can override this target in the ../build.xml file. -->
   7.856 +    </target>
   7.857 +    <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
   7.858 +    <target depends="clean" description="Clean build products." name="clean-ear"/>
   7.859 +</project>
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/java/nekurak.net-ws/nbproject/genfiles.properties	Mon Apr 12 10:50:39 2010 +0200
     8.3 @@ -0,0 +1,11 @@
     8.4 +build.xml.data.CRC32=4cb22909
     8.5 +build.xml.script.CRC32=a0b9ee34
     8.6 +build.xml.stylesheet.CRC32=c0ebde35@1.21.2.1
     8.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     8.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
     8.9 +nbproject/build-impl.xml.data.CRC32=4cb22909
    8.10 +nbproject/build-impl.xml.script.CRC32=2e1faad3
    8.11 +nbproject/build-impl.xml.stylesheet.CRC32=b139b33b@1.21.2.1
    8.12 +nbproject/wsit-deploy.xml.data.CRC32=4cb22909
    8.13 +nbproject/wsit-deploy.xml.script.CRC32=deb039de
    8.14 +nbproject/wsit-deploy.xml.stylesheet.CRC32=beb36995@3.9.1
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/java/nekurak.net-ws/nbproject/jax-ws.xml	Mon Apr 12 10:50:39 2010 +0200
     9.3 @@ -0,0 +1,9 @@
     9.4 +<?xml version="1.0" encoding="UTF-8"?>
     9.5 +<jax-ws xmlns="http://www.netbeans.org/ns/jax-ws/1">
     9.6 +  <services>
     9.7 +    <service name="Pokus">
     9.8 +      <implementation-class>cz.frantovo.nekurak.ws.Pokus</implementation-class>
     9.9 +    </service>
    9.10 +  </services>
    9.11 +  <clients/>
    9.12 +</jax-ws>
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/java/nekurak.net-ws/nbproject/jaxws-build.xml	Mon Apr 12 10:50:39 2010 +0200
    10.3 @@ -0,0 +1,32 @@
    10.4 +<?xml version="1.0" encoding="UTF-8"?>
    10.5 +<!--
    10.6 +        *** GENERATED FROM jax-ws.xml - DO NOT EDIT !                             ***
    10.7 +        *** TO MODIFY wsimport options USE Web Service node -> Edit WS Attributes ***
    10.8 +        *** TO CHANGE TARGETS GENERATED TO jaxws-build.xml COPY THOSE             ***
    10.9 +        *** TARGETS TO ../build.xml AND MODIFY THAT FILE INSTEAD                  ***
   10.10 +
   10.11 +        -->
   10.12 +<project xmlns:xalan="http://xml.apache.org/xslt" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:jaxws="http://www.netbeans.org/ns/jax-ws/1">
   10.13 +    <!--
   10.14 +                ===================
   10.15 +                JAX-WS WSGEN SECTION
   10.16 +                ===================
   10.17 +            -->
   10.18 +    <target name="wsgen-init" depends="init, -do-compile">
   10.19 +        <mkdir dir="${build.generated.sources.dir}/jax-ws/resources/"/>
   10.20 +        <mkdir dir="${build.classes.dir}"/>
   10.21 +        <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
   10.22 +            <classpath path="${java.home}/../lib/tools.jar:${build.classes.dir}:${j2ee.platform.wsgen.classpath}:${javac.classpath}"/>
   10.23 +        </taskdef>
   10.24 +    </target>
   10.25 +    <target name="wsgen-Pokus" depends="wsgen-init">
   10.26 +        <wsgen sourcedestdir="${build.generated.sources.dir}/jax-ws" resourcedestdir="${build.generated.sources.dir}/jax-ws/resources/" destdir="${build.generated.sources.dir}/jax-ws" verbose="true" xendorsed="true" keep="true" genwsdl="true" sei="cz.frantovo.nekurak.ws.Pokus">
   10.27 +            <classpath path="${java.home}/../lib/tools.jar:${build.classes.dir}:${j2ee.platform.wsgen.classpath}:${javac.classpath}"/>
   10.28 +        </wsgen>
   10.29 +    </target>
   10.30 +    <!--
   10.31 +                ===================
   10.32 +                JAX-WS WSIMPORT SECTION
   10.33 +                ===================
   10.34 +            -->
   10.35 +</project>
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/java/nekurak.net-ws/nbproject/project.properties	Mon Apr 12 10:50:39 2010 +0200
    11.3 @@ -0,0 +1,73 @@
    11.4 +build.classes.dir=${build.web.dir}/WEB-INF/classes
    11.5 +build.classes.excludes=**/*.java,**/*.form
    11.6 +build.dir=build
    11.7 +build.generated.dir=${build.dir}/generated
    11.8 +build.generated.sources.dir=${build.dir}/generated-sources
    11.9 +build.test.classes.dir=${build.dir}/test/classes
   11.10 +build.test.results.dir=${build.dir}/test/results
   11.11 +build.web.dir=${build.dir}/web
   11.12 +build.web.excludes=${build.classes.excludes}
   11.13 +client.urlPart=
   11.14 +compile.jsps=false
   11.15 +conf.dir=${source.root}/conf
   11.16 +debug.classpath=${build.classes.dir}:${javac.classpath}
   11.17 +debug.test.classpath=\
   11.18 +    ${run.test.classpath}
   11.19 +display.browser=true
   11.20 +dist.dir=dist
   11.21 +dist.ear.war=${dist.dir}/${war.ear.name}
   11.22 +dist.javadoc.dir=${dist.dir}/javadoc
   11.23 +dist.war=${dist.dir}/${war.name}
   11.24 +endorsed.classpath=\
   11.25 +    ${libs.javaee-endorsed-api-6.0.classpath}
   11.26 +excludes=
   11.27 +includes=**
   11.28 +j2ee.deploy.on.save=false
   11.29 +j2ee.platform=1.6-web
   11.30 +j2ee.server.type=gfv3ee6
   11.31 +jar.compress=false
   11.32 +javac.classpath=
   11.33 +# Space-separated list of extra javac options
   11.34 +javac.compilerargs=
   11.35 +javac.debug=true
   11.36 +javac.deprecation=false
   11.37 +javac.source=1.5
   11.38 +javac.target=1.5
   11.39 +javac.test.classpath=\
   11.40 +    ${javac.classpath}:\
   11.41 +    ${build.classes.dir}:\
   11.42 +    ${libs.junit.classpath}:\
   11.43 +    ${libs.junit_4.classpath}
   11.44 +javadoc.additionalparam=
   11.45 +javadoc.author=false
   11.46 +javadoc.encoding=${source.encoding}
   11.47 +javadoc.noindex=false
   11.48 +javadoc.nonavbar=false
   11.49 +javadoc.notree=false
   11.50 +javadoc.preview=true
   11.51 +javadoc.private=false
   11.52 +javadoc.splitindex=true
   11.53 +javadoc.use=true
   11.54 +javadoc.version=false
   11.55 +javadoc.windowtitle=
   11.56 +jspcompilation.classpath=${jspc.classpath}:${javac.classpath}
   11.57 +lib.dir=${web.docbase.dir}/WEB-INF/lib
   11.58 +no.dependencies=false
   11.59 +persistence.xml.dir=${conf.dir}
   11.60 +platform.active=default_platform
   11.61 +resource.dir=setup
   11.62 +run.test.classpath=\
   11.63 +    ${javac.test.classpath}:\
   11.64 +    ${build.test.classes.dir}
   11.65 +# Space-separated list of JVM arguments used when running a class with a main method or a unit test
   11.66 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
   11.67 +runmain.jvmargs=
   11.68 +source.encoding=UTF-8
   11.69 +source.root=src
   11.70 +src.dir=${source.root}/java
   11.71 +test.src.dir=test
   11.72 +war.content.additional=
   11.73 +war.ear.name=nekurak.net-ws.war
   11.74 +war.name=nekurak.net-ws.war
   11.75 +web.docbase.dir=web
   11.76 +webinf.dir=web/WEB-INF
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/java/nekurak.net-ws/nbproject/project.xml	Mon Apr 12 10:50:39 2010 +0200
    12.3 @@ -0,0 +1,21 @@
    12.4 +<?xml version="1.0" encoding="UTF-8"?>
    12.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
    12.6 +    <type>org.netbeans.modules.web.project</type>
    12.7 +    <configuration>
    12.8 +        <buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1">
    12.9 +            <extension file="jaxws-build.xml" id="jaxws"/>
   12.10 +        </buildExtensions>
   12.11 +        <data xmlns="http://www.netbeans.org/ns/web-project/3">
   12.12 +            <name>nekurak.net-ws</name>
   12.13 +            <minimum-ant-version>1.6.5</minimum-ant-version>
   12.14 +            <web-module-libraries/>
   12.15 +            <web-module-additional-libraries/>
   12.16 +            <source-roots>
   12.17 +                <root id="src.dir" name="Source Packages"/>
   12.18 +            </source-roots>
   12.19 +            <test-roots>
   12.20 +                <root id="test.src.dir" name="Test Packages"/>
   12.21 +            </test-roots>
   12.22 +        </data>
   12.23 +    </configuration>
   12.24 +</project>
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/java/nekurak.net-ws/nbproject/wsit-deploy.xml	Mon Apr 12 10:50:39 2010 +0200
    13.3 @@ -0,0 +1,86 @@
    13.4 +<?xml version="1.0" encoding="UTF-8"?>
    13.5 +<project default="-post-run-deploy" basedir=".." xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:jaxws="http://www.netbeans.org/ns/jax-ws/1" xmlns:webproject1="http://www.netbeans.org/ns/web-project/1">
    13.6 +    <target name="-wsit-init">
    13.7 +        <property file="nbproject/private/private.properties"/>
    13.8 +        <condition property="user.properties.file" value="${netbeans.user}/build.properties">
    13.9 +            <not>
   13.10 +                <isset property="user.properties.file"/>
   13.11 +            </not>
   13.12 +        </condition>
   13.13 +        <property file="${deploy.ant.properties.file}"/>
   13.14 +        <condition property="appserver.root" value="${sjsas.root}">
   13.15 +            <isset property="sjsas.root"/>
   13.16 +        </condition>
   13.17 +        <condition property="appserver.password" value="${sjsas.password}">
   13.18 +            <isset property="sjsas.password"/>
   13.19 +        </condition>
   13.20 +        <condition property="appserver.root" value="${gfv3.root}">
   13.21 +            <isset property="gfv3.root"/>
   13.22 +        </condition>
   13.23 +        <condition property="appserver.password" value="${gfv3.password}">
   13.24 +            <isset property="gfv3.password"/>
   13.25 +        </condition>
   13.26 +        <condition property="appserver.password" value="changeit">
   13.27 +            <not>
   13.28 +                <isset property="appserver.password"/>
   13.29 +            </not>
   13.30 +        </condition>
   13.31 +        <fail unless="user.properties.file">Must set user properties file</fail>
   13.32 +        <fail unless="appserver.root">Must set Sun app server root</fail>
   13.33 +        <fail unless="appserver.password">Must set Sun app server password</fail>
   13.34 +    </target>
   13.35 +    <target name="-create-wsit-prop" unless="do.not.create.wsit.prop">
   13.36 +        <echo file="nbproject/wsit.properties" message="AS_ADMIN_USERPASSWORD=${appserver.password}"/>
   13.37 +    </target>
   13.38 +    <target name="-delete-create-wsit-file" if="user.created">
   13.39 +        <delete file="nbproject/wsit.createuser"/>
   13.40 +    </target>
   13.41 +    <target name="create-user" unless="user.exists">
   13.42 +        <exec timeout="10000" outputproperty="creation.out" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="unix">
   13.43 +            <arg value="create-file-user"/>
   13.44 +            <arg value="--passwordfile"/>
   13.45 +            <arg value="nbproject/wsit.properties"/>
   13.46 +            <arg value="wsitUser"/>
   13.47 +        </exec>
   13.48 +        <exec timeout="10000" outputproperty="creation.out" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="mac">
   13.49 +            <arg value="create-file-user"/>
   13.50 +            <arg value="--passwordfile"/>
   13.51 +            <arg value="nbproject/wsit.properties"/>
   13.52 +            <arg value="wsitUser"/>
   13.53 +        </exec>
   13.54 +        <exec timeout="10000" outputproperty="creation.out" executable="${appserver.root}/bin/asadmin.bat" failonerror="false" failifexecutionfails="false" osfamily="windows">
   13.55 +            <arg value="create-file-user"/>
   13.56 +            <arg value="--passwordfile"/>
   13.57 +            <arg value="nbproject/wsit.properties"/>
   13.58 +            <arg value="wsitUser"/>
   13.59 +        </exec>
   13.60 +        <condition property="user.created">
   13.61 +            <and>
   13.62 +                <contains string="${creation.out}" substring="create-file-user"/>
   13.63 +                <contains string="${creation.out}" substring="success"/>
   13.64 +            </and>
   13.65 +        </condition>
   13.66 +        <antcall target="-delete-create-wsit-file"/>
   13.67 +    </target>
   13.68 +    <target name="-do-create-user" if="do-create-user">
   13.69 +        <available property="do.not.create.wsit.prop" file="nbproject/wsit.properties"/>
   13.70 +        <antcall target="-create-wsit-prop"/>
   13.71 +        <exec timeout="10000" outputproperty="as.users" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="unix">
   13.72 +            <arg value="list-file-users"/>
   13.73 +        </exec>
   13.74 +        <exec timeout="10000" outputproperty="as.users" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="mac">
   13.75 +            <arg value="list-file-users"/>
   13.76 +        </exec>
   13.77 +        <exec timeout="10000" outputproperty="as.users" executable="${appserver.root}/bin/asadmin.bat" failonerror="false" failifexecutionfails="false" osfamily="windows">
   13.78 +            <arg value="list-file-users"/>
   13.79 +        </exec>
   13.80 +        <condition property="user.exists">
   13.81 +            <contains string="${as.users}" substring="wsitUser"/>
   13.82 +        </condition>
   13.83 +        <antcall target="create-user"/>
   13.84 +    </target>
   13.85 +    <target name="-post-run-deploy" depends="-wsit-init">
   13.86 +        <available property="do-create-user" file="nbproject/wsit.createuser"/>
   13.87 +        <antcall target="-do-create-user"/>
   13.88 +    </target>
   13.89 +</project>
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/java/nekurak.net-ws/src/conf/MANIFEST.MF	Mon Apr 12 10:50:39 2010 +0200
    14.3 @@ -0,0 +1,2 @@
    14.4 +Manifest-Version: 1.0
    14.5 +
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/java/nekurak.net-ws/src/java/cz/frantovo/nekurak/ws/Pokus.java	Mon Apr 12 10:50:39 2010 +0200
    15.3 @@ -0,0 +1,25 @@
    15.4 +package cz.frantovo.nekurak.ws;
    15.5 +
    15.6 +import javax.jws.WebMethod;
    15.7 +import javax.jws.WebParam;
    15.8 +import javax.jws.WebService;
    15.9 +import javax.jws.soap.SOAPBinding;
   15.10 +
   15.11 +/**
   15.12 + *
   15.13 + * @author fiki
   15.14 + */
   15.15 +@WebService(serviceName = "pokusnaSluzba", targetNamespace="pokusNS")
   15.16 +@SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.ENCODED)
   15.17 +public class Pokus {
   15.18 +
   15.19 +    /**
   15.20 +     * Pozdraví osobu
   15.21 +     * @param koho jméno osoby v pátém pádě
   15.22 +     * @return věta – pozdrav
   15.23 +     */
   15.24 +    @WebMethod(operationName="pozdravOsobu")
   15.25 +    public String pozdrav(@WebParam(name = "jmenoOsoby") String koho) {
   15.26 +	return "Ahoj, " + koho + "!";
   15.27 +    }
   15.28 +}
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/java/nekurak.net-ws/web/WEB-INF/beans.xml	Mon Apr 12 10:50:39 2010 +0200
    16.3 @@ -0,0 +1,5 @@
    16.4 +<?xml version="1.0" encoding="UTF-8"?>
    16.5 +<beans xmlns="http://java.sun.com/xml/ns/javaee"
    16.6 +       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    16.7 +       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
    16.8 +</beans>
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/java/nekurak.net-ws/web/WEB-INF/sun-web.xml	Mon Apr 12 10:50:39 2010 +0200
    17.3 @@ -0,0 +1,11 @@
    17.4 +<?xml version="1.0" encoding="UTF-8"?>
    17.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">
    17.6 +<sun-web-app error-url="">
    17.7 +  <context-root>/nekurak.net-ws</context-root>
    17.8 +  <class-loader delegate="true"/>
    17.9 +  <jsp-config>
   17.10 +    <property name="keepgenerated" value="true">
   17.11 +      <description>Keep a copy of the generated servlet class' java code.</description>
   17.12 +    </property>
   17.13 +  </jsp-config>
   17.14 +</sun-web-app>
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/java/nekurak.net-ws/web/WEB-INF/web.xml	Mon Apr 12 10:50:39 2010 +0200
    18.3 @@ -0,0 +1,12 @@
    18.4 +<?xml version="1.0" encoding="UTF-8"?>
    18.5 +
    18.6 +<web-app xmlns="http://java.sun.com/xml/ns/javaee"
    18.7 +	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    18.8 +	 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    18.9 +	 version="3.0">
   18.10 +    <session-config>
   18.11 +        <session-timeout>
   18.12 +            30
   18.13 +        </session-timeout>
   18.14 +    </session-config>
   18.15 +</web-app>
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/java/nekurak.net-ws/web/WEB-INF/wsit-cz.frantovo.nekurak.ws.Pokus.xml	Mon Apr 12 10:50:39 2010 +0200
    19.3 @@ -0,0 +1,51 @@
    19.4 +<?xml version="1.0" encoding="UTF-8"?> 
    19.5 + <definitions 
    19.6 + xmlns="http://schemas.xmlsoap.org/wsdl/" 
    19.7 + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
    19.8 + xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    19.9 + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="PokusService" targetNamespace="http://ws.nekurak.frantovo.cz/" xmlns:tns="http://ws.nekurak.frantovo.cz/" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsoma="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrmp/200702" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:sc="http://schemas.sun.com/2006/03/wss/server" xmlns:wspp="http://java.sun.com/xml/ns/wsit/policy"
   19.10 + >
   19.11 +    <message name="pozdravOsobu"/>
   19.12 +    <message name="pozdravOsobuResponse"/>
   19.13 +    <portType name="Pokus">
   19.14 +        <operation name="pozdravOsobu">
   19.15 +            <input message="tns:pozdravOsobu"/>
   19.16 +            <output message="tns:pozdravOsobuResponse"/>
   19.17 +        </operation>
   19.18 +    </portType>
   19.19 +    <binding name="PokusPortBinding" type="tns:Pokus">
   19.20 +        <operation name="pozdravOsobu">
   19.21 +            <input/>
   19.22 +            <output/>
   19.23 +        </operation>
   19.24 +    </binding>
   19.25 +    <service name="PokusService">
   19.26 +        <port name="PokusPort" binding="tns:PokusPortBinding"/>
   19.27 +    </service>
   19.28 +    <wsp:Policy wsu:Id="PokusPortBinding_pozdrav_Input_Policy">
   19.29 +        <wsp:ExactlyOne>
   19.30 +            <wsp:All>
   19.31 +                <sp:EncryptedParts>
   19.32 +                    <sp:Body/>
   19.33 +                </sp:EncryptedParts>
   19.34 +                <sp:SignedParts>
   19.35 +                    <sp:Body/>
   19.36 +                </sp:SignedParts>
   19.37 +            </wsp:All>
   19.38 +        </wsp:ExactlyOne>
   19.39 +    </wsp:Policy>
   19.40 +    <wsp:Policy wsu:Id="PokusPortBinding_pozdrav_Output_Policy">
   19.41 +        <wsp:ExactlyOne>
   19.42 +            <wsp:All>
   19.43 +                <sp:EncryptedParts>
   19.44 +                    <sp:Body/>
   19.45 +                </sp:EncryptedParts>
   19.46 +                <sp:SignedParts>
   19.47 +                    <sp:Body/>
   19.48 +                </sp:SignedParts>
   19.49 +            </wsp:All>
   19.50 +        </wsp:ExactlyOne>
   19.51 +    </wsp:Policy>
   19.52 +</definitions>
   19.53 +
   19.54 +
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/java/nekurak.net-ws/web/index.jsp	Mon Apr 12 10:50:39 2010 +0200
    20.3 @@ -0,0 +1,24 @@
    20.4 +<?xml version="1.0" encoding="UTF-8"?>
    20.5 +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    20.6 +	  xmlns:c="http://java.sun.com/jsp/jstl/core"
    20.7 +	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
    20.8 +	  version="2.0">
    20.9 +    <jsp:directive.page contentType="application/xhtml+xml"/>
   20.10 +
   20.11 +    <jsp:output doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd"
   20.12 +		doctype-root-element="html"
   20.13 +		omit-xml-declaration="false"/>
   20.14 +
   20.15 +    <html xmlns="http://www.w3.org/1999/xhtml"
   20.16 +	  xmlns:svg="http://www.w3.org/2000/svg"
   20.17 +	  xmlns:xlink="http://www.w3.org/1999/xlink">
   20.18 +	<head>
   20.19 +	    <title>WS SOAP</title>
   20.20 +	</head>
   20.21 +	<body>
   20.22 +	    <h1>WS SOAP</h1>
   20.23 +	    <p>API postavené na webových službách</p>
   20.24 +	</body>
   20.25 +    </html>
   20.26 +
   20.27 +</jsp:root>