Velká čistka – zjednodušení – odstraněno: REST, WS, Chat
authorFrantišek Kučera <franta-hg@frantovo.cz>
Tue Jul 19 15:22:15 2011 +0200 (2011-07-19)
changeset 18874d06a8a4948
parent 187 e7b3ef7aaef4
child 189 fcd69520f12d
Velká čistka – zjednodušení – odstraněno: REST, WS, Chat
(části, které sloužily jako ilustrace k článku / výukové účely)
.hgignore
java/nekurak.net-ear/nbproject/build-impl.xml
java/nekurak.net-ear/nbproject/project.properties
java/nekurak.net-ear/nbproject/project.xml
java/nekurak.net-ejb/nbproject/build-impl.xml
java/nekurak.net-ejb/nbproject/genfiles.properties
java/nekurak.net-ejb/nbproject/project.properties
java/nekurak.net-ejb/nbproject/project.xml
java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/Mistnost.java
java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/MistnostPripojena.java
java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/Nastaveni.java
java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/Spojeni.java
java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/SpravceNastaveni.java
java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/UcetRobota.java
java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/ejb/ChatEJB.java
java/nekurak.net-lib/src/cz/frantovo/nekurak/dto/ZpravaChatu.java
java/nekurak.net-lib/src/cz/frantovo/nekurak/ejb/ChatRemote.java
java/nekurak.net-lib/src/cz/frantovo/nekurak/web/HledacSluzby.java
java/nekurak.net-mvn/pom.xml
java/nekurak.net-mvn/profiles.xml
java/nekurak.net-mvn/src/main/java
java/nekurak.net-mvn/src/main/webapp
java/nekurak.net-rest/build.xml
java/nekurak.net-rest/nbproject/ant-deploy.xml
java/nekurak.net-rest/nbproject/build-impl.xml
java/nekurak.net-rest/nbproject/genfiles.properties
java/nekurak.net-rest/nbproject/project.properties
java/nekurak.net-rest/nbproject/project.xml
java/nekurak.net-rest/nbproject/rest-build.xml
java/nekurak.net-rest/src/conf/MANIFEST.MF
java/nekurak.net-rest/src/java/cz/frantovo/nekurak/rest/ClankyREST.java
java/nekurak.net-rest/web/WEB-INF/beans.xml
java/nekurak.net-rest/web/WEB-INF/sun-web.xml
java/nekurak.net-rest/web/WEB-INF/web.xml
java/nekurak.net-rest/web/index.jsp
java/nekurak.net-web/build.xml
java/nekurak.net-web/nbproject/project.properties
java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/chat/OdesilacZprav.java
java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/chat/VypisZprav.java
java/nekurak.net-web/web/WEB-INF/casti/chat.jsp
java/nekurak.net-web/web/WEB-INF/casti/odhlášení-dokončeno.jsp
java/nekurak.net-web/web/WEB-INF/tags/nekurak/stranka.tag
java/nekurak.net-web/web/sprava/index.jsp
java/nekurak.net-ws/build.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/src/conf/MANIFEST.MF
java/nekurak.net-ws/src/java/cz/frantovo/nekurak/ws/Podnik.java
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 Jul 19 15:20:47 2011 +0200
     1.2 +++ b/.hgignore	Tue Jul 19 15:22:15 2011 +0200
     1.3 @@ -5,8 +5,6 @@
     1.4  java/nekurak.net-web/web/nekurak.net-src.zip.SHA-512
     1.5  java/nekurak.net-web/src/conf/MANIFEST.MF
     1.6  
     1.7 -java/nekurak.net-mvn/target/*
     1.8 -
     1.9  java/nekurak.net-ear/dist/*
    1.10  java/nekurak.net-ear/build/*
    1.11  java/nekurak.net-ear/nbproject/private
    1.12 @@ -20,11 +18,3 @@
    1.13  java/nekurak.net-lib/nbproject/private
    1.14  
    1.15  java/nekurak.net-web/lib/*
    1.16 -
    1.17 -java/nekurak.net-rest/dist/*
    1.18 -java/nekurak.net-rest/build/*
    1.19 -java/nekurak.net-rest/nbproject/private
    1.20 -
    1.21 -java/nekurak.net-ws/dist/*
    1.22 -java/nekurak.net-ws/build/*
    1.23 -java/nekurak.net-ws/nbproject/private
     2.1 --- a/java/nekurak.net-ear/nbproject/build-impl.xml	Tue Jul 19 15:20:47 2011 +0200
     2.2 +++ b/java/nekurak.net-ear/nbproject/build-impl.xml	Tue Jul 19 15:22:15 2011 +0200
     2.3 @@ -182,10 +182,6 @@
     2.4  				<isset property="build.deploy.on.save"/>
     2.5  			</not>
     2.6  		</condition>
     2.7 -		<ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="dist-ear">
     2.8 -			<property location="${build.dir}" name="dist.ear.dir"/>
     2.9 -			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
    2.10 -		</ant>
    2.11  		<condition property="build.deploy.on.save" value="false">
    2.12  			<not>
    2.13  				<isset property="build.deploy.on.save"/>
    2.14 @@ -200,10 +196,6 @@
    2.15  				<isset property="build.deploy.on.save"/>
    2.16  			</not>
    2.17  		</condition>
    2.18 -		<ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="dist-ear">
    2.19 -			<property location="${build.dir}" name="dist.ear.dir"/>
    2.20 -			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
    2.21 -		</ant>
    2.22  	</target>
    2.23  	<target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
    2.24  	<target name="pre-compile">
    2.25 @@ -218,8 +210,6 @@
    2.26  	<target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
    2.27  		<copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
    2.28  		<copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
    2.29 -		<copyfiles files="${reference.nekurak_net-rest.dist-ear}" todir="${build.dir}//"/>
    2.30 -		<copyfiles files="${reference.nekurak_net-ws.dist-ear}" todir="${build.dir}//"/>
    2.31  	</target>
    2.32  	<target name="post-compile">
    2.33          <!-- Empty placeholder for easier customization. -->
    2.34 @@ -297,9 +287,7 @@
    2.35  	<target name="-run-deploy-am" unless="no.deps">
    2.36          <!-- Task to deploy to the Access Manager runtime. -->
    2.37  		<ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
    2.38 -		<ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="-run-deploy-am"/>
    2.39  		<ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
    2.40 -		<ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="-run-deploy-am"/>
    2.41  	</target>
    2.42  	<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.43  	<target if="netbeans.home" name="-run-deploy-nb">
    2.44 @@ -589,10 +577,6 @@
    2.45  				<isset property="build.deploy.on.save"/>
    2.46  			</not>
    2.47  		</condition>
    2.48 -		<ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="clean-ear">
    2.49 -			<property location="${build.dir}" name="dist.ear.dir"/>
    2.50 -			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
    2.51 -		</ant>
    2.52  		<condition property="build.deploy.on.save" value="false">
    2.53  			<not>
    2.54  				<isset property="build.deploy.on.save"/>
    2.55 @@ -607,10 +591,6 @@
    2.56  				<isset property="build.deploy.on.save"/>
    2.57  			</not>
    2.58  		</condition>
    2.59 -		<ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="clean-ear">
    2.60 -			<property location="${build.dir}" name="dist.ear.dir"/>
    2.61 -			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
    2.62 -		</ant>
    2.63  	</target>
    2.64  	<target depends="init" name="do-clean">
    2.65  		<delete dir="${build.dir}"/>
     3.1 --- a/java/nekurak.net-ear/nbproject/project.properties	Tue Jul 19 15:20:47 2011 +0200
     3.2 +++ b/java/nekurak.net-ear/nbproject/project.properties	Tue Jul 19 15:22:15 2011 +0200
     3.3 @@ -23,9 +23,7 @@
     3.4  jar.compress=false
     3.5  jar.content.additional=\
     3.6      ${reference.nekurak_net-web.dist-ear}:\
     3.7 -    ${reference.nekurak_net-ejb.dist-ear}:\
     3.8 -    ${reference.nekurak_net-rest.dist-ear}:\
     3.9 -    ${reference.nekurak_net-ws.dist-ear}
    3.10 +    ${reference.nekurak_net-ejb.dist-ear}
    3.11  jar.name=nekurak.net-ear.ear
    3.12  javac.debug=true
    3.13  javac.deprecation=false
    3.14 @@ -35,13 +33,9 @@
    3.15  no.dependencies=false
    3.16  platform.active=default_platform
    3.17  project.nekurak_net-ejb=../nekurak.net-ejb
    3.18 -project.nekurak_net-rest=../nekurak.net-rest
    3.19  project.nekurak_net-web=../nekurak.net-web
    3.20 -project.nekurak_net-ws=../nekurak.net-ws
    3.21  reference.nekurak_net-ejb.dist-ear=${project.nekurak_net-ejb}/dist/nekurak.net-ejb.jar
    3.22 -reference.nekurak_net-rest.dist-ear=${project.nekurak_net-rest}/dist/nekurak.net-rest.war
    3.23  reference.nekurak_net-web.dist-ear=${project.nekurak_net-web}/dist/nekurak.net-web.war
    3.24 -reference.nekurak_net-ws.dist-ear=${project.nekurak_net-ws}/dist/nekurak.net-ws.war
    3.25  resource.dir=setup
    3.26  run.classpath=
    3.27  source.root=.
     4.1 --- a/java/nekurak.net-ear/nbproject/project.xml	Tue Jul 19 15:20:47 2011 +0200
     4.2 +++ b/java/nekurak.net-ear/nbproject/project.xml	Tue Jul 19 15:22:15 2011 +0200
     4.3 @@ -15,14 +15,6 @@
     4.4                      <file>${reference.nekurak_net-ejb.dist-ear}</file>
     4.5                      <path-in-war>/</path-in-war>
     4.6                  </library>
     4.7 -                <library>
     4.8 -                    <file>${reference.nekurak_net-rest.dist-ear}</file>
     4.9 -                    <path-in-war>/</path-in-war>
    4.10 -                </library>
    4.11 -                <library>
    4.12 -                    <file>${reference.nekurak_net-ws.dist-ear}</file>
    4.13 -                    <path-in-war>/</path-in-war>
    4.14 -                </library>
    4.15              </web-module-additional-libraries>
    4.16          </data>
    4.17          <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
    4.18 @@ -35,14 +27,6 @@
    4.19                  <id>dist-ear</id>
    4.20              </reference>
    4.21              <reference>
    4.22 -                <foreign-project>nekurak_net-rest</foreign-project>
    4.23 -                <artifact-type>j2ee_ear_archive</artifact-type>
    4.24 -                <script>build.xml</script>
    4.25 -                <target>dist-ear</target>
    4.26 -                <clean-target>clean-ear</clean-target>
    4.27 -                <id>dist-ear</id>
    4.28 -            </reference>
    4.29 -            <reference>
    4.30                  <foreign-project>nekurak_net-web</foreign-project>
    4.31                  <artifact-type>j2ee_ear_archive</artifact-type>
    4.32                  <script>build.xml</script>
    4.33 @@ -50,14 +34,6 @@
    4.34                  <clean-target>clean-ear</clean-target>
    4.35                  <id>dist-ear</id>
    4.36              </reference>
    4.37 -            <reference>
    4.38 -                <foreign-project>nekurak_net-ws</foreign-project>
    4.39 -                <artifact-type>j2ee_ear_archive</artifact-type>
    4.40 -                <script>build.xml</script>
    4.41 -                <target>dist-ear</target>
    4.42 -                <clean-target>clean-ear</clean-target>
    4.43 -                <id>dist-ear</id>
    4.44 -            </reference>
    4.45          </references>
    4.46      </configuration>
    4.47  </project>
     5.1 --- a/java/nekurak.net-ejb/nbproject/build-impl.xml	Tue Jul 19 15:20:47 2011 +0200
     5.2 +++ b/java/nekurak.net-ejb/nbproject/build-impl.xml	Tue Jul 19 15:22:15 2011 +0200
     5.3 @@ -488,18 +488,15 @@
     5.4      <target depends="compile" if="is.server.weblogic" name="library-inclusion-in-archive">
     5.5          <basename file="${reference.nekurak_net-lib.jar}" property="manifest.reference.nekurak_net-lib.jar"/>
     5.6          <basename file="${reference.SuperDAO.jar}" property="manifest.reference.SuperDAO.jar"/>
     5.7 -        <basename file="${libs.Smack-XMPP.classpath}" property="manifest.libs.Smack-XMPP.classpath"/>
     5.8          <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
     5.9 -            <attribute name="Extension-List" value="jar-1 jar-2 jar-3 "/>
    5.10 +            <attribute name="Extension-List" value="jar-1 jar-2 "/>
    5.11              <attribute name="jar-1-Extension-Name" value="${manifest.reference.nekurak_net-lib.jar}"/>
    5.12              <attribute name="jar-2-Extension-Name" value="${manifest.reference.SuperDAO.jar}"/>
    5.13 -            <attribute name="jar-3-Extension-Name" value="${manifest.libs.Smack-XMPP.classpath}"/>
    5.14          </manifest>
    5.15      </target>
    5.16      <target depends="compile" name="library-inclusion-in-manifest">
    5.17          <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
    5.18          <copyfiles files="${reference.SuperDAO.jar}" todir="${dist.ear.dir}/lib"/>
    5.19 -        <copyfiles files="${libs.Smack-XMPP.classpath}" todir="${dist.ear.dir}/lib"/>
    5.20          <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
    5.21      </target>
    5.22      <target name="-copy-meta-inf">
     6.1 --- a/java/nekurak.net-ejb/nbproject/genfiles.properties	Tue Jul 19 15:20:47 2011 +0200
     6.2 +++ b/java/nekurak.net-ejb/nbproject/genfiles.properties	Tue Jul 19 15:22:15 2011 +0200
     6.3 @@ -1,8 +1,8 @@
     6.4 -build.xml.data.CRC32=7060a689
     6.5 +build.xml.data.CRC32=ec49fdf0
     6.6  build.xml.script.CRC32=d7a2a0ed
     6.7  build.xml.stylesheet.CRC32=5910fda3@1.28.1
     6.8  # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     6.9  # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    6.10 -nbproject/build-impl.xml.data.CRC32=7060a689
    6.11 -nbproject/build-impl.xml.script.CRC32=8a650959
    6.12 +nbproject/build-impl.xml.data.CRC32=ec49fdf0
    6.13 +nbproject/build-impl.xml.script.CRC32=7d2f29de
    6.14  nbproject/build-impl.xml.stylesheet.CRC32=6cd662d4@1.28.1
     7.1 --- a/java/nekurak.net-ejb/nbproject/project.properties	Tue Jul 19 15:20:47 2011 +0200
     7.2 +++ b/java/nekurak.net-ejb/nbproject/project.properties	Tue Jul 19 15:22:15 2011 +0200
     7.3 @@ -1,5 +1,6 @@
     7.4  annotation.processing.enabled=true
     7.5  annotation.processing.enabled.in.editor=true
     7.6 +annotation.processing.processors.list=
     7.7  annotation.processing.run.all.processors=true
     7.8  annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
     7.9  build.classes.dir=${build.dir}/classes
    7.10 @@ -35,8 +36,7 @@
    7.11  jar.name=nekurak.net-ejb.jar
    7.12  javac.classpath=\
    7.13      ${reference.nekurak_net-lib.jar}:\
    7.14 -    ${reference.SuperDAO.jar}:\
    7.15 -    ${libs.Smack-XMPP.classpath}
    7.16 +    ${reference.SuperDAO.jar}
    7.17  javac.debug=true
    7.18  javac.deprecation=false
    7.19  javac.processorpath=\
     8.1 --- a/java/nekurak.net-ejb/nbproject/project.xml	Tue Jul 19 15:20:47 2011 +0200
     8.2 +++ b/java/nekurak.net-ejb/nbproject/project.xml	Tue Jul 19 15:22:15 2011 +0200
     8.3 @@ -7,7 +7,6 @@
     8.4              <minimum-ant-version>1.6.5</minimum-ant-version>
     8.5              <included-library dirs="200">reference.nekurak_net-lib.jar</included-library>
     8.6              <included-library dirs="200">reference.SuperDAO.jar</included-library>
     8.7 -            <included-library dirs="200">libs.Smack-XMPP.classpath</included-library>
     8.8              <source-roots>
     8.9                  <root id="src.dir"/>
    8.10              </source-roots>
     9.1 --- a/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/Mistnost.java	Tue Jul 19 15:20:47 2011 +0200
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,77 +0,0 @@
     9.4 -package cz.frantovo.nekurak.chat;
     9.5 -
     9.6 -/**
     9.7 - * Diskusní (chatovací) místnost, do které robot vstupuje.
     9.8 - * @author fiki
     9.9 - */
    9.10 -public class Mistnost {
    9.11 -
    9.12 -    /** Část před zavináčem */
    9.13 -    private String nazev;
    9.14 -    /** Část za zavináčem */
    9.15 -    private String domena;
    9.16 -    /** Robotova přezdívka v této místnosti */
    9.17 -    private String prezdivka;
    9.18 -    /** Co robot napíše po vstupu do místnosti */
    9.19 -    private String uvitaciZprava;
    9.20 -    /** Co robot napíše před opuštěním místnosti */
    9.21 -    private String louciciZprava;
    9.22 -    /** Délka fronty zpráv – historie */
    9.23 -    private int delkaFronty = 10;
    9.24 -
    9.25 -    public String getNazev() {
    9.26 -	return nazev;
    9.27 -    }
    9.28 -
    9.29 -    public void setNazev(String nazev) {
    9.30 -	this.nazev = nazev;
    9.31 -    }
    9.32 -
    9.33 -    public String getDomena() {
    9.34 -	return domena;
    9.35 -    }
    9.36 -
    9.37 -    /**
    9.38 -     * Celý název místnosti.
    9.39 -     * Např. lobby@konference.frantovo.cz
    9.40 -     */
    9.41 -    public String getMuc() {
    9.42 -	return nazev + "@" + domena;
    9.43 -    }
    9.44 -
    9.45 -    public void setDomena(String domena) {
    9.46 -	this.domena = domena;
    9.47 -    }
    9.48 -
    9.49 -    public String getUvitaciZprava() {
    9.50 -	return uvitaciZprava;
    9.51 -    }
    9.52 -
    9.53 -    public void setUvitaciZprava(String uvitaciZprava) {
    9.54 -	this.uvitaciZprava = uvitaciZprava;
    9.55 -    }
    9.56 -
    9.57 -    public String getPrezdivka() {
    9.58 -	return prezdivka;
    9.59 -    }
    9.60 -
    9.61 -    public void setPrezdivka(String prezdivka) {
    9.62 -	this.prezdivka = prezdivka;
    9.63 -    }
    9.64 -
    9.65 -    public String getLouciciZprava() {
    9.66 -	return louciciZprava;
    9.67 -    }
    9.68 -
    9.69 -    public void setLouciciZprava(String louciciZprava) {
    9.70 -	this.louciciZprava = louciciZprava;
    9.71 -    }
    9.72 -
    9.73 -    public int getDelkaFronty() {
    9.74 -	return delkaFronty;
    9.75 -    }
    9.76 -
    9.77 -    public void setDelkaFronty(int delkaFronty) {
    9.78 -	this.delkaFronty = delkaFronty;
    9.79 -    }
    9.80 -}
    10.1 --- a/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/MistnostPripojena.java	Tue Jul 19 15:20:47 2011 +0200
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,112 +0,0 @@
    10.4 -package cz.frantovo.nekurak.chat;
    10.5 -
    10.6 -import cz.frantovo.nekurak.dto.ZpravaChatu;
    10.7 -import java.util.ArrayList;
    10.8 -import java.util.Collection;
    10.9 -import java.util.LinkedList;
   10.10 -import org.jivesoftware.smack.PacketListener;
   10.11 -import org.jivesoftware.smack.XMPPException;
   10.12 -import org.jivesoftware.smack.packet.Message;
   10.13 -import org.jivesoftware.smack.packet.Packet;
   10.14 -import org.jivesoftware.smack.util.StringUtils;
   10.15 -import org.jivesoftware.smackx.muc.MultiUserChat;
   10.16 -
   10.17 -/**
   10.18 - *
   10.19 - * @author fiki
   10.20 - */
   10.21 -public class MistnostPripojena implements PacketListener {
   10.22 -
   10.23 -	private final MultiUserChat muc;
   10.24 -	private final Mistnost nastaveni;
   10.25 -	private final LinkedList<ZpravaChatu> fronta = new LinkedList<ZpravaChatu>();
   10.26 -	private final String mojePrezdivka;
   10.27 -	/** Zatím nejvyšší pořadové číslo – poradoveCislo. */
   10.28 -	private int pocitadloZprav = 0;
   10.29 -
   10.30 -	public MistnostPripojena(Mistnost mistnost, Spojeni spojeni) throws XMPPException {
   10.31 -		nastaveni = mistnost;
   10.32 -		mojePrezdivka = mistnost.getPrezdivka();
   10.33 -		muc = new MultiUserChat(spojeni.getSpojeni(), mistnost.getMuc());
   10.34 -		muc.join(mistnost.getPrezdivka());
   10.35 -
   10.36 -		if (mistnost.getUvitaciZprava() != null) {
   10.37 -			muc.sendMessage(mistnost.getUvitaciZprava());
   10.38 -		}
   10.39 -
   10.40 -		muc.addMessageListener(this);
   10.41 -	}
   10.42 -
   10.43 -	public void processPacket(Packet packet) {
   10.44 -		if (packet instanceof Message) {
   10.45 -			Message m = (Message) packet;
   10.46 -			String od = StringUtils.parseResource(m.getFrom());
   10.47 -			String text = m.getBody();
   10.48 -
   10.49 -			/** Vydolujeme jméno z anonymně (námi) poslaných zpráv */
   10.50 -			boolean overenyUzivatel = true;
   10.51 -			if (mojePrezdivka.equals(od) && text.contains(":")) {
   10.52 -				od = text.split(":")[0];
   10.53 -				text = text.substring(od.length() + 2);
   10.54 -				overenyUzivatel = false;
   10.55 -			}
   10.56 -
   10.57 -			/** Přidáme zprávu do fronty historie. */
   10.58 -			ZpravaChatu z = new ZpravaChatu(od, text, overenyUzivatel, dalsiPoradoveCislo());
   10.59 -			pridejZpravu(z);
   10.60 -
   10.61 -			/** TODO: zpracovávat další události – příkazy atd. */
   10.62 -		}
   10.63 -	}
   10.64 -
   10.65 -	/**
   10.66 -	 * @param z Zpráva, která se má přidat do fronty (historie).
   10.67 -	 */
   10.68 -	private void pridejZpravu(ZpravaChatu z) {
   10.69 -		fronta.add(z);
   10.70 -
   10.71 -		while (fronta.size() > nastaveni.getDelkaFronty()) {
   10.72 -			fronta.removeFirst();
   10.73 -		}
   10.74 -	}
   10.75 -
   10.76 -	public void posliZpravu(ZpravaChatu zprava) throws XMPPException {
   10.77 -		muc.sendMessage(zprava.toString());
   10.78 -	}
   10.79 -
   10.80 -	public void odejdi() throws XMPPException {
   10.81 -		if (nastaveni.getLouciciZprava() != null) {
   10.82 -			muc.sendMessage(nastaveni.getLouciciZprava());
   10.83 -		}
   10.84 -		muc.leave();
   10.85 -	}
   10.86 -
   10.87 -	/**
   10.88 -	 * @param nazev název místnosti (něco@moje.doména)
   10.89 -	 * @return true, pokud se jedná o místnost s tímto názvem
   10.90 -	 */
   10.91 -	public boolean porovnejNazev(String nazev) {
   10.92 -		return nazev.equals(nastaveni.getMuc());
   10.93 -
   10.94 -	}
   10.95 -
   10.96 -	public Collection<ZpravaChatu> getZpravy(int poradoveCislo) {
   10.97 -		/**
   10.98 -		 * TODO:
   10.99 -		 * http://stackoverflow.com/questions/122105/java-what-is-the-best-way-to-filter-a-collection
  10.100 -		 * http://www.javaworld.com/javaworld/jw-10-2004/jw-1018-filter.html
  10.101 -		 */
  10.102 -		Collection<ZpravaChatu> vysledek = new ArrayList<ZpravaChatu>();
  10.103 -		for (ZpravaChatu z : fronta) {
  10.104 -			if (z.getPoradoveCislo() > poradoveCislo) {
  10.105 -				vysledek.add(z);
  10.106 -			}
  10.107 -		}
  10.108 -		return vysledek;
  10.109 -	}
  10.110 -
  10.111 -	private int dalsiPoradoveCislo() {
  10.112 -		pocitadloZprav++;
  10.113 -		return pocitadloZprav;
  10.114 -	}
  10.115 -}
    11.1 --- a/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/Nastaveni.java	Tue Jul 19 15:20:47 2011 +0200
    11.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.3 @@ -1,22 +0,0 @@
    11.4 -package cz.frantovo.nekurak.chat;
    11.5 -
    11.6 -import java.util.ArrayList;
    11.7 -import java.util.Collection;
    11.8 -
    11.9 -/**
   11.10 - * Nastavení serveru, singletonu, typicky jen jedno v celém systému.
   11.11 - * Můžeme uchovávat jejich starší verze.
   11.12 - * @author fiki
   11.13 - */
   11.14 -public class Nastaveni {
   11.15 -
   11.16 -	private Collection<UcetRobota> uctyRobota = new ArrayList<UcetRobota>();
   11.17 -
   11.18 -	public Collection<UcetRobota> getUctyRobota() {
   11.19 -		return uctyRobota;
   11.20 -	}
   11.21 -
   11.22 -	public void setUctyRobota(Collection<UcetRobota> uctyRobota) {
   11.23 -		this.uctyRobota = uctyRobota;
   11.24 -	}
   11.25 -}
    12.1 --- a/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/Spojeni.java	Tue Jul 19 15:20:47 2011 +0200
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,62 +0,0 @@
    12.4 -package cz.frantovo.nekurak.chat;
    12.5 -
    12.6 -import java.util.ArrayList;
    12.7 -import java.util.Collection;
    12.8 -import java.util.logging.Level;
    12.9 -import java.util.logging.Logger;
   12.10 -import org.jivesoftware.smack.ConnectionConfiguration;
   12.11 -import org.jivesoftware.smack.XMPPConnection;
   12.12 -import org.jivesoftware.smack.XMPPException;
   12.13 -
   12.14 -/**
   12.15 - *
   12.16 - * @author fiki
   12.17 - */
   12.18 -public class Spojeni {
   12.19 -
   12.20 -	private XMPPConnection spojeni;
   12.21 -	private Collection<MistnostPripojena> mistnosti = new ArrayList<MistnostPripojena>();
   12.22 -	private static final Logger log = Logger.getLogger(Spojeni.class.getSimpleName());
   12.23 -
   12.24 -	public Spojeni(UcetRobota ucet) throws XMPPException {
   12.25 -		/** Navážeme spojení */
   12.26 -		ConnectionConfiguration nastaveni;
   12.27 -		if (ucet.getAdresaServeru() == null || ucet.getPort() == 0) {
   12.28 -			nastaveni = new ConnectionConfiguration(ucet.getDomena());
   12.29 -		} else {
   12.30 -			nastaveni = new ConnectionConfiguration(ucet.getAdresaServeru(), ucet.getPort(), ucet.getDomena());
   12.31 -		}
   12.32 -
   12.33 -		spojeni = new XMPPConnection(nastaveni);
   12.34 -		spojeni.connect();
   12.35 -		spojeni.login(ucet.getUzivatelskeJmeno(), ucet.getUzivatelskeHeslo(), ucet.getProstredek());
   12.36 -
   12.37 -		/** Vstoupíme do místností */
   12.38 -		for (Mistnost m : ucet.getMistnosti()) {
   12.39 -			MistnostPripojena mp = new MistnostPripojena(m, this);
   12.40 -			mistnosti.add(mp);
   12.41 -		}
   12.42 -	}
   12.43 -
   12.44 -	public void odpoj() {
   12.45 -		/** Rozloučíme se ve všech místnostech */
   12.46 -		try {
   12.47 -			for (MistnostPripojena mp : mistnosti) {
   12.48 -				mp.odejdi();
   12.49 -			}
   12.50 -		} catch (Exception e) {
   12.51 -			log.log(Level.WARNING, "Nepodařilo se odejít z místnosti před ukončením spojení.", e);
   12.52 -		}
   12.53 -
   12.54 -		/** Ukončíme spojení */
   12.55 -		spojeni.disconnect();
   12.56 -	}
   12.57 -
   12.58 -	public XMPPConnection getSpojeni() {
   12.59 -		return spojeni;
   12.60 -	}
   12.61 -
   12.62 -	public Collection<MistnostPripojena> getMistnosti() {
   12.63 -		return mistnosti;
   12.64 -	}
   12.65 -}
    13.1 --- a/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/SpravceNastaveni.java	Tue Jul 19 15:20:47 2011 +0200
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,31 +0,0 @@
    13.4 -package cz.frantovo.nekurak.chat;
    13.5 -
    13.6 -/**
    13.7 - *
    13.8 - * @author fiki
    13.9 - */
   13.10 -public class SpravceNastaveni {
   13.11 -
   13.12 -	public Nastaveni getNastaveni() {
   13.13 -		Nastaveni n = new Nastaveni();
   13.14 -
   13.15 -		UcetRobota u = new UcetRobota();
   13.16 -		u.setUzivatelskeJmeno("nekurakrobot");
   13.17 -		u.setUzivatelskeHeslo("nekurak");
   13.18 -		u.setDomena("frantovo.cz");
   13.19 -		u.setAdresaServeru("62.177.71.161");
   13.20 -
   13.21 -		n.getUctyRobota().add(u);
   13.22 -
   13.23 -		Mistnost m = new Mistnost();
   13.24 -		m.setNazev("nekurak");
   13.25 -		m.setDomena("konference.frantovo.cz");
   13.26 -		m.setPrezdivka("WeboRobot");
   13.27 -		m.setUvitaciZprava("Ahoj, tak jsem tady!");
   13.28 -		m.setLouciciZprava("Mějte se tu hezky!");
   13.29 -
   13.30 -		u.getMistnosti().add(m);
   13.31 -
   13.32 -		return n;
   13.33 -	}
   13.34 -}
    14.1 --- a/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/chat/UcetRobota.java	Tue Jul 19 15:20:47 2011 +0200
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,97 +0,0 @@
    14.4 -package cz.frantovo.nekurak.chat;
    14.5 -
    14.6 -import java.net.InetAddress;
    14.7 -import java.net.UnknownHostException;
    14.8 -import java.util.ArrayList;
    14.9 -import java.util.Collection;
   14.10 -import java.util.logging.Level;
   14.11 -import java.util.logging.Logger;
   14.12 -
   14.13 -/**
   14.14 - * Definice jabberovského účtu, který používá robot k připojení.
   14.15 - * @author fiki
   14.16 - */
   14.17 -public class UcetRobota {
   14.18 -
   14.19 -	/** Seznam diskusních místností, do kterých robot vstoupí */
   14.20 -	private Collection<Mistnost> mistnosti = new ArrayList<Mistnost>();
   14.21 -	/** Doména – jabber server, ke kterému se připojí */
   14.22 -	private String domena;
   14.23 -	/** Pokud má být jiná než doména */
   14.24 -	private String adresaServeru;
   14.25 -	/** TCP port pro připojení */
   14.26 -	private int port = 5222;
   14.27 -	/** Jméno robota */
   14.28 -	private String uzivatelskeJmeno;
   14.29 -	/** Heslo robota */
   14.30 -	private String uzivatelskeHeslo;
   14.31 -	/** Prostředek (resource) tzn. část JID za lomítkem */
   14.32 -	private String prostredek = "robot";
   14.33 -	
   14.34 -	private static final Logger log = Logger.getLogger(UcetRobota.class.getSimpleName());
   14.35 -
   14.36 -	public UcetRobota() {
   14.37 -		try {
   14.38 -			/** aby nedocházelo ke konfliktům, když aplikaci nasadíme na víc serverů současně */
   14.39 -			prostredek = InetAddress.getLocalHost().getHostName();
   14.40 -		} catch (UnknownHostException e) {
   14.41 -			log.log(Level.SEVERE, "Nepodařilo se zjistit místní „hostname“", e);
   14.42 -		}
   14.43 -	}
   14.44 -
   14.45 -	public Collection<Mistnost> getMistnosti() {
   14.46 -		return mistnosti;
   14.47 -	}
   14.48 -
   14.49 -	public void setMistnosti(Collection<Mistnost> mistnosti) {
   14.50 -		this.mistnosti = mistnosti;
   14.51 -	}
   14.52 -
   14.53 -	public String getDomena() {
   14.54 -		return domena;
   14.55 -	}
   14.56 -
   14.57 -	public void setDomena(String domena) {
   14.58 -		this.domena = domena;
   14.59 -	}
   14.60 -
   14.61 -	public String getAdresaServeru() {
   14.62 -		return adresaServeru;
   14.63 -	}
   14.64 -
   14.65 -	public void setAdresaServeru(String adresaServeru) {
   14.66 -		this.adresaServeru = adresaServeru;
   14.67 -	}
   14.68 -
   14.69 -	public int getPort() {
   14.70 -		return port;
   14.71 -	}
   14.72 -
   14.73 -	public void setPort(int port) {
   14.74 -		this.port = port;
   14.75 -	}
   14.76 -
   14.77 -	public String getUzivatelskeJmeno() {
   14.78 -		return uzivatelskeJmeno;
   14.79 -	}
   14.80 -
   14.81 -	public void setUzivatelskeJmeno(String uzivatelskeJmeno) {
   14.82 -		this.uzivatelskeJmeno = uzivatelskeJmeno;
   14.83 -	}
   14.84 -
   14.85 -	public String getUzivatelskeHeslo() {
   14.86 -		return uzivatelskeHeslo;
   14.87 -	}
   14.88 -
   14.89 -	public void setUzivatelskeHeslo(String uzivatelskeHeslo) {
   14.90 -		this.uzivatelskeHeslo = uzivatelskeHeslo;
   14.91 -	}
   14.92 -
   14.93 -	public String getProstredek() {
   14.94 -		return prostredek;
   14.95 -	}
   14.96 -
   14.97 -	public void setProstredek(String prostredek) {
   14.98 -		this.prostredek = prostredek;
   14.99 -	}
  14.100 -}
    15.1 --- a/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/ejb/ChatEJB.java	Tue Jul 19 15:20:47 2011 +0200
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,105 +0,0 @@
    15.4 -package cz.frantovo.nekurak.ejb;
    15.5 -
    15.6 -import cz.frantovo.nekurak.chat.MistnostPripojena;
    15.7 -import cz.frantovo.nekurak.chat.Nastaveni;
    15.8 -import cz.frantovo.nekurak.chat.Spojeni;
    15.9 -import cz.frantovo.nekurak.chat.SpravceNastaveni;
   15.10 -import cz.frantovo.nekurak.chat.UcetRobota;
   15.11 -import cz.frantovo.nekurak.dto.ZpravaChatu;
   15.12 -import cz.frantovo.nekurak.vyjimky.NekurakVyjimka;
   15.13 -import java.util.ArrayList;
   15.14 -import java.util.Collection;
   15.15 -import java.util.logging.Level;
   15.16 -import java.util.logging.Logger;
   15.17 -import javax.annotation.PostConstruct;
   15.18 -import javax.annotation.PreDestroy;
   15.19 -import javax.ejb.Singleton;
   15.20 -import javax.ejb.Startup;
   15.21 -import javax.naming.NamingException;
   15.22 -
   15.23 -/**
   15.24 - *
   15.25 - * @author fiki
   15.26 - */
   15.27 -@Singleton
   15.28 -@Startup
   15.29 -public class ChatEJB implements ChatRemote {
   15.30 -
   15.31 -	private static final Logger log = Logger.getLogger(ChatRemote.class.getSimpleName());
   15.32 -	private Nastaveni nastaveni;
   15.33 -	private Collection<Spojeni> spojeni = new ArrayList<Spojeni>();
   15.34 -
   15.35 -	@Override
   15.36 -	public void posliZpravu(String mistnost, String prezdivka, String zprava) throws NekurakVyjimka {
   15.37 -		MistnostPripojena mp = najdiMistnost(mistnost);
   15.38 -		if (mp == null) {
   15.39 -			throw new NekurakVyjimka("Místnost s tímto názvem neexistuje", null);
   15.40 -		} else {
   15.41 -			try {
   15.42 -				mp.posliZpravu(new ZpravaChatu(prezdivka, zprava));
   15.43 -			} catch (Exception e) {
   15.44 -				log.log(Level.SEVERE, "Selhalo odesílání zprávy", e);
   15.45 -				throw new NekurakVyjimka("Zprávu se nepodařilo odeslat.", e);
   15.46 -			}
   15.47 -		}
   15.48 -	}
   15.49 -
   15.50 -	/**
   15.51 -	 * @param mistnost název místnosti včetně zavináče a serveru
   15.52 -	 * @param poradoveCislo pořadové číslo poslední zprávy, kterou jsme dostali
   15.53 -	 * @return všechny novější zprávy než dané pořadové číslo
   15.54 -	 * @throws NekurakVyjimka
   15.55 -	 */
   15.56 -	@Override
   15.57 -	public Collection<ZpravaChatu> getZpravy(String mistnost, int poradoveCislo) throws NekurakVyjimka {
   15.58 -		MistnostPripojena mp = najdiMistnost(mistnost);
   15.59 -		if (mp == null) {
   15.60 -			throw new NekurakVyjimka("Místnost s tímto názvem neexistuje", null);
   15.61 -		} else {
   15.62 -			return mp.getZpravy(poradoveCislo);
   15.63 -		}
   15.64 -	}
   15.65 -
   15.66 -	public ChatEJB() throws NekurakVyjimka {
   15.67 -		/** TODO: vyřešit lépe. */
   15.68 -		nastaveni = new SpravceNastaveni().getNastaveni();
   15.69 -	}
   15.70 -
   15.71 -	@PreDestroy
   15.72 -	public void odpoj() {
   15.73 -		for (Spojeni s : spojeni) {
   15.74 -			s.odpoj();
   15.75 -		}
   15.76 -	}
   15.77 -
   15.78 -	//@PostConstruct //dočasně vypnuté
   15.79 -	public void inicializuj() throws NekurakVyjimka, NamingException {
   15.80 -		pripojXMPP();
   15.81 -	}
   15.82 -
   15.83 -	private void pripojXMPP() throws NekurakVyjimka {
   15.84 -		try {
   15.85 -			for (UcetRobota u : nastaveni.getUctyRobota()) {
   15.86 -				Spojeni s = new Spojeni(u);
   15.87 -				spojeni.add(s);
   15.88 -			}
   15.89 -		} catch (Exception e) {
   15.90 -			throw new NekurakVyjimka("Chyba při připojování.", e);
   15.91 -		}
   15.92 -	}
   15.93 -
   15.94 -	/**
   15.95 -	 * @param nazev Název místnosti, kterou hledáme.
   15.96 -	 * @return nalezená místnost, nebo null, pokud místnost nebyla nalezena.
   15.97 -	 */
   15.98 -	private MistnostPripojena najdiMistnost(String nazev) {
   15.99 -		for (Spojeni s : spojeni) {
  15.100 -			for (MistnostPripojena mp : s.getMistnosti()) {
  15.101 -				if (mp.porovnejNazev(nazev)) {
  15.102 -					return mp;
  15.103 -				}
  15.104 -			}
  15.105 -		}
  15.106 -		return null;
  15.107 -	}
  15.108 -}
    16.1 --- a/java/nekurak.net-lib/src/cz/frantovo/nekurak/dto/ZpravaChatu.java	Tue Jul 19 15:20:47 2011 +0200
    16.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.3 @@ -1,76 +0,0 @@
    16.4 -package cz.frantovo.nekurak.dto;
    16.5 -
    16.6 -import java.util.Date;
    16.7 -
    16.8 -/**
    16.9 - *
   16.10 - * @author fiki
   16.11 - */
   16.12 -public class ZpravaChatu {
   16.13 -
   16.14 -	private String od;
   16.15 -	private Date kdy = new Date();
   16.16 -	private String text;
   16.17 -	private boolean overenyUzivatel;
   16.18 -	private int poradoveCislo;
   16.19 -
   16.20 -	public ZpravaChatu(String od, String text) {
   16.21 -		this.od = od;
   16.22 -		this.text = text;
   16.23 -	}
   16.24 -
   16.25 -	public ZpravaChatu(String od, String text, boolean overenyUzivatel, int poradoveCislo) {
   16.26 -		this.od = od;
   16.27 -		this.text = text;
   16.28 -		this.overenyUzivatel = overenyUzivatel;
   16.29 -		this.poradoveCislo = poradoveCislo;
   16.30 -	}
   16.31 -
   16.32 -	public String getOd() {
   16.33 -		return od;
   16.34 -	}
   16.35 -
   16.36 -	public String getText() {
   16.37 -		return text;
   16.38 -	}
   16.39 -
   16.40 -	public Date getKdy() {
   16.41 -		return kdy;
   16.42 -	}
   16.43 -
   16.44 -	/**
   16.45 -	 * @return true, pokud zprávu odeslal přihlášený uživatel (normálně přes jabber).
   16.46 -	 * False, pokud zprávu odeslal nějaký anonym jen přes web.
   16.47 -	 */
   16.48 -	public boolean isOverenyUzivatel() {
   16.49 -		return overenyUzivatel;
   16.50 -	}
   16.51 -
   16.52 -	/**
   16.53 -	 * @param overenyUzivatel true, pokud zprávu odeslal přihlášený uživatel (normálně přes jabber).
   16.54 -	 * False, pokud zprávu odeslal nějaký anonym jen přes web.
   16.55 -	 */
   16.56 -	public void setOverenyUzivatel(boolean overenyUzivatel) {
   16.57 -		this.overenyUzivatel = overenyUzivatel;
   16.58 -	}
   16.59 -
   16.60 -	/**
   16.61 -	 * @return Text zprávy – případně včetně přezdívky autora.
   16.62 -	 */
   16.63 -	@Override
   16.64 -	public String toString() {
   16.65 -		if (od == null) {
   16.66 -			return text;
   16.67 -		} else {
   16.68 -			return od + ": " + text;
   16.69 -		}
   16.70 -	}
   16.71 -
   16.72 -	public int getPoradoveCislo() {
   16.73 -		return poradoveCislo;
   16.74 -	}
   16.75 -
   16.76 -	public void setPoradoveCislo(int poradoveCislo) {
   16.77 -		this.poradoveCislo = poradoveCislo;
   16.78 -	}
   16.79 -}
    17.1 --- a/java/nekurak.net-lib/src/cz/frantovo/nekurak/ejb/ChatRemote.java	Tue Jul 19 15:20:47 2011 +0200
    17.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.3 @@ -1,15 +0,0 @@
    17.4 -package cz.frantovo.nekurak.ejb;
    17.5 -
    17.6 -import cz.frantovo.nekurak.dto.ZpravaChatu;
    17.7 -import cz.frantovo.nekurak.vyjimky.NekurakVyjimka;
    17.8 -import java.util.Collection;
    17.9 -import javax.ejb.Remote;
   17.10 -
   17.11 -@Remote
   17.12 -public interface ChatRemote {
   17.13 -
   17.14 -	void posliZpravu(String mistnost, String prezdivka, String zprava) throws NekurakVyjimka;
   17.15 -
   17.16 -    public Collection<ZpravaChatu> getZpravy(String mistnost, int poradoveCislo) throws NekurakVyjimka;
   17.17 -
   17.18 -}
    18.1 --- a/java/nekurak.net-lib/src/cz/frantovo/nekurak/web/HledacSluzby.java	Tue Jul 19 15:20:47 2011 +0200
    18.2 +++ b/java/nekurak.net-lib/src/cz/frantovo/nekurak/web/HledacSluzby.java	Tue Jul 19 15:22:15 2011 +0200
    18.3 @@ -1,6 +1,5 @@
    18.4  package cz.frantovo.nekurak.web;
    18.5  
    18.6 -import cz.frantovo.nekurak.ejb.ChatRemote;
    18.7  import cz.frantovo.nekurak.ejb.ClanekRemote;
    18.8  import cz.frantovo.nekurak.ejb.PodnikRemote;
    18.9  import cz.frantovo.nekurak.ejb.UzivatelRemote;
   18.10 @@ -20,7 +19,6 @@
   18.11  	private PodnikRemote podnikEJB;
   18.12  	private UzivatelRemote uzivatelEJB;
   18.13  	private ClanekRemote clanekEJB;
   18.14 -	private ChatRemote chatEJB;
   18.15  	private static final Logger log = Logger.getLogger(HledacSluzby.class.getSimpleName());
   18.16  
   18.17  	public PodnikRemote getPodnikEJB() {
   18.18 @@ -61,17 +59,4 @@
   18.19  		}
   18.20  		return clanekEJB;
   18.21  	}
   18.22 -
   18.23 -	public ChatRemote getChatEJB() {
   18.24 -		if (chatEJB == null) {
   18.25 -			try {
   18.26 -				Context c = new InitialContext();
   18.27 -				chatEJB = (ChatRemote) c.lookup("cz.frantovo.nekurak.ejb.ChatRemote");
   18.28 -			} catch (NamingException e) {
   18.29 -				log.log(Level.SEVERE, "Chyba při hledání ChatRemote", e);
   18.30 -				throw new RuntimeException(e);
   18.31 -			}
   18.32 -		}
   18.33 -		return chatEJB;
   18.34 -	}
   18.35  }
    19.1 --- a/java/nekurak.net-mvn/pom.xml	Tue Jul 19 15:20:47 2011 +0200
    19.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.3 @@ -1,52 +0,0 @@
    19.4 -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    19.5 -  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    19.6 -  <modelVersion>4.0.0</modelVersion>
    19.7 -  <groupId>cz.frantovo</groupId>
    19.8 -  <artifactId>nekurak.net-mvn</artifactId>
    19.9 -  <packaging>war</packaging>
   19.10 -  <version>1.0-SNAPSHOT</version>
   19.11 -  <name>nekurak.net-mvn JEE5 Webapp</name>
   19.12 -  <url>http://maven.apache.org</url>
   19.13 -  <dependencies>
   19.14 -
   19.15 -    <dependency>
   19.16 -      <groupId>javax.servlet</groupId>
   19.17 -      <artifactId>servlet-api</artifactId>
   19.18 -      <version>2.5</version>
   19.19 -      <scope>provided</scope>
   19.20 -    </dependency>
   19.21 -
   19.22 -    <dependency>
   19.23 -      <groupId>javax.servlet.jsp</groupId>
   19.24 -      <artifactId>jsp-api</artifactId>
   19.25 -      <version>2.1</version>
   19.26 -      <scope>provided</scope>
   19.27 -    </dependency>
   19.28 -
   19.29 -    <dependency>
   19.30 -      <groupId>junit</groupId>
   19.31 -      <artifactId>junit</artifactId>
   19.32 -      <version>3.8.1</version>
   19.33 -      <scope>test</scope>
   19.34 -    </dependency>
   19.35 -    
   19.36 -  </dependencies>
   19.37 -  <build>
   19.38 -    <plugins>
   19.39 -      <plugin>
   19.40 -        <groupId>org.apache.maven.plugins</groupId>
   19.41 -        <artifactId>maven-compiler-plugin</artifactId>
   19.42 -        <version>2.0.2</version>
   19.43 -        <configuration>
   19.44 -          <source>1.5</source>
   19.45 -          <target>1.5</target>
   19.46 -        </configuration>
   19.47 -      </plugin>
   19.48 -    </plugins>
   19.49 -    <finalName>nekurak.net-mvn</finalName>
   19.50 -  </build>
   19.51 -    <properties>
   19.52 -        <netbeans.hint.deploy.server>gfv3ee6</netbeans.hint.deploy.server>
   19.53 -    </properties>
   19.54 -</project>
   19.55 -
    20.1 --- a/java/nekurak.net-mvn/profiles.xml	Tue Jul 19 15:20:47 2011 +0200
    20.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.3 @@ -1,18 +0,0 @@
    20.4 -<?xml version="1.0" encoding="UTF-8"?>
    20.5 -<profilesXml xmlns="http://maven.apache.org/PROFILES/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    20.6 -  xsi:schemaLocation="http://maven.apache.org/PROFILES/1.0.0 http://maven.apache.org/xsd/profiles-1.0.0.xsd">
    20.7 -    <profiles>
    20.8 -        <profile>
    20.9 -            <id>netbeans-private</id>
   20.10 -            <activation>
   20.11 -                <property>
   20.12 -                    <name>netbeans.execution</name>
   20.13 -                    <value>true</value>
   20.14 -                </property>
   20.15 -            </activation>
   20.16 -            <properties>
   20.17 -                <netbeans.deployment.server.id>[/home/fiki/bin/glassfish/glassfish3/glassfish]deployer:gfv3ee6:localhost:4848</netbeans.deployment.server.id>
   20.18 -            </properties>
   20.19 -        </profile>
   20.20 -    </profiles>
   20.21 -</profilesXml>
    21.1 --- a/java/nekurak.net-mvn/src/main/java	Tue Jul 19 15:20:47 2011 +0200
    21.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.3 @@ -1,1 +0,0 @@
    21.4 -../../../nekurak.net-web/src/java
    21.5 \ No newline at end of file
    22.1 --- a/java/nekurak.net-mvn/src/main/webapp	Tue Jul 19 15:20:47 2011 +0200
    22.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.3 @@ -1,1 +0,0 @@
    22.4 -../../../nekurak.net-web/web
    22.5 \ No newline at end of file
    23.1 --- a/java/nekurak.net-rest/build.xml	Tue Jul 19 15:20:47 2011 +0200
    23.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.3 @@ -1,71 +0,0 @@
    23.4 -<?xml version="1.0" encoding="UTF-8"?>
    23.5 -<!-- You may freely edit this file. See commented blocks below for -->
    23.6 -<!-- some examples of how to customize the build. -->
    23.7 -<!-- (If you delete it and reopen the project it will be recreated.) -->
    23.8 -<!-- By default, only the Clean and Build commands use this build script. -->
    23.9 -<!-- Commands such as Run, Debug, and Test only use this build script if -->
   23.10 -<!-- the Compile on Save feature is turned off for the project. -->
   23.11 -<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
   23.12 -<!-- in the project's Project Properties dialog box.-->
   23.13 -<project name="nekurak.net-rest" default="default" basedir=".">
   23.14 -    <description>Builds, tests, and runs the project nekurak.net-rest.</description>
   23.15 -    <import file="nbproject/build-impl.xml"/>
   23.16 -    <!--
   23.17 -
   23.18 -    There exist several targets which are by default empty and which can be 
   23.19 -    used for execution of your tasks. These targets are usually executed 
   23.20 -    before and after some main targets. They are: 
   23.21 -
   23.22 -      -pre-init:                 called before initialization of project properties 
   23.23 -      -post-init:                called after initialization of project properties 
   23.24 -      -pre-compile:              called before javac compilation 
   23.25 -      -post-compile:             called after javac compilation 
   23.26 -      -pre-compile-single:       called before javac compilation of single file
   23.27 -      -post-compile-single:      called after javac compilation of single file
   23.28 -      -pre-compile-test:         called before javac compilation of JUnit tests
   23.29 -      -post-compile-test:        called after javac compilation of JUnit tests
   23.30 -      -pre-compile-test-single:  called before javac compilation of single JUnit test
   23.31 -      -post-compile-test-single: called after javac compilation of single JUunit test
   23.32 -      -pre-dist:                 called before archive building 
   23.33 -      -post-dist:                called after archive building 
   23.34 -      -post-clean:               called after cleaning build products 
   23.35 -      -pre-run-deploy:           called before deploying
   23.36 -      -post-run-deploy:          called after deploying
   23.37 -
   23.38 -    Example of pluging an obfuscator after the compilation could look like 
   23.39 -
   23.40 -        <target name="-post-compile">
   23.41 -            <obfuscate>
   23.42 -                <fileset dir="${build.classes.dir}"/>
   23.43 -            </obfuscate>
   23.44 -        </target>
   23.45 -
   23.46 -    For list of available properties check the imported 
   23.47 -    nbproject/build-impl.xml file. 
   23.48 -
   23.49 -
   23.50 -    Other way how to customize the build is by overriding existing main targets.
   23.51 -    The target of interest are: 
   23.52 -
   23.53 -      init-macrodef-javac:    defines macro for javac compilation
   23.54 -      init-macrodef-junit:   defines macro for junit execution
   23.55 -      init-macrodef-debug:    defines macro for class debugging
   23.56 -      do-dist:                archive building
   23.57 -      run:                    execution of project 
   23.58 -      javadoc-build:          javadoc generation 
   23.59 -
   23.60 -    Example of overriding the target for project execution could look like 
   23.61 -
   23.62 -        <target name="run" depends="<PROJNAME>-impl.jar">
   23.63 -            <exec dir="bin" executable="launcher.exe">
   23.64 -                <arg file="${dist.jar}"/>
   23.65 -            </exec>
   23.66 -        </target>
   23.67 -
   23.68 -    Notice that overridden target depends on jar target and not only on 
   23.69 -    compile target as regular run target does. Again, for list of available 
   23.70 -    properties which you can use check the target you are overriding in 
   23.71 -    nbproject/build-impl.xml file. 
   23.72 -
   23.73 -    -->
   23.74 -</project>
    24.1 --- a/java/nekurak.net-rest/nbproject/ant-deploy.xml	Tue Jul 19 15:20:47 2011 +0200
    24.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.3 @@ -1,111 +0,0 @@
    24.4 -<?xml version="1.0" encoding="UTF-8"?>
    24.5 -<project default="-deploy-ant" basedir=".">
    24.6 -    <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
    24.7 -        <property file="${deploy.ant.properties.file}" />
    24.8 -        <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
    24.9 -        <available file="${deploy.ant.docbase.dir}/WEB-INF/glassfish-web.xml" property="glassfish.web.present"/>
   24.10 -        <available file="${deploy.ant.resource.dir}" property="has.setup"/>
   24.11 -        <tempfile prefix="gfv3" property="gfv3.password.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   24.12 -        <echo message="AS_ADMIN_PASSWORD=${gfv3.password}" file="${gfv3.password.file}"/>
   24.13 -    </target>
   24.14 -    
   24.15 -    <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
   24.16 -        <tempfile prefix="gfv3" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
   24.17 -        <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
   24.18 -        <!-- The doctype triggers resolution which can fail -->
   24.19 -        <replace file="${temp.sun.web}">
   24.20 -            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
   24.21 -            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
   24.22 -        </replace>
   24.23 -        <replace file="${temp.sun.web}">
   24.24 -            <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
   24.25 -            <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
   24.26 -        </replace>
   24.27 -        <xmlproperty file="${temp.sun.web}" validate="false">
   24.28 -        </xmlproperty>    
   24.29 -        <delete file="${temp.sun.web}"/>
   24.30 -        <condition property="deploy.ant.client.url" value="${gfv3.url}${sun-web-app.context-root}" else="${gfv3.url}/${ant.project.name}">
   24.31 -            <isset property="sun-web-app.context-root"/>
   24.32 -        </condition>
   24.33 -        <condition property="deploy.context.root.argument" value="&amp;contextroot=${sun-web-app.context-root}" else="/${ant.project.name}">
   24.34 -            <isset property="sun-web-app.context-root"/>
   24.35 -        </condition>
   24.36 -    </target>
   24.37 -    <target name="-parse-glassfish-web" depends="-init-cl-deployment-env" if="glassfish.web.present">
   24.38 -        <tempfile prefix="gfv3" property="temp.gf.web" destdir="${java.io.tmpdir}"/>
   24.39 -        <copy file="${deploy.ant.docbase.dir}/WEB-INF/glassfish-web.xml" tofile="${temp.gf.web}"/>
   24.40 -        <!-- The doctype triggers resolution which can fail -->
   24.41 -        <replace file="${temp.gf.web}">
   24.42 -            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
   24.43 -            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
   24.44 -        </replace>
   24.45 -        <replace file="${temp.gf.web}">
   24.46 -            <replacetoken><![CDATA[<glassfish-web-app]]></replacetoken>
   24.47 -            <replacevalue><![CDATA[--> <glassfish-web-app]]></replacevalue>
   24.48 -        </replace>
   24.49 -        <xmlproperty file="${temp.gf.web}" validate="false">
   24.50 -        </xmlproperty>
   24.51 -        <delete file="${temp.gf.web}"/>
   24.52 -        <condition property="deploy.ant.client.url" value="${gfv3.url}${glassfish-web-app.context-root}" else="${gfv3.url}/${ant.project.name}">
   24.53 -            <isset property="glassfish-web-app.context-root"/>
   24.54 -        </condition>
   24.55 -        <condition property="deploy.context.root.argument" value="&amp;contextroot=${glassfish-web-app.context-root}" else="/${ant.project.name}">
   24.56 -            <isset property="glassfish-web-app.context-root"/>
   24.57 -        </condition>
   24.58 -    </target>
   24.59 -    <target name="-no-parse-sun-web" depends="-init-cl-deployment-env" unless="sun.web.present">
   24.60 -        <property name="deploy.context.root.argument" value=""/>
   24.61 -    </target>
   24.62 -    <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
   24.63 -        <tempfile prefix="gfv3" property="gfv3.resources.dir" destdir="${java.io.tmpdir}"/>
   24.64 -        <mkdir dir="${gfv3.resources.dir}"/>
   24.65 -        <mkdir dir="${gfv3.resources.dir}/META-INF"/>
   24.66 -        <copy todir="${gfv3.resources.dir}/META-INF">
   24.67 -            <fileset dir="${deploy.ant.resource.dir}"/>
   24.68 -        </copy>
   24.69 -        <jar destfile="${deploy.ant.archive}" update="true">
   24.70 -            <fileset dir="${gfv3.resources.dir}"/>
   24.71 -        </jar>
   24.72 -        <delete dir="${gfv3.resources.dir}"/>
   24.73 -    </target>
   24.74 -    <target name="-deploy-ant" depends="-parse-glassfish-web, -parse-sun-web, -no-parse-sun-web,-add-resources" if="deploy.ant.enabled">
   24.75 -        <antcall target="-deploy-without-pw"/>
   24.76 -        <antcall target="-deploy-with-pw"/>
   24.77 -    </target>
   24.78 -
   24.79 -    <target name="-deploy-without-pw" unless="gfv3.password">
   24.80 -        <echo message="Deploying ${deploy.ant.archive}"/>
   24.81 -        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   24.82 -        <property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
   24.83 -        <get src="${gfv3.admin.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}&amp;force=true&amp;name=${ant.project.name}"
   24.84 -            dest="${gfv3.results.file}"/>
   24.85 -        <delete file="${gfv3.results.file}"/>    
   24.86 -    </target>
   24.87 -    <target name="-deploy-with-pw" if="gfv3.password">
   24.88 -        <echo message="Deploying ${deploy.ant.archive}"/>
   24.89 -        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   24.90 -        <property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
   24.91 -        <get username="${gfv3.username}" password="${gfv3.password}" src="${gfv3.admin.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}&amp;force=true&amp;name=${ant.project.name}"
   24.92 -            dest="${gfv3.results.file}"/>
   24.93 -        <delete file="${gfv3.results.file}"/>
   24.94 -    </target>
   24.95 -    <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
   24.96 -        <antcall target="-undeploy-without-pw"/>
   24.97 -        <antcall target="-undeploy-with-pw"/>
   24.98 -    </target>
   24.99 -
  24.100 -    <target name="-undeploy-without-pw" unless="gfv3.password">
  24.101 -        <echo message="Undeploying ${deploy.ant.archive}"/>
  24.102 -        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
  24.103 -        <get src="${gfv3.admin.url}/__asadmin/undeploy?name=${ant.project.name}"
  24.104 -            dest="${gfv3.results.file}"/>
  24.105 -        <delete file="${gfv3.results.file}"/>    
  24.106 -    </target>
  24.107 -    <target name="-undeploy-with-pw" if="gfv3.password">
  24.108 -        <echo message="Undeploying ${deploy.ant.archive}"/>
  24.109 -        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
  24.110 -        <get username="${gfv3.username}" password="${gfv3.password}" src="${gfv3.admin.url}/__asadmin/undeploy?name=${ant.project.name}"
  24.111 -            dest="${gfv3.results.file}"/>
  24.112 -        <delete file="${gfv3.results.file}"/>
  24.113 -    </target>
  24.114 -</project>
    25.1 --- a/java/nekurak.net-rest/nbproject/build-impl.xml	Tue Jul 19 15:20:47 2011 +0200
    25.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.3 @@ -1,1078 +0,0 @@
    25.4 -<?xml version="1.0" encoding="UTF-8"?>
    25.5 -<!--
    25.6 -        *** GENERATED FROM project.xml - DO NOT EDIT  ***
    25.7 -        ***         EDIT ../build.xml INSTEAD         ***
    25.8 -
    25.9 -        For the purpose of easier reading the script
   25.10 -        is divided into following sections:
   25.11 -        - initialization
   25.12 -        - compilation
   25.13 -        - dist
   25.14 -        - execution
   25.15 -        - debugging
   25.16 -        - javadoc
   25.17 -        - junit compilation
   25.18 -        - junit execution
   25.19 -        - junit debugging
   25.20 -        - cleanup
   25.21 -
   25.22 -        -->
   25.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-rest-impl">
   25.24 -    <import file="rest-build.xml"/>
   25.25 -    <import file="ant-deploy.xml"/>
   25.26 -    <fail message="Please build using Ant 1.7.1 or higher.">
   25.27 -        <condition>
   25.28 -            <not>
   25.29 -                <antversion atleast="1.7.1"/>
   25.30 -            </not>
   25.31 -        </condition>
   25.32 -    </fail>
   25.33 -    <target depends="dist,javadoc" description="Build whole project." name="default"/>
   25.34 -    <!--
   25.35 -                INITIALIZATION SECTION
   25.36 -            -->
   25.37 -    <target name="-pre-init">
   25.38 -        <!-- Empty placeholder for easier customization. -->
   25.39 -        <!-- You can override this target in the ../build.xml file. -->
   25.40 -    </target>
   25.41 -    <target depends="-pre-init" name="-init-private">
   25.42 -        <property file="nbproject/private/private.properties"/>
   25.43 -    </target>
   25.44 -    <target depends="-pre-init,-init-private" name="-init-user">
   25.45 -        <property file="${user.properties.file}"/>
   25.46 -        <!-- The two properties below are usually overridden -->
   25.47 -        <!-- by the active platform. Just a fallback. -->
   25.48 -        <property name="default.javac.source" value="1.4"/>
   25.49 -        <property name="default.javac.target" value="1.4"/>
   25.50 -    </target>
   25.51 -    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
   25.52 -        <property file="nbproject/project.properties"/>
   25.53 -    </target>
   25.54 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
   25.55 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
   25.56 -        <condition property="have.tests">
   25.57 -            <or>
   25.58 -                <available file="${test.src.dir}"/>
   25.59 -            </or>
   25.60 -        </condition>
   25.61 -        <condition property="have.sources">
   25.62 -            <or>
   25.63 -                <available file="${src.dir}"/>
   25.64 -            </or>
   25.65 -        </condition>
   25.66 -        <condition property="netbeans.home+have.tests">
   25.67 -            <and>
   25.68 -                <isset property="netbeans.home"/>
   25.69 -                <isset property="have.tests"/>
   25.70 -            </and>
   25.71 -        </condition>
   25.72 -        <condition property="no.javadoc.preview">
   25.73 -            <isfalse value="${javadoc.preview}"/>
   25.74 -        </condition>
   25.75 -        <property name="javac.compilerargs" value=""/>
   25.76 -        <condition property="no.deps">
   25.77 -            <and>
   25.78 -                <istrue value="${no.dependencies}"/>
   25.79 -            </and>
   25.80 -        </condition>
   25.81 -        <condition property="no.dist.ear.dir">
   25.82 -            <not>
   25.83 -                <isset property="dist.ear.dir"/>
   25.84 -            </not>
   25.85 -        </condition>
   25.86 -        <property name="build.web.excludes" value="${build.classes.excludes}"/>
   25.87 -        <condition property="do.compile.jsps">
   25.88 -            <istrue value="${compile.jsps}"/>
   25.89 -        </condition>
   25.90 -        <condition property="do.debug.server">
   25.91 -            <or>
   25.92 -                <not>
   25.93 -                    <isset property="debug.server"/>
   25.94 -                </not>
   25.95 -                <istrue value="${debug.server}"/>
   25.96 -                <and>
   25.97 -                    <not>
   25.98 -                        <istrue value="${debug.server}"/>
   25.99 -                    </not>
  25.100 -                    <not>
  25.101 -                        <istrue value="${debug.client}"/>
  25.102 -                    </not>
  25.103 -                </and>
  25.104 -            </or>
  25.105 -        </condition>
  25.106 -        <condition property="do.debug.client">
  25.107 -            <istrue value="${debug.client}"/>
  25.108 -        </condition>
  25.109 -        <condition property="do.display.browser">
  25.110 -            <istrue value="${display.browser}"/>
  25.111 -        </condition>
  25.112 -        <condition property="do.display.browser.debug">
  25.113 -            <and>
  25.114 -                <isset property="do.display.browser"/>
  25.115 -                <not>
  25.116 -                    <isset property="do.debug.client"/>
  25.117 -                </not>
  25.118 -            </and>
  25.119 -        </condition>
  25.120 -        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
  25.121 -        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
  25.122 -        <condition property="do.war.package.with.custom.manifest">
  25.123 -            <isset property="has.custom.manifest"/>
  25.124 -        </condition>
  25.125 -        <condition property="do.war.package.without.custom.manifest">
  25.126 -            <not>
  25.127 -                <isset property="has.custom.manifest"/>
  25.128 -            </not>
  25.129 -        </condition>
  25.130 -        <condition property="do.tmp.war.package.with.custom.manifest">
  25.131 -            <and>
  25.132 -                <isset property="has.custom.manifest"/>
  25.133 -                <or>
  25.134 -                    <isfalse value="${directory.deployment.supported}"/>
  25.135 -                    <isset property="dist.ear.dir"/>
  25.136 -                </or>
  25.137 -            </and>
  25.138 -        </condition>
  25.139 -        <condition property="do.tmp.war.package.without.custom.manifest">
  25.140 -            <and>
  25.141 -                <not>
  25.142 -                    <isset property="has.custom.manifest"/>
  25.143 -                </not>
  25.144 -                <or>
  25.145 -                    <isfalse value="${directory.deployment.supported}"/>
  25.146 -                    <isset property="dist.ear.dir"/>
  25.147 -                </or>
  25.148 -            </and>
  25.149 -        </condition>
  25.150 -        <condition property="do.tmp.war.package">
  25.151 -            <or>
  25.152 -                <isfalse value="${directory.deployment.supported}"/>
  25.153 -                <isset property="dist.ear.dir"/>
  25.154 -            </or>
  25.155 -        </condition>
  25.156 -        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
  25.157 -        <condition else="" property="application.args.param" value="${application.args}">
  25.158 -            <and>
  25.159 -                <isset property="application.args"/>
  25.160 -                <not>
  25.161 -                    <equals arg1="${application.args}" arg2="" trim="true"/>
  25.162 -                </not>
  25.163 -            </and>
  25.164 -        </condition>
  25.165 -        <property name="source.encoding" value="${file.encoding}"/>
  25.166 -        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  25.167 -            <and>
  25.168 -                <isset property="javadoc.encoding"/>
  25.169 -                <not>
  25.170 -                    <equals arg1="${javadoc.encoding}" arg2=""/>
  25.171 -                </not>
  25.172 -            </and>
  25.173 -        </condition>
  25.174 -        <property name="javadoc.encoding.used" value="${source.encoding}"/>
  25.175 -        <property name="includes" value="**"/>
  25.176 -        <property name="excludes" value=""/>
  25.177 -        <property name="runmain.jvmargs" value=""/>
  25.178 -        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
  25.179 -        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
  25.180 -            <and>
  25.181 -                <isset property="endorsed.classpath"/>
  25.182 -                <length length="0" string="${endorsed.classpath}" when="greater"/>
  25.183 -            </and>
  25.184 -        </condition>
  25.185 -        <condition else="false" property="jdkBug6558476">
  25.186 -            <and>
  25.187 -                <matches pattern="1\.[56]" string="${java.specification.version}"/>
  25.188 -                <not>
  25.189 -                    <os family="unix"/>
  25.190 -                </not>
  25.191 -            </and>
  25.192 -        </condition>
  25.193 -        <property name="javac.fork" value="${jdkBug6558476}"/>
  25.194 -    </target>
  25.195 -    <target depends="init" name="-init-cos" unless="deploy.on.save">
  25.196 -        <condition property="deploy.on.save" value="true">
  25.197 -            <istrue value="${j2ee.deploy.on.save}"/>
  25.198 -        </condition>
  25.199 -    </target>
  25.200 -    <target name="-post-init">
  25.201 -        <!-- Empty placeholder for easier customization. -->
  25.202 -        <!-- You can override this target in the ../build.xml file. -->
  25.203 -    </target>
  25.204 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  25.205 -        <fail unless="src.dir">Must set src.dir</fail>
  25.206 -        <fail unless="test.src.dir">Must set test.src.dir</fail>
  25.207 -        <fail unless="build.dir">Must set build.dir</fail>
  25.208 -        <fail unless="build.web.dir">Must set build.web.dir</fail>
  25.209 -        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
  25.210 -        <fail unless="dist.dir">Must set dist.dir</fail>
  25.211 -        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  25.212 -        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  25.213 -        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  25.214 -        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  25.215 -        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  25.216 -        <fail unless="dist.war">Must set dist.war</fail>
  25.217 -        <condition property="missing.j2ee.server.home">
  25.218 -            <and>
  25.219 -                <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
  25.220 -                <not>
  25.221 -                    <isset property="j2ee.server.home"/>
  25.222 -                </not>
  25.223 -            </and>
  25.224 -        </condition>
  25.225 -        <fail if="missing.j2ee.server.home">
  25.226 -The Java EE server classpath is not correctly set up - server home directory is missing.
  25.227 -Either open the project in the IDE and assign the server or setup the server classpath manually.
  25.228 -For example like this:
  25.229 -   ant -Dj2ee.server.home=&lt;app_server_installation_directory&gt;
  25.230 -                </fail>
  25.231 -        <fail unless="j2ee.platform.classpath">
  25.232 -The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
  25.233 -Either open the project in the IDE and assign the server or setup the server classpath manually.
  25.234 -For example like this:
  25.235 -   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
  25.236 -or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
  25.237 -                </fail>
  25.238 -    </target>
  25.239 -    <target name="-init-macrodef-property">
  25.240 -        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
  25.241 -            <attribute name="name"/>
  25.242 -            <attribute name="value"/>
  25.243 -            <sequential>
  25.244 -                <property name="@{name}" value="${@{value}}"/>
  25.245 -            </sequential>
  25.246 -        </macrodef>
  25.247 -    </target>
  25.248 -    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
  25.249 -        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
  25.250 -            <attribute default="${src.dir}" name="srcdir"/>
  25.251 -            <attribute default="${build.classes.dir}" name="destdir"/>
  25.252 -            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  25.253 -            <attribute default="${javac.processorpath}" name="processorpath"/>
  25.254 -            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  25.255 -            <attribute default="${includes}" name="includes"/>
  25.256 -            <attribute default="${excludes}" name="excludes"/>
  25.257 -            <attribute default="${javac.debug}" name="debug"/>
  25.258 -            <attribute default="${empty.dir}" name="gensrcdir"/>
  25.259 -            <element name="customize" optional="true"/>
  25.260 -            <sequential>
  25.261 -                <property location="${build.dir}/empty" name="empty.dir"/>
  25.262 -                <mkdir dir="${empty.dir}"/>
  25.263 -                <mkdir dir="@{apgeneratedsrcdir}"/>
  25.264 -                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
  25.265 -                    <src>
  25.266 -                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  25.267 -                            <include name="*"/>
  25.268 -                        </dirset>
  25.269 -                    </src>
  25.270 -                    <classpath>
  25.271 -                        <path path="@{classpath}"/>
  25.272 -                    </classpath>
  25.273 -                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  25.274 -                    <compilerarg line="${javac.compilerargs}"/>
  25.275 -                    <compilerarg value="-processorpath"/>
  25.276 -                    <compilerarg path="@{processorpath}:${empty.dir}"/>
  25.277 -                    <compilerarg line="${ap.processors.internal}"/>
  25.278 -                    <compilerarg value="-s"/>
  25.279 -                    <compilerarg path="@{apgeneratedsrcdir}"/>
  25.280 -                    <compilerarg line="${ap.proc.none.internal}"/>
  25.281 -                    <customize/>
  25.282 -                </javac>
  25.283 -            </sequential>
  25.284 -        </macrodef>
  25.285 -    </target>
  25.286 -    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
  25.287 -        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
  25.288 -            <attribute default="${src.dir}" name="srcdir"/>
  25.289 -            <attribute default="${build.classes.dir}" name="destdir"/>
  25.290 -            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  25.291 -            <attribute default="${javac.processorpath}" name="processorpath"/>
  25.292 -            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  25.293 -            <attribute default="${includes}" name="includes"/>
  25.294 -            <attribute default="${excludes}" name="excludes"/>
  25.295 -            <attribute default="${javac.debug}" name="debug"/>
  25.296 -            <attribute default="${empty.dir}" name="gensrcdir"/>
  25.297 -            <element name="customize" optional="true"/>
  25.298 -            <sequential>
  25.299 -                <property location="${build.dir}/empty" name="empty.dir"/>
  25.300 -                <mkdir dir="${empty.dir}"/>
  25.301 -                <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}">
  25.302 -                    <src>
  25.303 -                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  25.304 -                            <include name="*"/>
  25.305 -                        </dirset>
  25.306 -                    </src>
  25.307 -                    <classpath>
  25.308 -                        <path path="@{classpath}"/>
  25.309 -                    </classpath>
  25.310 -                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  25.311 -                    <compilerarg line="${javac.compilerargs}"/>
  25.312 -                    <customize/>
  25.313 -                </javac>
  25.314 -            </sequential>
  25.315 -        </macrodef>
  25.316 -    </target>
  25.317 -    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
  25.318 -        <macrodef name="depend" uri="http://www.netbeans.org/ns/web-project/2">
  25.319 -            <attribute default="${src.dir}" name="srcdir"/>
  25.320 -            <attribute default="${build.classes.dir}" name="destdir"/>
  25.321 -            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  25.322 -            <sequential>
  25.323 -                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
  25.324 -                    <classpath>
  25.325 -                        <path path="@{classpath}"/>
  25.326 -                    </classpath>
  25.327 -                </depend>
  25.328 -            </sequential>
  25.329 -        </macrodef>
  25.330 -        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/web-project/2">
  25.331 -            <attribute default="${build.classes.dir}" name="destdir"/>
  25.332 -            <sequential>
  25.333 -                <fail unless="javac.includes">Must set javac.includes</fail>
  25.334 -                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
  25.335 -                    <path>
  25.336 -                        <filelist dir="@{destdir}" files="${javac.includes}"/>
  25.337 -                    </path>
  25.338 -                    <globmapper from="*.java" to="*.class"/>
  25.339 -                </pathconvert>
  25.340 -                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
  25.341 -                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
  25.342 -                <delete>
  25.343 -                    <files includesfile="${javac.includesfile.binary}"/>
  25.344 -                </delete>
  25.345 -                <delete file="${javac.includesfile.binary}"/>
  25.346 -            </sequential>
  25.347 -        </macrodef>
  25.348 -    </target>
  25.349 -    <target name="-init-macrodef-junit">
  25.350 -        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
  25.351 -            <attribute default="${includes}" name="includes"/>
  25.352 -            <attribute default="${excludes}" name="excludes"/>
  25.353 -            <attribute default="**" name="testincludes"/>
  25.354 -            <sequential>
  25.355 -                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
  25.356 -                    <batchtest todir="${build.test.results.dir}">
  25.357 -                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  25.358 -                            <filename name="@{testincludes}"/>
  25.359 -                        </fileset>
  25.360 -                    </batchtest>
  25.361 -                    <classpath>
  25.362 -                        <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
  25.363 -                    </classpath>
  25.364 -                    <syspropertyset>
  25.365 -                        <propertyref prefix="test-sys-prop."/>
  25.366 -                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  25.367 -                    </syspropertyset>
  25.368 -                    <formatter type="brief" usefile="false"/>
  25.369 -                    <formatter type="xml"/>
  25.370 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  25.371 -                    <jvmarg value="-ea"/>
  25.372 -                    <jvmarg line="${runmain.jvmargs}"/>
  25.373 -                </junit>
  25.374 -            </sequential>
  25.375 -        </macrodef>
  25.376 -    </target>
  25.377 -    <target name="-init-macrodef-java">
  25.378 -        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
  25.379 -            <attribute default="${main.class}" name="classname"/>
  25.380 -            <attribute default="${debug.classpath}" name="classpath"/>
  25.381 -            <element name="customize" optional="true"/>
  25.382 -            <sequential>
  25.383 -                <java classname="@{classname}" fork="true">
  25.384 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  25.385 -                    <jvmarg line="${runmain.jvmargs}"/>
  25.386 -                    <classpath>
  25.387 -                        <path path="@{classpath}:${j2ee.platform.classpath}"/>
  25.388 -                    </classpath>
  25.389 -                    <syspropertyset>
  25.390 -                        <propertyref prefix="run-sys-prop."/>
  25.391 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  25.392 -                    </syspropertyset>
  25.393 -                    <customize/>
  25.394 -                </java>
  25.395 -            </sequential>
  25.396 -        </macrodef>
  25.397 -    </target>
  25.398 -    <target name="-init-macrodef-nbjsdebug">
  25.399 -        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
  25.400 -            <attribute default="${client.url}" name="webUrl"/>
  25.401 -            <sequential>
  25.402 -                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
  25.403 -            </sequential>
  25.404 -        </macrodef>
  25.405 -    </target>
  25.406 -    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  25.407 -        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
  25.408 -            <attribute default="${main.class}" name="name"/>
  25.409 -            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  25.410 -            <sequential>
  25.411 -                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
  25.412 -                    <classpath>
  25.413 -                        <path path="@{classpath}"/>
  25.414 -                    </classpath>
  25.415 -                </nbjpdastart>
  25.416 -            </sequential>
  25.417 -        </macrodef>
  25.418 -        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
  25.419 -            <attribute default="${build.classes.dir}" name="dir"/>
  25.420 -            <sequential>
  25.421 -                <nbjpdareload>
  25.422 -                    <fileset dir="@{dir}" includes="${fix.classes}">
  25.423 -                        <include name="${fix.includes}*.class"/>
  25.424 -                    </fileset>
  25.425 -                </nbjpdareload>
  25.426 -            </sequential>
  25.427 -        </macrodef>
  25.428 -        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
  25.429 -            <sequential>
  25.430 -                <nbjpdaappreloaded/>
  25.431 -            </sequential>
  25.432 -        </macrodef>
  25.433 -    </target>
  25.434 -    <target name="-init-debug-args">
  25.435 -        <property name="version-output" value="java version &quot;${ant.java.version}"/>
  25.436 -        <condition property="have-jdk-older-than-1.4">
  25.437 -            <or>
  25.438 -                <contains string="${version-output}" substring="java version &quot;1.0"/>
  25.439 -                <contains string="${version-output}" substring="java version &quot;1.1"/>
  25.440 -                <contains string="${version-output}" substring="java version &quot;1.2"/>
  25.441 -                <contains string="${version-output}" substring="java version &quot;1.3"/>
  25.442 -            </or>
  25.443 -        </condition>
  25.444 -        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  25.445 -            <istrue value="${have-jdk-older-than-1.4}"/>
  25.446 -        </condition>
  25.447 -        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  25.448 -            <os family="windows"/>
  25.449 -        </condition>
  25.450 -        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  25.451 -            <isset property="debug.transport"/>
  25.452 -        </condition>
  25.453 -    </target>
  25.454 -    <target depends="-init-debug-args" name="-init-macrodef-debug">
  25.455 -        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
  25.456 -            <attribute default="${main.class}" name="classname"/>
  25.457 -            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  25.458 -            <attribute default="${application.args.param}" name="args"/>
  25.459 -            <element name="customize" optional="true"/>
  25.460 -            <sequential>
  25.461 -                <java classname="@{classname}" fork="true">
  25.462 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  25.463 -                    <jvmarg line="${debug-args-line}"/>
  25.464 -                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  25.465 -                    <jvmarg line="${runmain.jvmargs}"/>
  25.466 -                    <classpath>
  25.467 -                        <path path="@{classpath}"/>
  25.468 -                    </classpath>
  25.469 -                    <syspropertyset>
  25.470 -                        <propertyref prefix="run-sys-prop."/>
  25.471 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  25.472 -                    </syspropertyset>
  25.473 -                    <arg line="@{args}"/>
  25.474 -                    <customize/>
  25.475 -                </java>
  25.476 -            </sequential>
  25.477 -        </macrodef>
  25.478 -    </target>
  25.479 -    <target name="-init-taskdefs">
  25.480 -        <fail unless="libs.CopyLibs.classpath">
  25.481 -The libs.CopyLibs.classpath property is not set up.
  25.482 -This property must point to 
  25.483 -org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
  25.484 -of NetBeans IDE installation and is usually located at 
  25.485 -&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
  25.486 -Either open the project in the IDE and make sure CopyLibs library
  25.487 -exists or setup the property manually. For example like this:
  25.488 - ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
  25.489 -                </fail>
  25.490 -        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
  25.491 -    </target>
  25.492 -    <target name="-init-ap-cmdline-properties">
  25.493 -        <property name="annotation.processing.enabled" value="true"/>
  25.494 -        <property name="annotation.processing.processors.list" value=""/>
  25.495 -        <property name="annotation.processing.run.all.processors" value="true"/>
  25.496 -        <property name="javac.processorpath" value="${javac.classpath}"/>
  25.497 -        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
  25.498 -        <condition property="ap.supported.internal" value="true">
  25.499 -            <not>
  25.500 -                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
  25.501 -            </not>
  25.502 -        </condition>
  25.503 -    </target>
  25.504 -    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
  25.505 -        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
  25.506 -            <isfalse value="${annotation.processing.run.all.processors}"/>
  25.507 -        </condition>
  25.508 -        <condition else="" property="ap.proc.none.internal" value="-proc:none">
  25.509 -            <isfalse value="${annotation.processing.enabled}"/>
  25.510 -        </condition>
  25.511 -    </target>
  25.512 -    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
  25.513 -        <property name="ap.cmd.line.internal" value=""/>
  25.514 -    </target>
  25.515 -    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" name="profile-init"/>
  25.516 -    <target name="-profile-pre-init">
  25.517 -        <!-- Empty placeholder for easier customization. -->
  25.518 -        <!-- You can override this target in the ../build.xml file. -->
  25.519 -    </target>
  25.520 -    <target name="-profile-post-init">
  25.521 -        <!-- Empty placeholder for easier customization. -->
  25.522 -        <!-- You can override this target in the ../build.xml file. -->
  25.523 -    </target>
  25.524 -    <target depends="-profile-pre-init, init, -profile-post-init" name="-profile-init-check">
  25.525 -        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
  25.526 -        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
  25.527 -    </target>
  25.528 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
  25.529 -    <!--
  25.530 -                COMPILATION SECTION
  25.531 -            -->
  25.532 -    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
  25.533 -        <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
  25.534 -            <property name="deploy.on.save" value="false"/>
  25.535 -        </ant>
  25.536 -    </target>
  25.537 -    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
  25.538 -        <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
  25.539 -            <property name="deploy.on.save" value="false"/>
  25.540 -        </ant>
  25.541 -    </target>
  25.542 -    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
  25.543 -    <target depends="init,deps-jar,generate-rest-config" name="-pre-pre-compile">
  25.544 -        <mkdir dir="${build.classes.dir}"/>
  25.545 -    </target>
  25.546 -    <target name="-pre-compile">
  25.547 -        <!-- Empty placeholder for easier customization. -->
  25.548 -        <!-- You can override this target in the ../build.xml file. -->
  25.549 -    </target>
  25.550 -    <target name="-copy-webdir">
  25.551 -        <copy todir="${build.web.dir}">
  25.552 -            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
  25.553 -        </copy>
  25.554 -        <copy todir="${build.web.dir}/WEB-INF">
  25.555 -            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
  25.556 -        </copy>
  25.557 -    </target>
  25.558 -    <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">
  25.559 -        <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
  25.560 -        <copy todir="${build.classes.dir}">
  25.561 -            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  25.562 -        </copy>
  25.563 -    </target>
  25.564 -    <target if="has.custom.manifest" name="-copy-manifest">
  25.565 -        <mkdir dir="${build.meta.inf.dir}"/>
  25.566 -        <copy todir="${build.meta.inf.dir}">
  25.567 -            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
  25.568 -        </copy>
  25.569 -    </target>
  25.570 -    <target if="has.persistence.xml" name="-copy-persistence-xml">
  25.571 -        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
  25.572 -        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
  25.573 -            <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
  25.574 -        </copy>
  25.575 -    </target>
  25.576 -    <target name="-post-compile">
  25.577 -        <!-- Empty placeholder for easier customization. -->
  25.578 -        <!-- You can override this target in the ../build.xml file. -->
  25.579 -    </target>
  25.580 -    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  25.581 -    <target name="-pre-compile-single">
  25.582 -        <!-- Empty placeholder for easier customization. -->
  25.583 -        <!-- You can override this target in the ../build.xml file. -->
  25.584 -    </target>
  25.585 -    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  25.586 -        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  25.587 -        <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
  25.588 -        <copy todir="${build.classes.dir}">
  25.589 -            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  25.590 -        </copy>
  25.591 -    </target>
  25.592 -    <target name="-post-compile-single">
  25.593 -        <!-- Empty placeholder for easier customization. -->
  25.594 -        <!-- You can override this target in the ../build.xml file. -->
  25.595 -    </target>
  25.596 -    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  25.597 -    <property name="jspc.schemas" value="/resources/schemas/"/>
  25.598 -    <property name="jspc.dtds" value="/resources/dtds/"/>
  25.599 -    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
  25.600 -        <mkdir dir="${build.generated.dir}/src"/>
  25.601 -        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
  25.602 -            <arg value="-uriroot"/>
  25.603 -            <arg file="${basedir}/${build.web.dir}"/>
  25.604 -            <arg value="-d"/>
  25.605 -            <arg file="${basedir}/${build.generated.dir}/src"/>
  25.606 -            <arg value="-die1"/>
  25.607 -            <arg value="-schemas ${jspc.schemas}"/>
  25.608 -            <arg value="-dtds ${jspc.dtds}"/>
  25.609 -            <arg value="-compilerSourceVM ${javac.source}"/>
  25.610 -            <arg value="-compilerTargetVM ${javac.target}"/>
  25.611 -            <arg value="-javaEncoding ${source.encoding}"/>
  25.612 -            <arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
  25.613 -            <classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
  25.614 -        </java>
  25.615 -        <mkdir dir="${build.generated.dir}/classes"/>
  25.616 -        <webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
  25.617 -    </target>
  25.618 -    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
  25.619 -        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
  25.620 -        <mkdir dir="${build.generated.dir}/src"/>
  25.621 -        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
  25.622 -            <arg value="-uriroot"/>
  25.623 -            <arg file="${basedir}/${build.web.dir}"/>
  25.624 -            <arg value="-d"/>
  25.625 -            <arg file="${basedir}/${build.generated.dir}/src"/>
  25.626 -            <arg value="-die1"/>
  25.627 -            <arg value="-schemas ${jspc.schemas}"/>
  25.628 -            <arg value="-dtds ${jspc.dtds}"/>
  25.629 -            <arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
  25.630 -            <arg value="-jspc.files"/>
  25.631 -            <arg path="${jsp.includes}"/>
  25.632 -            <arg value="-compilerSourceVM ${javac.source}"/>
  25.633 -            <arg value="-compilerTargetVM ${javac.target}"/>
  25.634 -            <arg value="-javaEncoding ${source.encoding}"/>
  25.635 -            <classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
  25.636 -        </java>
  25.637 -        <mkdir dir="${build.generated.dir}/classes"/>
  25.638 -        <webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
  25.639 -            <customize>
  25.640 -                <patternset includes="${javac.jsp.includes}"/>
  25.641 -            </customize>
  25.642 -        </webproject2:javac>
  25.643 -    </target>
  25.644 -    <target name="compile-single-jsp">
  25.645 -        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
  25.646 -        <antcall target="-do-compile-single-jsp"/>
  25.647 -    </target>
  25.648 -    <!--
  25.649 -                DIST BUILDING SECTION
  25.650 -            -->
  25.651 -    <target name="-pre-dist">
  25.652 -        <!-- Empty placeholder for easier customization. -->
  25.653 -        <!-- You can override this target in the ../build.xml file. -->
  25.654 -    </target>
  25.655 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
  25.656 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  25.657 -        <mkdir dir="${dist.jar.dir}"/>
  25.658 -        <jar compress="${jar.compress}" jarfile="${dist.war}">
  25.659 -            <fileset dir="${build.web.dir}"/>
  25.660 -        </jar>
  25.661 -    </target>
  25.662 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
  25.663 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  25.664 -        <mkdir dir="${dist.jar.dir}"/>
  25.665 -        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
  25.666 -            <fileset dir="${build.web.dir}"/>
  25.667 -        </jar>
  25.668 -    </target>
  25.669 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
  25.670 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  25.671 -        <mkdir dir="${dist.jar.dir}"/>
  25.672 -        <jar compress="${jar.compress}" jarfile="${dist.war}">
  25.673 -            <fileset dir="${build.web.dir}"/>
  25.674 -        </jar>
  25.675 -    </target>
  25.676 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
  25.677 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  25.678 -        <mkdir dir="${dist.jar.dir}"/>
  25.679 -        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
  25.680 -            <fileset dir="${build.web.dir}"/>
  25.681 -        </jar>
  25.682 -    </target>
  25.683 -    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
  25.684 -    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
  25.685 -        <copyfiles files="${reference.nekurak_net-lib.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
  25.686 -        <mkdir dir="${build.web.dir}/META-INF"/>
  25.687 -        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
  25.688 -    </target>
  25.689 -    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
  25.690 -        <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
  25.691 -    </target>
  25.692 -    <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
  25.693 -        <delete dir="${build.web.dir}/WEB-INF/lib"/>
  25.694 -    </target>
  25.695 -    <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
  25.696 -        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
  25.697 -        <mkdir dir="${dist.jar.dir}"/>
  25.698 -        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
  25.699 -            <fileset dir="${build.web.dir}"/>
  25.700 -        </jar>
  25.701 -    </target>
  25.702 -    <target name="-post-dist">
  25.703 -        <!-- Empty placeholder for easier customization. -->
  25.704 -        <!-- You can override this target in the ../build.xml file. -->
  25.705 -    </target>
  25.706 -    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
  25.707 -    <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"/>
  25.708 -    <!--
  25.709 -                EXECUTION SECTION
  25.710 -            -->
  25.711 -    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
  25.712 -    <target name="-pre-run-deploy">
  25.713 -        <!-- Empty placeholder for easier customization. -->
  25.714 -        <!-- You can override this target in the ../build.xml file. -->
  25.715 -    </target>
  25.716 -    <target name="-post-run-deploy">
  25.717 -        <!-- Empty placeholder for easier customization. -->
  25.718 -        <!-- You can override this target in the ../build.xml file. -->
  25.719 -    </target>
  25.720 -    <target name="-pre-nbmodule-run-deploy">
  25.721 -        <!-- Empty placeholder for easier customization. -->
  25.722 -        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
  25.723 -    </target>
  25.724 -    <target name="-post-nbmodule-run-deploy">
  25.725 -        <!-- Empty placeholder for easier customization. -->
  25.726 -        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
  25.727 -    </target>
  25.728 -    <target name="-run-deploy-am">
  25.729 -        <!-- Task to deploy to the Access Manager runtime. -->
  25.730 -    </target>
  25.731 -    <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">
  25.732 -        <nbjpdaappreloaded/>
  25.733 -    </target>
  25.734 -    <target if="netbeans.home" name="-run-deploy-nb">
  25.735 -        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
  25.736 -    </target>
  25.737 -    <target name="-init-deploy-ant" unless="netbeans.home">
  25.738 -        <property name="deploy.ant.archive" value="${dist.war}"/>
  25.739 -        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
  25.740 -        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
  25.741 -        <property name="deploy.ant.enabled" value="true"/>
  25.742 -    </target>
  25.743 -    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
  25.744 -    <target if="netbeans.home" name="-run-undeploy-nb">
  25.745 -        <fail message="Undeploy is not supported from within the IDE"/>
  25.746 -    </target>
  25.747 -    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
  25.748 -        <nbverify file="${dist.war}"/>
  25.749 -    </target>
  25.750 -    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
  25.751 -    <target if="do.display.browser" name="-init-display-browser">
  25.752 -        <condition property="do.display.browser.nb">
  25.753 -            <isset property="netbeans.home"/>
  25.754 -        </condition>
  25.755 -        <condition property="do.display.browser.cl">
  25.756 -            <isset property="deploy.ant.enabled"/>
  25.757 -        </condition>
  25.758 -    </target>
  25.759 -    <target if="do.display.browser.nb" name="-display-browser-nb">
  25.760 -        <nbbrowse url="${client.url}"/>
  25.761 -    </target>
  25.762 -    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
  25.763 -        <condition property="browser" value="rundll32">
  25.764 -            <os family="windows"/>
  25.765 -        </condition>
  25.766 -        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
  25.767 -            <os family="windows"/>
  25.768 -        </condition>
  25.769 -        <condition property="browser" value="/usr/bin/open">
  25.770 -            <os family="mac"/>
  25.771 -        </condition>
  25.772 -        <property environment="env"/>
  25.773 -        <condition property="browser" value="${env.BROWSER}">
  25.774 -            <isset property="env.BROWSER"/>
  25.775 -        </condition>
  25.776 -        <condition property="browser" value="/usr/bin/firefox">
  25.777 -            <available file="/usr/bin/firefox"/>
  25.778 -        </condition>
  25.779 -        <condition property="browser" value="/usr/local/firefox/firefox">
  25.780 -            <available file="/usr/local/firefox/firefox"/>
  25.781 -        </condition>
  25.782 -        <condition property="browser" value="/usr/bin/mozilla">
  25.783 -            <available file="/usr/bin/mozilla"/>
  25.784 -        </condition>
  25.785 -        <condition property="browser" value="/usr/local/mozilla/mozilla">
  25.786 -            <available file="/usr/local/mozilla/mozilla"/>
  25.787 -        </condition>
  25.788 -        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
  25.789 -            <available file="/usr/sfw/lib/firefox/firefox"/>
  25.790 -        </condition>
  25.791 -        <condition property="browser" value="/opt/csw/bin/firefox">
  25.792 -            <available file="/opt/csw/bin/firefox"/>
  25.793 -        </condition>
  25.794 -        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
  25.795 -            <available file="/usr/sfw/lib/mozilla/mozilla"/>
  25.796 -        </condition>
  25.797 -        <condition property="browser" value="/opt/csw/bin/mozilla">
  25.798 -            <available file="/opt/csw/bin/mozilla"/>
  25.799 -        </condition>
  25.800 -    </target>
  25.801 -    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
  25.802 -        <fail unless="browser">
  25.803 -                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
  25.804 -                </fail>
  25.805 -        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
  25.806 -        <echo>Launching ${browse.url}</echo>
  25.807 -        <exec executable="${browser}" spawn="true">
  25.808 -            <arg line="${browser.args} ${browse.url}"/>
  25.809 -        </exec>
  25.810 -    </target>
  25.811 -    <target depends="init,-init-cos,compile-single" name="run-main">
  25.812 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  25.813 -        <webproject1:java classname="${run.class}"/>
  25.814 -    </target>
  25.815 -    <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
  25.816 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  25.817 -        <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  25.818 -    </target>
  25.819 -    <!--
  25.820 -                DEBUGGING SECTION
  25.821 -            -->
  25.822 -    <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">
  25.823 -        <nbstartserver debugmode="true"/>
  25.824 -        <antcall target="connect-debugger"/>
  25.825 -        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
  25.826 -        <antcall target="debug-display-browser"/>
  25.827 -        <antcall target="connect-client-debugger"/>
  25.828 -    </target>
  25.829 -    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
  25.830 -        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
  25.831 -            <classpath>
  25.832 -                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
  25.833 -            </classpath>
  25.834 -            <sourcepath>
  25.835 -                <path path="${web.docbase.dir}"/>
  25.836 -            </sourcepath>
  25.837 -        </nbjpdaconnect>
  25.838 -    </target>
  25.839 -    <target if="do.display.browser.debug" name="debug-display-browser">
  25.840 -        <nbbrowse url="${client.url}"/>
  25.841 -    </target>
  25.842 -    <target if="do.debug.client" name="connect-client-debugger">
  25.843 -        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
  25.844 -    </target>
  25.845 -    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  25.846 -        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  25.847 -        <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  25.848 -    </target>
  25.849 -    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  25.850 -    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
  25.851 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  25.852 -        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  25.853 -    </target>
  25.854 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  25.855 -        <webproject1:nbjpdastart name="${debug.class}"/>
  25.856 -    </target>
  25.857 -    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  25.858 -        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  25.859 -        <webproject1:debug classname="${debug.class}"/>
  25.860 -    </target>
  25.861 -    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
  25.862 -    <target depends="init" name="-pre-debug-fix">
  25.863 -        <fail unless="fix.includes">Must set fix.includes</fail>
  25.864 -        <property name="javac.includes" value="${fix.includes}.java"/>
  25.865 -    </target>
  25.866 -    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  25.867 -        <webproject1:nbjpdareload/>
  25.868 -    </target>
  25.869 -    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  25.870 -    <!--
  25.871 -            =================
  25.872 -            PROFILING SECTION
  25.873 -            =================
  25.874 -            -->
  25.875 -    <target description="Profile a J2EE project in the IDE." name="profile">
  25.876 -        <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
  25.877 -            <isset property="profiler.info.jvmargs.extra"/>
  25.878 -        </condition>
  25.879 -        <antcall target="${profiler.startserver.target}"/>
  25.880 -        <antcall target="run"/>
  25.881 -        <antcall target="start-loadgen"/>
  25.882 -    </target>
  25.883 -    <target name="start-profiled-server">
  25.884 -        <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
  25.885 -            <jvmarg value="${profiler.info.jvmargs.agent}"/>
  25.886 -            <jvmarg value="${profiler.j2ee.agentID}"/>
  25.887 -        </nbstartprofiledserver>
  25.888 -    </target>
  25.889 -    <target name="start-profiled-server-extraargs">
  25.890 -        <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
  25.891 -            <jvmarg value="${profiler.info.jvmargs.extra}"/>
  25.892 -            <jvmarg value="${profiler.info.jvmargs.agent}"/>
  25.893 -            <jvmarg value="${profiler.j2ee.agentID}"/>
  25.894 -        </nbstartprofiledserver>
  25.895 -    </target>
  25.896 -    <target if="profiler.loadgen.path" name="start-loadgen">
  25.897 -        <loadgenstart path="${profiler.loadgen.path}"/>
  25.898 -    </target>
  25.899 -    <!--
  25.900 -                JAVADOC SECTION
  25.901 -            -->
  25.902 -    <target depends="init" if="have.sources" name="javadoc-build">
  25.903 -        <mkdir dir="${dist.javadoc.dir}"/>
  25.904 -        <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}">
  25.905 -            <classpath>
  25.906 -                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
  25.907 -            </classpath>
  25.908 -            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  25.909 -                <filename name="**/*.java"/>
  25.910 -            </fileset>
  25.911 -            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  25.912 -                <include name="**/*.java"/>
  25.913 -            </fileset>
  25.914 -        </javadoc>
  25.915 -        <copy todir="${dist.javadoc.dir}">
  25.916 -            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  25.917 -                <filename name="**/doc-files/**"/>
  25.918 -            </fileset>
  25.919 -            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  25.920 -                <include name="**/doc-files/**"/>
  25.921 -            </fileset>
  25.922 -        </copy>
  25.923 -    </target>
  25.924 -    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
  25.925 -        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  25.926 -    </target>
  25.927 -    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
  25.928 -    <!--
  25.929 -                
  25.930 -                JUNIT COMPILATION SECTION
  25.931 -            -->
  25.932 -    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  25.933 -        <mkdir dir="${build.test.classes.dir}"/>
  25.934 -        <property name="j2ee.platform.embeddableejb.classpath" value=""/>
  25.935 -    </target>
  25.936 -    <target name="-pre-compile-test">
  25.937 -        <!-- Empty placeholder for easier customization. -->
  25.938 -        <!-- You can override this target in the ../build.xml file. -->
  25.939 -    </target>
  25.940 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
  25.941 -        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  25.942 -        <copy todir="${build.test.classes.dir}">
  25.943 -            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  25.944 -        </copy>
  25.945 -    </target>
  25.946 -    <target name="-post-compile-test">
  25.947 -        <!-- Empty placeholder for easier customization. -->
  25.948 -        <!-- You can override this target in the ../build.xml file. -->
  25.949 -    </target>
  25.950 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  25.951 -    <target name="-pre-compile-test-single">
  25.952 -        <!-- Empty placeholder for easier customization. -->
  25.953 -        <!-- You can override this target in the ../build.xml file. -->
  25.954 -    </target>
  25.955 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  25.956 -        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  25.957 -        <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}"/>
  25.958 -        <copy todir="${build.test.classes.dir}">
  25.959 -            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  25.960 -        </copy>
  25.961 -    </target>
  25.962 -    <target name="-post-compile-test-single">
  25.963 -        <!-- Empty placeholder for easier customization. -->
  25.964 -        <!-- You can override this target in the ../build.xml file. -->
  25.965 -    </target>
  25.966 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  25.967 -    <!--
  25.968 -                
  25.969 -                JUNIT EXECUTION SECTION
  25.970 -            -->
  25.971 -    <target depends="init" if="have.tests" name="-pre-test-run">
  25.972 -        <mkdir dir="${build.test.results.dir}"/>
  25.973 -    </target>
  25.974 -    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  25.975 -        <webproject2:junit testincludes="**/*Test.java"/>
  25.976 -    </target>
  25.977 -    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  25.978 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  25.979 -    </target>
  25.980 -    <target depends="init" if="have.tests" name="test-report"/>
  25.981 -    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  25.982 -    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  25.983 -    <target depends="init" if="have.tests" name="-pre-test-run-single">
  25.984 -        <mkdir dir="${build.test.results.dir}"/>
  25.985 -    </target>
  25.986 -    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  25.987 -        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  25.988 -        <webproject2:junit excludes="" includes="${test.includes}"/>
  25.989 -    </target>
  25.990 -    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  25.991 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  25.992 -    </target>
  25.993 -    <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"/>
  25.994 -    <!--
  25.995 -                
  25.996 -                JUNIT DEBUGGING SECTION
  25.997 -            -->
  25.998 -    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
  25.999 -        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
 25.1000 -        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
 25.1001 -        <delete file="${test.report.file}"/>
 25.1002 -        <!-- must exist, otherwise the XML formatter would fail -->
 25.1003 -        <mkdir dir="${build.test.results.dir}"/>
 25.1004 -        <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}">
 25.1005 -            <customize>
 25.1006 -                <arg value="showoutput=true"/>
 25.1007 -                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
 25.1008 -                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
 25.1009 -            </customize>
 25.1010 -        </webproject1:debug>
 25.1011 -    </target>
 25.1012 -    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
 25.1013 -        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
 25.1014 -    </target>
 25.1015 -    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
 25.1016 -    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
 25.1017 -        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
 25.1018 -    </target>
 25.1019 -    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
 25.1020 -    <!--
 25.1021 -        =========================
 25.1022 -        TESTS PROFILING  SECTION
 25.1023 -        =========================
 25.1024 -        -->
 25.1025 -    <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
 25.1026 -        <nbprofiledirect>
 25.1027 -            <classpath>
 25.1028 -                <path path="${run.test.classpath}"/>
 25.1029 -                <path path="${j2ee.platform.classpath}"/>
 25.1030 -            </classpath>
 25.1031 -        </nbprofiledirect>
 25.1032 -        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
 25.1033 -            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
 25.1034 -            <jvmarg value="${profiler.info.jvmargs.agent}"/>
 25.1035 -            <jvmarg line="${profiler.info.jvmargs}"/>
 25.1036 -            <test name="${profile.class}"/>
 25.1037 -            <classpath>
 25.1038 -                <path path="${run.test.classpath}"/>
 25.1039 -                <path path="${j2ee.platform.classpath}"/>
 25.1040 -            </classpath>
 25.1041 -            <syspropertyset>
 25.1042 -                <propertyref prefix="test-sys-prop."/>
 25.1043 -                <mapper from="test-sys-prop.*" to="*" type="glob"/>
 25.1044 -            </syspropertyset>
 25.1045 -            <formatter type="brief" usefile="false"/>
 25.1046 -            <formatter type="xml"/>
 25.1047 -        </junit>
 25.1048 -    </target>
 25.1049 -    <!--
 25.1050 -                
 25.1051 -                CLEANUP SECTION
 25.1052 -            -->
 25.1053 -    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
 25.1054 -        <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
 25.1055 -    </target>
 25.1056 -    <target depends="init" name="do-clean">
 25.1057 -        <condition property="build.dir.to.clean" value="${build.web.dir}">
 25.1058 -            <isset property="dist.ear.dir"/>
 25.1059 -        </condition>
 25.1060 -        <property name="build.dir.to.clean" value="${build.web.dir}"/>
 25.1061 -        <delete includeEmptyDirs="true" quiet="true">
 25.1062 -            <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
 25.1063 -        </delete>
 25.1064 -        <delete dir="${build.dir}"/>
 25.1065 -        <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
 25.1066 -        <delete dir="${dist.dir}"/>
 25.1067 -    </target>
 25.1068 -    <target depends="do-clean" if="status.clean-failed" name="check-clean">
 25.1069 -        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
 25.1070 -        <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
 25.1071 -    </target>
 25.1072 -    <target depends="init" if="netbeans.home" name="undeploy-clean">
 25.1073 -        <nbundeploy failOnError="false" startServer="false"/>
 25.1074 -    </target>
 25.1075 -    <target name="-post-clean">
 25.1076 -        <!-- Empty placeholder for easier customization. -->
 25.1077 -        <!-- You can override this target in the ../build.xml file. -->
 25.1078 -    </target>
 25.1079 -    <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
 25.1080 -    <target depends="clean" description="Clean build products." name="clean-ear"/>
 25.1081 -</project>
    26.1 --- a/java/nekurak.net-rest/nbproject/genfiles.properties	Tue Jul 19 15:20:47 2011 +0200
    26.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.3 @@ -1,11 +0,0 @@
    26.4 -build.xml.data.CRC32=35b9fabc
    26.5 -build.xml.script.CRC32=fb1b7f84
    26.6 -build.xml.stylesheet.CRC32=651128d4@1.31.2.1
    26.7 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
    26.8 -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    26.9 -nbproject/build-impl.xml.data.CRC32=35b9fabc
   26.10 -nbproject/build-impl.xml.script.CRC32=1ed11878
   26.11 -nbproject/build-impl.xml.stylesheet.CRC32=8ca9f0e6@1.31.2.1
   26.12 -nbproject/rest-build.xml.data.CRC32=d32e8880
   26.13 -nbproject/rest-build.xml.script.CRC32=23da2c77
   26.14 -nbproject/rest-build.xml.stylesheet.CRC32=ddd64843@1.4.1
    27.1 --- a/java/nekurak.net-rest/nbproject/project.properties	Tue Jul 19 15:20:47 2011 +0200
    27.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.3 @@ -1,91 +0,0 @@
    27.4 -annotation.processing.enabled=true
    27.5 -annotation.processing.enabled.in.editor=true
    27.6 -annotation.processing.run.all.processors=true
    27.7 -annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
    27.8 -build.classes.dir=${build.web.dir}/WEB-INF/classes
    27.9 -build.classes.excludes=**/*.java,**/*.form
   27.10 -build.dir=build
   27.11 -build.generated.dir=${build.dir}/generated
   27.12 -build.generated.sources.dir=${build.dir}/generated-sources
   27.13 -build.test.classes.dir=${build.dir}/test/classes
   27.14 -build.test.results.dir=${build.dir}/test/results
   27.15 -build.web.dir=${build.dir}/web
   27.16 -build.web.excludes=${build.classes.excludes}
   27.17 -client.urlPart=
   27.18 -compile.jsps=false
   27.19 -conf.dir=${source.root}/conf
   27.20 -debug.classpath=${build.classes.dir}:${javac.classpath}
   27.21 -debug.test.classpath=\
   27.22 -    ${run.test.classpath}
   27.23 -display.browser=true
   27.24 -dist.dir=dist
   27.25 -dist.ear.war=${dist.dir}/${war.ear.name}
   27.26 -dist.javadoc.dir=${dist.dir}/javadoc
   27.27 -dist.war=${dist.dir}/${war.name}
   27.28 -endorsed.classpath=\
   27.29 -    ${libs.javaee-endorsed-api-6.0.classpath}
   27.30 -excludes=
   27.31 -includes=**
   27.32 -j2ee.compile.on.save=false
   27.33 -j2ee.deploy.on.save=false
   27.34 -j2ee.platform=1.6-web
   27.35 -j2ee.platform.classpath=${j2ee.server.home}/modules/endorsed/javax.annotation.jar:${j2ee.server.home}/modules/javax.transaction.jar:${j2ee.server.home}/modules/jsf-api.jar:${j2ee.server.home}/modules/jsf-impl.jar:${j2ee.server.home}/modules/jaxrpc-api-osgi.jar:${j2ee.server.home}/modules/javax.enterprise.deploy.jar:${j2ee.server.home}/modules/javax.resource.jar:${j2ee.server.home}/modules/jstl-impl.jar:${j2ee.server.home}/modules/jersey-core.jar:${j2ee.server.home}/modules/javax.security.auth.message.jar:${j2ee.server.home}/modules/javax.servlet.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.ejb.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/javax.management.j2ee.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.jms.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/javax.security.jacc.jar:${j2ee.server.home}/modules/javax.persistence.jar
   27.36 -j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar
   27.37 -j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar
   27.38 -j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/javax.ejb.jar
   27.39 -j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/javax.ejb.jar
   27.40 -j2ee.platform.wsit.classpath=
   27.41 -j2ee.server.type=gfv3ee6
   27.42 -jar.compress=false
   27.43 -javac.classpath=\
   27.44 -    ${reference.nekurak_net-lib.jar}
   27.45 -# Space-separated list of extra javac options
   27.46 -javac.compilerargs=
   27.47 -javac.debug=true
   27.48 -javac.deprecation=false
   27.49 -javac.processorpath=\
   27.50 -    ${javac.classpath}
   27.51 -javac.source=1.6
   27.52 -javac.target=1.6
   27.53 -javac.test.classpath=\
   27.54 -    ${javac.classpath}:\
   27.55 -    ${build.classes.dir}:\
   27.56 -    ${libs.junit.classpath}:\
   27.57 -    ${libs.junit_4.classpath}
   27.58 -javac.test.processorpath=${javac.test.classpath}
   27.59 -javadoc.additionalparam=
   27.60 -javadoc.author=false
   27.61 -javadoc.encoding=${source.encoding}
   27.62 -javadoc.noindex=false
   27.63 -javadoc.nonavbar=false
   27.64 -javadoc.notree=false
   27.65 -javadoc.preview=true
   27.66 -javadoc.private=false
   27.67 -javadoc.splitindex=true
   27.68 -javadoc.use=true
   27.69 -javadoc.version=false
   27.70 -javadoc.windowtitle=
   27.71 -jspcompilation.classpath=${jspc.classpath}:${javac.classpath}
   27.72 -lib.dir=${web.docbase.dir}/WEB-INF/lib
   27.73 -persistence.xml.dir=${conf.dir}
   27.74 -platform.active=default_platform
   27.75 -project.nekurak_net-lib=../nekurak.net-lib
   27.76 -reference.nekurak_net-lib.jar=${project.nekurak_net-lib}/dist/nekurak.net-lib.jar
   27.77 -resource.dir=setup
   27.78 -rest.config.type=dd
   27.79 -rest.support.on=true
   27.80 -run.test.classpath=\
   27.81 -    ${javac.test.classpath}:\
   27.82 -    ${build.test.classes.dir}
   27.83 -# Space-separated list of JVM arguments used when running a class with a main method or a unit test
   27.84 -# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
   27.85 -runmain.jvmargs=
   27.86 -source.encoding=UTF-8
   27.87 -source.root=src
   27.88 -src.dir=${source.root}/java
   27.89 -test.src.dir=test
   27.90 -war.content.additional=
   27.91 -war.ear.name=nekurak.net-rest.war
   27.92 -war.name=nekurak.net-rest.war
   27.93 -web.docbase.dir=web
   27.94 -webinf.dir=web/WEB-INF
    28.1 --- a/java/nekurak.net-rest/nbproject/project.xml	Tue Jul 19 15:20:47 2011 +0200
    28.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.3 @@ -1,38 +0,0 @@
    28.4 -<?xml version="1.0" encoding="UTF-8"?>
    28.5 -<project xmlns="http://www.netbeans.org/ns/project/1">
    28.6 -    <type>org.netbeans.modules.web.project</type>
    28.7 -    <configuration>
    28.8 -        <buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1">
    28.9 -            <extension file="rest-build.xml" id="rest.4">
   28.10 -                <dependency dependsOn="generate-rest-config" target="-pre-pre-compile"/>
   28.11 -            </extension>
   28.12 -        </buildExtensions>
   28.13 -        <data xmlns="http://www.netbeans.org/ns/web-project/3">
   28.14 -            <name>nekurak.net-rest</name>
   28.15 -            <minimum-ant-version>1.6.5</minimum-ant-version>
   28.16 -            <web-module-libraries>
   28.17 -                <library dirs="200">
   28.18 -                    <file>${reference.nekurak_net-lib.jar}</file>
   28.19 -                    <path-in-war>WEB-INF/lib</path-in-war>
   28.20 -                </library>
   28.21 -            </web-module-libraries>
   28.22 -            <web-module-additional-libraries/>
   28.23 -            <source-roots>
   28.24 -                <root id="src.dir"/>
   28.25 -            </source-roots>
   28.26 -            <test-roots>
   28.27 -                <root id="test.src.dir"/>
   28.28 -            </test-roots>
   28.29 -        </data>
   28.30 -        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
   28.31 -            <reference>
   28.32 -                <foreign-project>nekurak_net-lib</foreign-project>
   28.33 -                <artifact-type>jar</artifact-type>
   28.34 -                <script>build.xml</script>
   28.35 -                <target>jar</target>
   28.36 -                <clean-target>clean</clean-target>
   28.37 -                <id>jar</id>
   28.38 -            </reference>
   28.39 -        </references>
   28.40 -    </configuration>
   28.41 -</project>
    29.1 --- a/java/nekurak.net-rest/nbproject/rest-build.xml	Tue Jul 19 15:20:47 2011 +0200
    29.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.3 @@ -1,60 +0,0 @@
    29.4 -<?xml version="1.0" encoding="UTF-8"?>
    29.5 -<!--
    29.6 -        *** GENERATED - DO NOT EDIT  ***
    29.7 -        -->
    29.8 -<project name="nekurak.net-rest-rest-build" basedir=".." xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:webproject1="http://www.netbeans.org/ns/web-project/1" xmlns:jaxrs="http://www.netbeans.org/ns/jax-rs/1">
    29.9 -    <target name="-check-trim">
   29.10 -        <condition property="do.trim">
   29.11 -            <and>
   29.12 -                <isset property="client.urlPart"/>
   29.13 -                <length string="${client.urlPart}" when="greater" length="0"/>
   29.14 -            </and>
   29.15 -        </condition>
   29.16 -    </target>
   29.17 -    <target name="-trim-url" if="do.trim">
   29.18 -        <pathconvert pathsep="/" property="rest.base.url">
   29.19 -            <propertyset>
   29.20 -                <propertyref name="client.url"/>
   29.21 -            </propertyset>
   29.22 -            <globmapper from="*${client.urlPart}" to="*/"/>
   29.23 -        </pathconvert>
   29.24 -    </target>
   29.25 -    <target name="-spare-url" unless="do.trim">
   29.26 -        <property name="rest.base.url" value="${client.url}"/>
   29.27 -    </target>
   29.28 -    <target name="test-restbeans" depends="run-deploy,-init-display-browser,-check-trim,-trim-url,-spare-url">
   29.29 -        <replace file="${restbeans.test.file}" token="${base.url.token}" value="${rest.base.url}||${rest.application.path}"/>
   29.30 -        <condition property="do.browse-url">
   29.31 -            <istrue value="${display.browser}"/>
   29.32 -        </condition>
   29.33 -        <antcall target="browse-url"/>
   29.34 -    </target>
   29.35 -    <target name="browse-url" if="do.browse-url">
   29.36 -        <nbbrowse url="${restbeans.test.url}"/>
   29.37 -    </target>
   29.38 -    <target name="check-rest-config-props" depends="-do-init">
   29.39 -        <condition property="do-generate-rest-config">
   29.40 -            <and>
   29.41 -                <equals arg1="${rest.config.type}" arg2="ide"/>
   29.42 -                <isset property="rest.resources.path"/>
   29.43 -            </and>
   29.44 -        </condition>
   29.45 -    </target>
   29.46 -    <target name="generate-rest-config" depends="check-rest-config-props" if="do-generate-rest-config">
   29.47 -        <mkdir dir="${build.generated.sources.dir}/rest/org/netbeans/rest/application/config/"/>
   29.48 -        <echo file="${build.generated.sources.dir}/rest/org/netbeans/rest/application/config/ApplicationConfig.java">/*
   29.49 - * To change this template, choose Tools | Templates
   29.50 - * and open the template in the editor.
   29.51 - */
   29.52 -
   29.53 -package org.netbeans.rest.application.config;
   29.54 -/**
   29.55 - * This class is generated by the Netbeans IDE,
   29.56 - * and registers all REST root resources created in the project.
   29.57 - * Please, DO NOT EDIT this class !
   29.58 - */
   29.59 -@javax.ws.rs.ApplicationPath("${rest.resources.path}")
   29.60 -public class ApplicationConfig extends javax.ws.rs.core.Application {
   29.61 -}</echo>
   29.62 -    </target>
   29.63 -</project>
    30.1 --- a/java/nekurak.net-rest/src/conf/MANIFEST.MF	Tue Jul 19 15:20:47 2011 +0200
    30.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    30.3 @@ -1,2 +0,0 @@
    30.4 -Manifest-Version: 1.0
    30.5 -
    31.1 --- a/java/nekurak.net-rest/src/java/cz/frantovo/nekurak/rest/ClankyREST.java	Tue Jul 19 15:20:47 2011 +0200
    31.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    31.3 @@ -1,77 +0,0 @@
    31.4 -package cz.frantovo.nekurak.rest;
    31.5 -
    31.6 -import cz.frantovo.nekurak.dto.Clanek;
    31.7 -import cz.frantovo.nekurak.web.HledacSluzby;
    31.8 -import cz.frantovo.nekurak.xml.ClanekXML;
    31.9 -import java.util.ArrayList;
   31.10 -import java.util.Collection;
   31.11 -import javax.ws.rs.Consumes;
   31.12 -import javax.ws.rs.DELETE;
   31.13 -import javax.ws.rs.GET;
   31.14 -import javax.ws.rs.POST;
   31.15 -import javax.ws.rs.PUT;
   31.16 -import javax.ws.rs.Path;
   31.17 -import javax.ws.rs.PathParam;
   31.18 -import javax.ws.rs.Produces;
   31.19 -
   31.20 -@Path("clanek")
   31.21 -public class ClankyREST {
   31.22 -
   31.23 -	private static final String MIME_XML = "text/xml";
   31.24 -	private static final String MIME_TEXT = "text/plain";
   31.25 -	private HledacSluzby hledac = new HledacSluzby();
   31.26 -
   31.27 -	/** Vypíšeme seznam všech článků v systému */
   31.28 -	@GET
   31.29 -	@Path("/")
   31.30 -	@Produces(MIME_XML)
   31.31 -	public Collection<ClanekXML> seznam() {
   31.32 -		Collection<ClanekXML> vysledek = new ArrayList<ClanekXML>();
   31.33 -		Collection<Clanek> clanky = hledac.getClanekEJB().getClanky();
   31.34 -
   31.35 -		for (Clanek c : clanky) {
   31.36 -			vysledek.add(new ClanekXML(c));
   31.37 -		}
   31.38 -
   31.39 -		return vysledek;
   31.40 -	}
   31.41 -
   31.42 -	/** Získáme konkrétní článek */
   31.43 -	@GET
   31.44 -	@Path("/{id}")
   31.45 -	@Produces(MIME_XML)
   31.46 -	public ClanekXML ziskej(@PathParam("id") int id) {
   31.47 -		Clanek c = hledac.getClanekEJB().getClanek(id);
   31.48 -		return new ClanekXML(c);
   31.49 -	}
   31.50 -
   31.51 -	/**
   31.52 -	 * Vložíme nový článek
   31.53 -	 * @return ID založeného článku (návratový typ musí být String – ne int)
   31.54 -	 */
   31.55 -	@POST
   31.56 -	@Consumes(MIME_XML)
   31.57 -	@Produces(MIME_TEXT)
   31.58 -	public String zaloz(ClanekXML xml) {
   31.59 -		int id = hledac.getClanekEJB().zalozClanek(xml.getClanek());
   31.60 -		return id + "\n";
   31.61 -	}
   31.62 -
   31.63 -	/** Aktualizujeme článek */
   31.64 -	@PUT
   31.65 -	@Consumes(MIME_XML)
   31.66 -	@Path("/{id}")
   31.67 -	public void uprav(@PathParam("id") int id, ClanekXML xml) {
   31.68 -		xml.setId(id);
   31.69 -		hledac.getClanekEJB().upravClanek(xml.getClanek());
   31.70 -	}
   31.71 -
   31.72 -	/** Smažeme článek */
   31.73 -	@DELETE
   31.74 -	@Path("/{id}")
   31.75 -	public void smaz(@PathParam("id") int id) {
   31.76 -		Clanek c = new Clanek();
   31.77 -		c.setId(id);
   31.78 -		hledac.getClanekEJB().smazClanek(c);
   31.79 -	}
   31.80 -}
    32.1 --- a/java/nekurak.net-rest/web/WEB-INF/beans.xml	Tue Jul 19 15:20:47 2011 +0200
    32.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.3 @@ -1,5 +0,0 @@
    32.4 -<?xml version="1.0" encoding="UTF-8"?>
    32.5 -<beans xmlns="http://java.sun.com/xml/ns/javaee"
    32.6 -       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    32.7 -       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
    32.8 -</beans>
    33.1 --- a/java/nekurak.net-rest/web/WEB-INF/sun-web.xml	Tue Jul 19 15:20:47 2011 +0200
    33.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    33.3 @@ -1,15 +0,0 @@
    33.4 -<?xml version="1.0" encoding="UTF-8"?>
    33.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">
    33.6 -<sun-web-app error-url="">
    33.7 -	<context-root>/nekurak.net-rest</context-root>
    33.8 -	<class-loader delegate="true"/>
    33.9 -	<jsp-config>
   33.10 -		<property name="keepgenerated" value="true">
   33.11 -			<description>Keep a copy of the generated servlet class' java code.</description>
   33.12 -		</property>
   33.13 -	</jsp-config>
   33.14 -	<security-role-mapping>
   33.15 -		<role-name>redaktor</role-name>
   33.16 -		<group-name>redaktor</group-name>
   33.17 -	</security-role-mapping>
   33.18 -</sun-web-app>
    34.1 --- a/java/nekurak.net-rest/web/WEB-INF/web.xml	Tue Jul 19 15:20:47 2011 +0200
    34.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    34.3 @@ -1,38 +0,0 @@
    34.4 -<?xml version="1.0" encoding="UTF-8"?>
    34.5 -<web-app version="3.0" 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_3_0.xsd">
    34.6 -	<servlet>
    34.7 -		<servlet-name>REST</servlet-name>
    34.8 -		<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
    34.9 -		<load-on-startup>1</load-on-startup>
   34.10 -	</servlet>
   34.11 -	<servlet-mapping>
   34.12 -		<servlet-name>REST</servlet-name>
   34.13 -		<url-pattern>/*</url-pattern>
   34.14 -	</servlet-mapping>
   34.15 -	<session-config>
   34.16 -		<session-timeout>
   34.17 -		30
   34.18 -		</session-timeout>
   34.19 -	</session-config>
   34.20 -	<!--  <zabezpečení> -->
   34.21 -	<security-role>
   34.22 -		<role-name>redaktor</role-name>
   34.23 -	</security-role>
   34.24 -	<security-constraint>
   34.25 -		<web-resource-collection>
   34.26 -			<web-resource-name>Nekuřák.net REST API</web-resource-name>
   34.27 -			<url-pattern>/*</url-pattern>
   34.28 -			<http-method>PUT</http-method>
   34.29 -			<http-method>POST</http-method>
   34.30 -			<http-method>DELETE</http-method>
   34.31 -		</web-resource-collection>
   34.32 -		<auth-constraint>
   34.33 -			<role-name>redaktor</role-name>
   34.34 -		</auth-constraint>
   34.35 -	</security-constraint>
   34.36 -	<login-config>
   34.37 -		<auth-method>BASIC</auth-method>
   34.38 -		<realm-name>nekurakNET</realm-name>
   34.39 -	</login-config>
   34.40 -	<!--  </zabezpečení> -->
   34.41 -</web-app>
    35.1 --- a/java/nekurak.net-rest/web/index.jsp	Tue Jul 19 15:20:47 2011 +0200
    35.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    35.3 @@ -1,24 +0,0 @@
    35.4 -<?xml version="1.0" encoding="UTF-8"?>
    35.5 -<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    35.6 -		  xmlns:c="http://java.sun.com/jsp/jstl/core"
    35.7 -		  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
    35.8 -		  version="2.0">
    35.9 -	<jsp:directive.page contentType="application/xhtml+xml"/>
   35.10 -
   35.11 -	<jsp:output doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd"
   35.12 -				doctype-root-element="html"
   35.13 -				omit-xml-declaration="false"/>
   35.14 -
   35.15 -	<html xmlns="http://www.w3.org/1999/xhtml"
   35.16 -		  xmlns:svg="http://www.w3.org/2000/svg"
   35.17 -		  xmlns:xlink="http://www.w3.org/1999/xlink">
   35.18 -		<head>
   35.19 -			<title>REST</title>
   35.20 -		</head>
   35.21 -		<body>
   35.22 -			<h1>REST</h1>
   35.23 -			<p>REST API</p>
   35.24 -		</body>
   35.25 -	</html>
   35.26 -
   35.27 -</jsp:root>
    36.1 --- a/java/nekurak.net-web/build.xml	Tue Jul 19 15:20:47 2011 +0200
    36.2 +++ b/java/nekurak.net-web/build.xml	Tue Jul 19 15:22:15 2011 +0200
    36.3 @@ -78,7 +78,6 @@
    36.4        nekurak.net/.hg/**
    36.5        nekurak.net/.hgignore
    36.6        nekurak.net/.hgtags
    36.7 -      nekurak.net/java/nekurak.net-mvn/**
    36.8        nekurak.net/java/nekurak.net-ear/nbproject/private/**
    36.9        nekurak.net/java/nekurak.net-ear/dist/**
   36.10        nekurak.net/java/nekurak.net-ear/build/**
    37.1 --- a/java/nekurak.net-web/nbproject/project.properties	Tue Jul 19 15:20:47 2011 +0200
    37.2 +++ b/java/nekurak.net-web/nbproject/project.properties	Tue Jul 19 15:22:15 2011 +0200
    37.3 @@ -1,5 +1,6 @@
    37.4  annotation.processing.enabled=true
    37.5  annotation.processing.enabled.in.editor=true
    37.6 +annotation.processing.processors.list=
    37.7  annotation.processing.run.all.processors=true
    37.8  annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
    37.9  build.classes.dir=${build.web.dir}/WEB-INF/classes
    38.1 --- a/java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/chat/OdesilacZprav.java	Tue Jul 19 15:20:47 2011 +0200
    38.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    38.3 @@ -1,33 +0,0 @@
    38.4 -package cz.frantovo.nekurak.web.chat;
    38.5 -
    38.6 -import cz.frantovo.nekurak.vyjimky.NekurakVyjimka;
    38.7 -import cz.frantovo.nekurak.web.HledacSluzby;
    38.8 -
    38.9 -/**
   38.10 - *
   38.11 - * @author fiki
   38.12 - */
   38.13 -public class OdesilacZprav {
   38.14 -
   38.15 -	private HledacSluzby h = new HledacSluzby();
   38.16 -	private String od;
   38.17 -	private String zprava;
   38.18 -	private String mistnost;
   38.19 -
   38.20 -	public void setOd(String od) {
   38.21 -		this.od = od;
   38.22 -	}
   38.23 -
   38.24 -	public void setZprava(String zprava) {
   38.25 -		this.zprava = zprava;
   38.26 -	}
   38.27 -
   38.28 -	public void setMistnost(String mistnost) {
   38.29 -		this.mistnost = mistnost;
   38.30 -	}
   38.31 -
   38.32 -	public boolean isOdeslano() throws NekurakVyjimka {
   38.33 -		h.getChatEJB().posliZpravu(mistnost, od, zprava);
   38.34 -		return true;
   38.35 -	}
   38.36 -}
    39.1 --- a/java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/chat/VypisZprav.java	Tue Jul 19 15:20:47 2011 +0200
    39.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    39.3 @@ -1,29 +0,0 @@
    39.4 -package cz.frantovo.nekurak.web.chat;
    39.5 -
    39.6 -import cz.frantovo.nekurak.dto.ZpravaChatu;
    39.7 -import cz.frantovo.nekurak.vyjimky.NekurakVyjimka;
    39.8 -import cz.frantovo.nekurak.web.HledacSluzby;
    39.9 -import java.util.Collection;
   39.10 -
   39.11 -/**
   39.12 - *
   39.13 - * @author fiki
   39.14 - */
   39.15 -public class VypisZprav {
   39.16 -
   39.17 -	private HledacSluzby hledac = new HledacSluzby();
   39.18 -	private String mistnost;
   39.19 -	private int poradoveCislo;
   39.20 -
   39.21 -	public void setMistnost(String mistnost) {
   39.22 -		this.mistnost = mistnost;
   39.23 -	}
   39.24 -
   39.25 -	public void setPoradoveCislo(int poradoveCislo) {
   39.26 -		this.poradoveCislo = poradoveCislo;
   39.27 -	}
   39.28 -
   39.29 -	public Collection<ZpravaChatu> getZpravy() throws NekurakVyjimka {
   39.30 -		return hledac.getChatEJB().getZpravy(mistnost, poradoveCislo);
   39.31 -	}
   39.32 -}
    40.1 --- a/java/nekurak.net-web/web/WEB-INF/casti/chat.jsp	Tue Jul 19 15:20:47 2011 +0200
    40.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    40.3 @@ -1,67 +0,0 @@
    40.4 -<?xml version="1.0" encoding="UTF-8"?>
    40.5 -<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    40.6 -		  xmlns:c="http://java.sun.com/jsp/jstl/core"
    40.7 -		  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
    40.8 -		  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    40.9 -		  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
   40.10 -		  version="2.0">
   40.11 -
   40.12 -	<c:choose>
   40.13 -		<c:when test="${param.akceChat == 'odesli'}">
   40.14 -			<!-- TODO: servlet -->
   40.15 -			<jsp:useBean id="odesilac" class="cz.frantovo.nekurak.web.chat.OdesilacZprav" scope="request"/>
   40.16 -			<jsp:setProperty name="odesilac" property="mistnost" value="${param.mistnost}"/>
   40.17 -			<jsp:setProperty name="odesilac" property="od" value="${param.od}"/>
   40.18 -			<jsp:setProperty name="odesilac" property="zprava" value="${param.zprava}"/>
   40.19 -
   40.20 -			<c:if test="${odesilac.odeslano}">
   40.21 -				<p>Zpráva byla odeslána.</p>
   40.22 -			</c:if>
   40.23 -		</c:when>
   40.24 -		<c:when test="${param.akceChat == 'vypis'}">
   40.25 -			<!-- TODO: servlet + JSP -->
   40.26 -			<jsp:useBean id="vypis" class="cz.frantovo.nekurak.web.chat.VypisZprav" scope="request"/>
   40.27 -			<jsp:setProperty name="vypis" property="mistnost" value="${param.mistnost}"/>
   40.28 -			<jsp:setProperty name="vypis" property="poradoveCislo" value="${param.poradoveCislo}"/>
   40.29 -			<!-- Náš vlastní XML formát -->
   40.30 -			<zpravy>
   40.31 -				<c:forEach var="z" items="${vypis.zpravy}">
   40.32 -					<zprava>
   40.33 -						<poradoveCislo><c:out value="${z.poradoveCislo}"/></poradoveCislo>
   40.34 -						<od><c:out value="${z.od}"/></od>
   40.35 -						<text><c:out value="${z.text}"/></text>
   40.36 -						<kdy><fmt:formatDate value="${z.kdy}" pattern="yyyy-MM-dd HH:mm:ss"/></kdy>
   40.37 -						<overeny><c:out value="${z.overenyUzivatel}"/></overeny>
   40.38 -					</zprava>
   40.39 -				</c:forEach>
   40.40 -			</zpravy>
   40.41 -		</c:when>
   40.42 -		<c:otherwise>
   40.43 -			<fmt:message key="chat.nadpis" var="titulekStranky"/>
   40.44 -			<nk:stranka titulek="${titulekStranky}">
   40.45 -
   40.46 -				<h1><c:out value="${titulekStranky}"/></h1>
   40.47 -				<script type="text/javascript" src="js/chat.js"></script>
   40.48 -
   40.49 -				<div id="chat">
   40.50 -					<form action="javascript:ajaxOdesli();" id="odesilaciFormular">
   40.51 -						<fieldset>
   40.52 -							<!-- TODO: jméno místnosti konfigurovat na jednom místě -->
   40.53 -							<input type="hidden" name="mistnost" value="nekurak@konference.frantovo.cz"/>
   40.54 -							<fmt:message key="chat.anonym" var="chatAnonym"/>
   40.55 -							<input title="vaše přezdívka" type="text" name="od" class="chatOd" value="${chatAnonym}"/>
   40.56 -							<input title="text zprávy" type="text" name="text" class="chatText" value="…"/>
   40.57 -							<button type="submit" class="chatOdeslat"><fmt:message key="chat.tlacitkoOdeslat"/></button>
   40.58 -						</fieldset>
   40.59 -					</form>
   40.60 -					<div id="vypisZprav">…</div>
   40.61 -				</div>
   40.62 -
   40.63 -				<script type="text/javascript">
   40.64 -					spustCasovac();
   40.65 -				</script>
   40.66 -			</nk:stranka>
   40.67 -		</c:otherwise>
   40.68 -	</c:choose>
   40.69 -
   40.70 -</jsp:root>
    41.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    41.2 +++ b/java/nekurak.net-web/web/WEB-INF/casti/odhlášení-dokončeno.jsp	Tue Jul 19 15:22:15 2011 +0200
    41.3 @@ -0,0 +1,14 @@
    41.4 +<?xml version="1.0" encoding="UTF-8"?>
    41.5 +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    41.6 +		  xmlns:c="http://java.sun.com/jsp/jstl/core"
    41.7 +		  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
    41.8 +		  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    41.9 +		  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
   41.10 +		  version="2.0">
   41.11 +
   41.12 +	<fmt:message key="prihlaseni.nadpis.odhlaseni" var="titulekStranky"/>
   41.13 +	<nk:stranka titulek="${titulekStranky}">
   41.14 +		<p><fmt:message key="prihlaseni.odhlaseniUspesne"/></p>
   41.15 +	</nk:stranka>
   41.16 +
   41.17 +</jsp:root>
    42.1 --- a/java/nekurak.net-web/web/WEB-INF/tags/nekurak/stranka.tag	Tue Jul 19 15:20:47 2011 +0200
    42.2 +++ b/java/nekurak.net-web/web/WEB-INF/tags/nekurak/stranka.tag	Tue Jul 19 15:22:15 2011 +0200
    42.3 @@ -60,19 +60,15 @@
    42.4  
    42.5  				<ul id="nabidka">
    42.6  					<li><a href="${zc}"><fmt:message key="uvod"/></a></li>
    42.7 -					<!-- TODO: použít Jabberot, dočasně vypnuté
    42.8 -					<li><a href="?akce=chat"><fmt:message key="chat.nadpis"/></a></li>
    42.9 -					-->
   42.10 -
   42.11  					<c:choose>
   42.12  						<c:when test="${prihlasenyUzivatel == null}">
   42.13 -							<li><a href="${zc}?akce=prihlaseni"><fmt:message key="prihlasitSe"/></a></li>
   42.14 +							<li><a href="${zc}prihlaseni"><fmt:message key="prihlasitSe"/></a></li>
   42.15  							<li><a href="${zc}?akce=registrovatUzivatele"><fmt:message key="registrovatSe"/></a></li>
   42.16  						</c:when>
   42.17  						<c:otherwise>
   42.18  							<li><a href="${zc}?akce=pridatPodnik"><fmt:message key="pridatPodnik"/></a></li>
   42.19  							<li id="prihlasenyUzivatel"><fmt:message key="prihlasenyUzivatel"/>: ${prihlasenyUzivatel}</li>
   42.20 -							<li><a href="${zc}?akce=prihlaseni&amp;amp;odhlasit=ano"><fmt:message key="odhlasitSe"/></a></li>
   42.21 +							<li><a href="${zc}odhlaseni"><fmt:message key="odhlasitSe"/></a></li>
   42.22  						</c:otherwise>
   42.23  					</c:choose>
   42.24  
    43.1 --- a/java/nekurak.net-web/web/sprava/index.jsp	Tue Jul 19 15:20:47 2011 +0200
    43.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    43.3 @@ -1,31 +0,0 @@
    43.4 -<?xml version="1.0" encoding="UTF-8"?>
    43.5 -<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    43.6 -	  xmlns:c="http://java.sun.com/jsp/jstl/core"
    43.7 -	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
    43.8 -	  version="2.0">
    43.9 -	<jsp:directive.page contentType="application/xhtml+xml"/>
   43.10 -	<jsp:output doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd"
   43.11 -		doctype-root-element="html"
   43.12 -		omit-xml-declaration="false"/>
   43.13 -
   43.14 -	<!-- <lokalizace> -->
   43.15 -	<c:if test="${param.jazyk != null}">
   43.16 -	<fmt:setLocale value="${param.jazyk}"/>
   43.17 -	</c:if>
   43.18 -	<fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
   43.19 -	<!-- </lokalizace> -->
   43.20 -
   43.21 -	<html xmlns="http://www.w3.org/1999/xhtml"
   43.22 -	  xmlns:svg="http://www.w3.org/2000/svg"
   43.23 -	  xmlns:xlink="http://www.w3.org/1999/xlink">
   43.24 -	<head>
   43.25 -		<title><fmt:message key="nazev"/></title>
   43.26 -		<link href="styl.css" type="text/css" rel="StyleSheet"/>
   43.27 -	</head>
   43.28 -	<body>
   43.29 -		<h1>Správa</h1>
   43.30 -		<p>Nějaká chráněná část aplikace, kam se nepřihlášený uživatel nedostane.</p>
   43.31 -	</body>
   43.32 -	</html>
   43.33 -
   43.34 -</jsp:root>
    44.1 --- a/java/nekurak.net-ws/build.xml	Tue Jul 19 15:20:47 2011 +0200
    44.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    44.3 @@ -1,72 +0,0 @@
    44.4 -<?xml version="1.0" encoding="UTF-8"?>
    44.5 -<!-- You may freely edit this file. See commented blocks below for -->
    44.6 -<!-- some examples of how to customize the build. -->
    44.7 -<!-- (If you delete it and reopen the project it will be recreated.) -->
    44.8 -<!-- By default, only the Clean and Build commands use this build script. -->
    44.9 -<!-- Commands such as Run, Debug, and Test only use this build script if -->
   44.10 -<!-- the Compile on Save feature is turned off for the project. -->
   44.11 -<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
   44.12 -<!-- in the project's Project Properties dialog box.-->
   44.13 -<project name="nekurak.net-ws" default="default" basedir=".">
   44.14 -    <description>Builds, tests, and runs the project nekurak.net-ws.</description>
   44.15 -    <import file="nbproject/wsit-deploy.xml"/>
   44.16 -    <import file="nbproject/build-impl.xml"/>
   44.17 -    <!--
   44.18 -
   44.19 -    There exist several targets which are by default empty and which can be 
   44.20 -    used for execution of your tasks. These targets are usually executed 
   44.21 -    before and after some main targets. They are: 
   44.22 -
   44.23 -      -pre-init:                 called before initialization of project properties 
   44.24 -      -post-init:                called after initialization of project properties 
   44.25 -      -pre-compile:              called before javac compilation 
   44.26 -      -post-compile:             called after javac compilation 
   44.27 -      -pre-compile-single:       called before javac compilation of single file
   44.28 -      -post-compile-single:      called after javac compilation of single file
   44.29 -      -pre-compile-test:         called before javac compilation of JUnit tests
   44.30 -      -post-compile-test:        called after javac compilation of JUnit tests
   44.31 -      -pre-compile-test-single:  called before javac compilation of single JUnit test
   44.32 -      -post-compile-test-single: called after javac compilation of single JUunit test
   44.33 -      -pre-dist:                 called before archive building 
   44.34 -      -post-dist:                called after archive building 
   44.35 -      -post-clean:               called after cleaning build products 
   44.36 -      -pre-run-deploy:           called before deploying
   44.37 -      -post-run-deploy:          called after deploying
   44.38 -
   44.39 -    Example of pluging an obfuscator after the compilation could look like 
   44.40 -
   44.41 -        <target name="-post-compile">
   44.42 -            <obfuscate>
   44.43 -                <fileset dir="${build.classes.dir}"/>
   44.44 -            </obfuscate>
   44.45 -        </target>
   44.46 -
   44.47 -    For list of available properties check the imported 
   44.48 -    nbproject/build-impl.xml file. 
   44.49 -
   44.50 -
   44.51 -    Other way how to customize the build is by overriding existing main targets.
   44.52 -    The target of interest are: 
   44.53 -
   44.54 -      init-macrodef-javac:    defines macro for javac compilation
   44.55 -      init-macrodef-junit:   defines macro for junit execution
   44.56 -      init-macrodef-debug:    defines macro for class debugging
   44.57 -      do-dist:                archive building
   44.58 -      run:                    execution of project 
   44.59 -      javadoc-build:          javadoc generation 
   44.60 -
   44.61 -    Example of overriding the target for project execution could look like 
   44.62 -
   44.63 -        <target name="run" depends="<PROJNAME>-impl.jar">
   44.64 -            <exec dir="bin" executable="launcher.exe">
   44.65 -                <arg file="${dist.jar}"/>
   44.66 -            </exec>
   44.67 -        </target>
   44.68 -
   44.69 -    Notice that overridden target depends on jar target and not only on 
   44.70 -    compile target as regular run target does. Again, for list of available 
   44.71 -    properties which you can use check the target you are overriding in 
   44.72 -    nbproject/build-impl.xml file. 
   44.73 -
   44.74 -    -->
   44.75 -</project>
    45.1 --- a/java/nekurak.net-ws/nbproject/ant-deploy.xml	Tue Jul 19 15:20:47 2011 +0200
    45.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    45.3 @@ -1,111 +0,0 @@
    45.4 -<?xml version="1.0" encoding="UTF-8"?>
    45.5 -<project default="-deploy-ant" basedir=".">
    45.6 -    <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
    45.7 -        <property file="${deploy.ant.properties.file}" />
    45.8 -        <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
    45.9 -        <available file="${deploy.ant.docbase.dir}/WEB-INF/glassfish-web.xml" property="glassfish.web.present"/>
   45.10 -        <available file="${deploy.ant.resource.dir}" property="has.setup"/>
   45.11 -        <tempfile prefix="gfv3" property="gfv3.password.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   45.12 -        <echo message="AS_ADMIN_PASSWORD=${gfv3.password}" file="${gfv3.password.file}"/>
   45.13 -    </target>
   45.14 -    
   45.15 -    <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
   45.16 -        <tempfile prefix="gfv3" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
   45.17 -        <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
   45.18 -        <!-- The doctype triggers resolution which can fail -->
   45.19 -        <replace file="${temp.sun.web}">
   45.20 -            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
   45.21 -            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
   45.22 -        </replace>
   45.23 -        <replace file="${temp.sun.web}">
   45.24 -            <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
   45.25 -            <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
   45.26 -        </replace>
   45.27 -        <xmlproperty file="${temp.sun.web}" validate="false">
   45.28 -        </xmlproperty>    
   45.29 -        <delete file="${temp.sun.web}"/>
   45.30 -        <condition property="deploy.ant.client.url" value="${gfv3.url}${sun-web-app.context-root}" else="${gfv3.url}/${ant.project.name}">
   45.31 -            <isset property="sun-web-app.context-root"/>
   45.32 -        </condition>
   45.33 -        <condition property="deploy.context.root.argument" value="&amp;contextroot=${sun-web-app.context-root}" else="/${ant.project.name}">
   45.34 -            <isset property="sun-web-app.context-root"/>
   45.35 -        </condition>
   45.36 -    </target>
   45.37 -    <target name="-parse-glassfish-web" depends="-init-cl-deployment-env" if="glassfish.web.present">
   45.38 -        <tempfile prefix="gfv3" property="temp.gf.web" destdir="${java.io.tmpdir}"/>
   45.39 -        <copy file="${deploy.ant.docbase.dir}/WEB-INF/glassfish-web.xml" tofile="${temp.gf.web}"/>
   45.40 -        <!-- The doctype triggers resolution which can fail -->
   45.41 -        <replace file="${temp.gf.web}">
   45.42 -            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
   45.43 -            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
   45.44 -        </replace>
   45.45 -        <replace file="${temp.gf.web}">
   45.46 -            <replacetoken><![CDATA[<glassfish-web-app]]></replacetoken>
   45.47 -            <replacevalue><![CDATA[--> <glassfish-web-app]]></replacevalue>
   45.48 -        </replace>
   45.49 -        <xmlproperty file="${temp.gf.web}" validate="false">
   45.50 -        </xmlproperty>
   45.51 -        <delete file="${temp.gf.web}"/>
   45.52 -        <condition property="deploy.ant.client.url" value="${gfv3.url}${glassfish-web-app.context-root}" else="${gfv3.url}/${ant.project.name}">
   45.53 -            <isset property="glassfish-web-app.context-root"/>
   45.54 -        </condition>
   45.55 -        <condition property="deploy.context.root.argument" value="&amp;contextroot=${glassfish-web-app.context-root}" else="/${ant.project.name}">
   45.56 -            <isset property="glassfish-web-app.context-root"/>
   45.57 -        </condition>
   45.58 -    </target>
   45.59 -    <target name="-no-parse-sun-web" depends="-init-cl-deployment-env" unless="sun.web.present">
   45.60 -        <property name="deploy.context.root.argument" value=""/>
   45.61 -    </target>
   45.62 -    <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
   45.63 -        <tempfile prefix="gfv3" property="gfv3.resources.dir" destdir="${java.io.tmpdir}"/>
   45.64 -        <mkdir dir="${gfv3.resources.dir}"/>
   45.65 -        <mkdir dir="${gfv3.resources.dir}/META-INF"/>
   45.66 -        <copy todir="${gfv3.resources.dir}/META-INF">
   45.67 -            <fileset dir="${deploy.ant.resource.dir}"/>
   45.68 -        </copy>
   45.69 -        <jar destfile="${deploy.ant.archive}" update="true">
   45.70 -            <fileset dir="${gfv3.resources.dir}"/>
   45.71 -        </jar>
   45.72 -        <delete dir="${gfv3.resources.dir}"/>
   45.73 -    </target>
   45.74 -    <target name="-deploy-ant" depends="-parse-glassfish-web, -parse-sun-web, -no-parse-sun-web,-add-resources" if="deploy.ant.enabled">
   45.75 -        <antcall target="-deploy-without-pw"/>
   45.76 -        <antcall target="-deploy-with-pw"/>
   45.77 -    </target>
   45.78 -
   45.79 -    <target name="-deploy-without-pw" unless="gfv3.password">
   45.80 -        <echo message="Deploying ${deploy.ant.archive}"/>
   45.81 -        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   45.82 -        <property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
   45.83 -        <get src="${gfv3.admin.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}&amp;force=true&amp;name=${ant.project.name}"
   45.84 -            dest="${gfv3.results.file}"/>
   45.85 -        <delete file="${gfv3.results.file}"/>    
   45.86 -    </target>
   45.87 -    <target name="-deploy-with-pw" if="gfv3.password">
   45.88 -        <echo message="Deploying ${deploy.ant.archive}"/>
   45.89 -        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   45.90 -        <property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
   45.91 -        <get username="${gfv3.username}" password="${gfv3.password}" src="${gfv3.admin.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}&amp;force=true&amp;name=${ant.project.name}"
   45.92 -            dest="${gfv3.results.file}"/>
   45.93 -        <delete file="${gfv3.results.file}"/>
   45.94 -    </target>
   45.95 -    <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
   45.96 -        <antcall target="-undeploy-without-pw"/>
   45.97 -        <antcall target="-undeploy-with-pw"/>
   45.98 -    </target>
   45.99 -
  45.100 -    <target name="-undeploy-without-pw" unless="gfv3.password">
  45.101 -        <echo message="Undeploying ${deploy.ant.archive}"/>
  45.102 -        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
  45.103 -        <get src="${gfv3.admin.url}/__asadmin/undeploy?name=${ant.project.name}"
  45.104 -            dest="${gfv3.results.file}"/>
  45.105 -        <delete file="${gfv3.results.file}"/>    
  45.106 -    </target>
  45.107 -    <target name="-undeploy-with-pw" if="gfv3.password">
  45.108 -        <echo message="Undeploying ${deploy.ant.archive}"/>
  45.109 -        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
  45.110 -        <get username="${gfv3.username}" password="${gfv3.password}" src="${gfv3.admin.url}/__asadmin/undeploy?name=${ant.project.name}"
  45.111 -            dest="${gfv3.results.file}"/>
  45.112 -        <delete file="${gfv3.results.file}"/>
  45.113 -    </target>
  45.114 -</project>
    46.1 --- a/java/nekurak.net-ws/nbproject/build-impl.xml	Tue Jul 19 15:20:47 2011 +0200
    46.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    46.3 @@ -1,1078 +0,0 @@
    46.4 -<?xml version="1.0" encoding="UTF-8"?>
    46.5 -<!--
    46.6 -        *** GENERATED FROM project.xml - DO NOT EDIT  ***
    46.7 -        ***         EDIT ../build.xml INSTEAD         ***
    46.8 -
    46.9 -        For the purpose of easier reading the script
   46.10 -        is divided into following sections:
   46.11 -        - initialization
   46.12 -        - compilation
   46.13 -        - dist
   46.14 -        - execution
   46.15 -        - debugging
   46.16 -        - javadoc
   46.17 -        - junit compilation
   46.18 -        - junit execution
   46.19 -        - junit debugging
   46.20 -        - cleanup
   46.21 -
   46.22 -        -->
   46.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">
   46.24 -    <import file="jaxws-build.xml"/>
   46.25 -    <import file="ant-deploy.xml"/>
   46.26 -    <fail message="Please build using Ant 1.7.1 or higher.">
   46.27 -        <condition>
   46.28 -            <not>
   46.29 -                <antversion atleast="1.7.1"/>
   46.30 -            </not>
   46.31 -        </condition>
   46.32 -    </fail>
   46.33 -    <target depends="dist,javadoc" description="Build whole project." name="default"/>
   46.34 -    <!--
   46.35 -                INITIALIZATION SECTION
   46.36 -            -->
   46.37 -    <target name="-pre-init">
   46.38 -        <!-- Empty placeholder for easier customization. -->
   46.39 -        <!-- You can override this target in the ../build.xml file. -->
   46.40 -    </target>
   46.41 -    <target depends="-pre-init" name="-init-private">
   46.42 -        <property file="nbproject/private/private.properties"/>
   46.43 -    </target>
   46.44 -    <target depends="-pre-init,-init-private" name="-init-user">
   46.45 -        <property file="${user.properties.file}"/>
   46.46 -        <!-- The two properties below are usually overridden -->
   46.47 -        <!-- by the active platform. Just a fallback. -->
   46.48 -        <property name="default.javac.source" value="1.4"/>
   46.49 -        <property name="default.javac.target" value="1.4"/>
   46.50 -    </target>
   46.51 -    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
   46.52 -        <property file="nbproject/project.properties"/>
   46.53 -    </target>
   46.54 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
   46.55 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
   46.56 -        <condition property="have.tests">
   46.57 -            <or>
   46.58 -                <available file="${test.src.dir}"/>
   46.59 -            </or>
   46.60 -        </condition>
   46.61 -        <condition property="have.sources">
   46.62 -            <or>
   46.63 -                <available file="${src.dir}"/>
   46.64 -            </or>
   46.65 -        </condition>
   46.66 -        <condition property="netbeans.home+have.tests">
   46.67 -            <and>
   46.68 -                <isset property="netbeans.home"/>
   46.69 -                <isset property="have.tests"/>
   46.70 -            </and>
   46.71 -        </condition>
   46.72 -        <condition property="no.javadoc.preview">
   46.73 -            <isfalse value="${javadoc.preview}"/>
   46.74 -        </condition>
   46.75 -        <property name="javac.compilerargs" value=""/>
   46.76 -        <condition property="no.deps">
   46.77 -            <and>
   46.78 -                <istrue value="${no.dependencies}"/>
   46.79 -            </and>
   46.80 -        </condition>
   46.81 -        <condition property="no.dist.ear.dir">
   46.82 -            <not>
   46.83 -                <isset property="dist.ear.dir"/>
   46.84 -            </not>
   46.85 -        </condition>
   46.86 -        <property name="build.web.excludes" value="${build.classes.excludes}"/>
   46.87 -        <condition property="do.compile.jsps">
   46.88 -            <istrue value="${compile.jsps}"/>
   46.89 -        </condition>
   46.90 -        <condition property="do.debug.server">
   46.91 -            <or>
   46.92 -                <not>
   46.93 -                    <isset property="debug.server"/>
   46.94 -                </not>
   46.95 -                <istrue value="${debug.server}"/>
   46.96 -                <and>
   46.97 -                    <not>
   46.98 -                        <istrue value="${debug.server}"/>
   46.99 -                    </not>
  46.100 -                    <not>
  46.101 -                        <istrue value="${debug.client}"/>
  46.102 -                    </not>
  46.103 -                </and>
  46.104 -            </or>
  46.105 -        </condition>
  46.106 -        <condition property="do.debug.client">
  46.107 -            <istrue value="${debug.client}"/>
  46.108 -        </condition>
  46.109 -        <condition property="do.display.browser">
  46.110 -            <istrue value="${display.browser}"/>
  46.111 -        </condition>
  46.112 -        <condition property="do.display.browser.debug">
  46.113 -            <and>
  46.114 -                <isset property="do.display.browser"/>
  46.115 -                <not>
  46.116 -                    <isset property="do.debug.client"/>
  46.117 -                </not>
  46.118 -            </and>
  46.119 -        </condition>
  46.120 -        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
  46.121 -        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
  46.122 -        <condition property="do.war.package.with.custom.manifest">
  46.123 -            <isset property="has.custom.manifest"/>
  46.124 -        </condition>
  46.125 -        <condition property="do.war.package.without.custom.manifest">
  46.126 -            <not>
  46.127 -                <isset property="has.custom.manifest"/>
  46.128 -            </not>
  46.129 -        </condition>
  46.130 -        <condition property="do.tmp.war.package.with.custom.manifest">
  46.131 -            <and>
  46.132 -                <isset property="has.custom.manifest"/>
  46.133 -                <or>
  46.134 -                    <isfalse value="${directory.deployment.supported}"/>
  46.135 -                    <isset property="dist.ear.dir"/>
  46.136 -                </or>
  46.137 -            </and>
  46.138 -        </condition>
  46.139 -        <condition property="do.tmp.war.package.without.custom.manifest">
  46.140 -            <and>
  46.141 -                <not>
  46.142 -                    <isset property="has.custom.manifest"/>
  46.143 -                </not>
  46.144 -                <or>
  46.145 -                    <isfalse value="${directory.deployment.supported}"/>
  46.146 -                    <isset property="dist.ear.dir"/>
  46.147 -                </or>
  46.148 -            </and>
  46.149 -        </condition>
  46.150 -        <condition property="do.tmp.war.package">
  46.151 -            <or>
  46.152 -                <isfalse value="${directory.deployment.supported}"/>
  46.153 -                <isset property="dist.ear.dir"/>
  46.154 -            </or>
  46.155 -        </condition>
  46.156 -        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
  46.157 -        <condition else="" property="application.args.param" value="${application.args}">
  46.158 -            <and>
  46.159 -                <isset property="application.args"/>
  46.160 -                <not>
  46.161 -                    <equals arg1="${application.args}" arg2="" trim="true"/>
  46.162 -                </not>
  46.163 -            </and>
  46.164 -        </condition>
  46.165 -        <property name="source.encoding" value="${file.encoding}"/>
  46.166 -        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  46.167 -            <and>
  46.168 -                <isset property="javadoc.encoding"/>
  46.169 -                <not>
  46.170 -                    <equals arg1="${javadoc.encoding}" arg2=""/>
  46.171 -                </not>
  46.172 -            </and>
  46.173 -        </condition>
  46.174 -        <property name="javadoc.encoding.used" value="${source.encoding}"/>
  46.175 -        <property name="includes" value="**"/>
  46.176 -        <property name="excludes" value=""/>
  46.177 -        <property name="runmain.jvmargs" value=""/>
  46.178 -        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
  46.179 -        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
  46.180 -            <and>
  46.181 -                <isset property="endorsed.classpath"/>
  46.182 -                <length length="0" string="${endorsed.classpath}" when="greater"/>
  46.183 -            </and>
  46.184 -        </condition>
  46.185 -        <condition else="false" property="jdkBug6558476">
  46.186 -            <and>
  46.187 -                <matches pattern="1\.[56]" string="${java.specification.version}"/>
  46.188 -                <not>
  46.189 -                    <os family="unix"/>
  46.190 -                </not>
  46.191 -            </and>
  46.192 -        </condition>
  46.193 -        <property name="javac.fork" value="${jdkBug6558476}"/>
  46.194 -    </target>
  46.195 -    <target depends="init" name="-init-cos" unless="deploy.on.save">
  46.196 -        <condition property="deploy.on.save" value="true">
  46.197 -            <istrue value="${j2ee.deploy.on.save}"/>
  46.198 -        </condition>
  46.199 -    </target>
  46.200 -    <target name="-post-init">
  46.201 -        <!-- Empty placeholder for easier customization. -->
  46.202 -        <!-- You can override this target in the ../build.xml file. -->
  46.203 -    </target>
  46.204 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  46.205 -        <fail unless="src.dir">Must set src.dir</fail>
  46.206 -        <fail unless="test.src.dir">Must set test.src.dir</fail>
  46.207 -        <fail unless="build.dir">Must set build.dir</fail>
  46.208 -        <fail unless="build.web.dir">Must set build.web.dir</fail>
  46.209 -        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
  46.210 -        <fail unless="dist.dir">Must set dist.dir</fail>
  46.211 -        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  46.212 -        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  46.213 -        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  46.214 -        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  46.215 -        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  46.216 -        <fail unless="dist.war">Must set dist.war</fail>
  46.217 -        <condition property="missing.j2ee.server.home">
  46.218 -            <and>
  46.219 -                <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
  46.220 -                <not>
  46.221 -                    <isset property="j2ee.server.home"/>
  46.222 -                </not>
  46.223 -            </and>
  46.224 -        </condition>
  46.225 -        <fail if="missing.j2ee.server.home">
  46.226 -The Java EE server classpath is not correctly set up - server home directory is missing.
  46.227 -Either open the project in the IDE and assign the server or setup the server classpath manually.
  46.228 -For example like this:
  46.229 -   ant -Dj2ee.server.home=&lt;app_server_installation_directory&gt;
  46.230 -                </fail>
  46.231 -        <fail unless="j2ee.platform.classpath">
  46.232 -The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
  46.233 -Either open the project in the IDE and assign the server or setup the server classpath manually.
  46.234 -For example like this:
  46.235 -   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
  46.236 -or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
  46.237 -                </fail>
  46.238 -    </target>
  46.239 -    <target name="-init-macrodef-property">
  46.240 -        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
  46.241 -            <attribute name="name"/>
  46.242 -            <attribute name="value"/>
  46.243 -            <sequential>
  46.244 -                <property name="@{name}" value="${@{value}}"/>
  46.245 -            </sequential>
  46.246 -        </macrodef>
  46.247 -    </target>
  46.248 -    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
  46.249 -        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
  46.250 -            <attribute default="${src.dir}" name="srcdir"/>
  46.251 -            <attribute default="${build.classes.dir}" name="destdir"/>
  46.252 -            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  46.253 -            <attribute default="${javac.processorpath}" name="processorpath"/>
  46.254 -            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  46.255 -            <attribute default="${includes}" name="includes"/>
  46.256 -            <attribute default="${excludes}" name="excludes"/>
  46.257 -            <attribute default="${javac.debug}" name="debug"/>
  46.258 -            <attribute default="${empty.dir}" name="gensrcdir"/>
  46.259 -            <element name="customize" optional="true"/>
  46.260 -            <sequential>
  46.261 -                <property location="${build.dir}/empty" name="empty.dir"/>
  46.262 -                <mkdir dir="${empty.dir}"/>
  46.263 -                <mkdir dir="@{apgeneratedsrcdir}"/>
  46.264 -                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
  46.265 -                    <src>
  46.266 -                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  46.267 -                            <include name="*"/>
  46.268 -                        </dirset>
  46.269 -                    </src>
  46.270 -                    <classpath>
  46.271 -                        <path path="@{classpath}"/>
  46.272 -                    </classpath>
  46.273 -                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  46.274 -                    <compilerarg line="${javac.compilerargs}"/>
  46.275 -                    <compilerarg value="-processorpath"/>
  46.276 -                    <compilerarg path="@{processorpath}:${empty.dir}"/>
  46.277 -                    <compilerarg line="${ap.processors.internal}"/>
  46.278 -                    <compilerarg value="-s"/>
  46.279 -                    <compilerarg path="@{apgeneratedsrcdir}"/>
  46.280 -                    <compilerarg line="${ap.proc.none.internal}"/>
  46.281 -                    <customize/>
  46.282 -                </javac>
  46.283 -            </sequential>
  46.284 -        </macrodef>
  46.285 -    </target>
  46.286 -    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
  46.287 -        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
  46.288 -            <attribute default="${src.dir}" name="srcdir"/>
  46.289 -            <attribute default="${build.classes.dir}" name="destdir"/>
  46.290 -            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  46.291 -            <attribute default="${javac.processorpath}" name="processorpath"/>
  46.292 -            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  46.293 -            <attribute default="${includes}" name="includes"/>
  46.294 -            <attribute default="${excludes}" name="excludes"/>
  46.295 -            <attribute default="${javac.debug}" name="debug"/>
  46.296 -            <attribute default="${empty.dir}" name="gensrcdir"/>
  46.297 -            <element name="customize" optional="true"/>
  46.298 -            <sequential>
  46.299 -                <property location="${build.dir}/empty" name="empty.dir"/>
  46.300 -                <mkdir dir="${empty.dir}"/>
  46.301 -                <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}">
  46.302 -                    <src>
  46.303 -                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  46.304 -                            <include name="*"/>
  46.305 -                        </dirset>
  46.306 -                    </src>
  46.307 -                    <classpath>
  46.308 -                        <path path="@{classpath}"/>
  46.309 -                    </classpath>
  46.310 -                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  46.311 -                    <compilerarg line="${javac.compilerargs}"/>
  46.312 -                    <customize/>
  46.313 -                </javac>
  46.314 -            </sequential>
  46.315 -        </macrodef>
  46.316 -    </target>
  46.317 -    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
  46.318 -        <macrodef name="depend" uri="http://www.netbeans.org/ns/web-project/2">
  46.319 -            <attribute default="${src.dir}" name="srcdir"/>
  46.320 -            <attribute default="${build.classes.dir}" name="destdir"/>
  46.321 -            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  46.322 -            <sequential>
  46.323 -                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
  46.324 -                    <classpath>
  46.325 -                        <path path="@{classpath}"/>
  46.326 -                    </classpath>
  46.327 -                </depend>
  46.328 -            </sequential>
  46.329 -        </macrodef>
  46.330 -        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/web-project/2">
  46.331 -            <attribute default="${build.classes.dir}" name="destdir"/>
  46.332 -            <sequential>
  46.333 -                <fail unless="javac.includes">Must set javac.includes</fail>
  46.334 -                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
  46.335 -                    <path>
  46.336 -                        <filelist dir="@{destdir}" files="${javac.includes}"/>
  46.337 -                    </path>
  46.338 -                    <globmapper from="*.java" to="*.class"/>
  46.339 -                </pathconvert>
  46.340 -                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
  46.341 -                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
  46.342 -                <delete>
  46.343 -                    <files includesfile="${javac.includesfile.binary}"/>
  46.344 -                </delete>
  46.345 -                <delete file="${javac.includesfile.binary}"/>
  46.346 -            </sequential>
  46.347 -        </macrodef>
  46.348 -    </target>
  46.349 -    <target name="-init-macrodef-junit">
  46.350 -        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
  46.351 -            <attribute default="${includes}" name="includes"/>
  46.352 -            <attribute default="${excludes}" name="excludes"/>
  46.353 -            <attribute default="**" name="testincludes"/>
  46.354 -            <sequential>
  46.355 -                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
  46.356 -                    <batchtest todir="${build.test.results.dir}">
  46.357 -                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  46.358 -                            <filename name="@{testincludes}"/>
  46.359 -                        </fileset>
  46.360 -                    </batchtest>
  46.361 -                    <classpath>
  46.362 -                        <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
  46.363 -                    </classpath>
  46.364 -                    <syspropertyset>
  46.365 -                        <propertyref prefix="test-sys-prop."/>
  46.366 -                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  46.367 -                    </syspropertyset>
  46.368 -                    <formatter type="brief" usefile="false"/>
  46.369 -                    <formatter type="xml"/>
  46.370 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  46.371 -                    <jvmarg value="-ea"/>
  46.372 -                    <jvmarg line="${runmain.jvmargs}"/>
  46.373 -                </junit>
  46.374 -            </sequential>
  46.375 -        </macrodef>
  46.376 -    </target>
  46.377 -    <target name="-init-macrodef-java">
  46.378 -        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
  46.379 -            <attribute default="${main.class}" name="classname"/>
  46.380 -            <attribute default="${debug.classpath}" name="classpath"/>
  46.381 -            <element name="customize" optional="true"/>
  46.382 -            <sequential>
  46.383 -                <java classname="@{classname}" fork="true">
  46.384 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  46.385 -                    <jvmarg line="${runmain.jvmargs}"/>
  46.386 -                    <classpath>
  46.387 -                        <path path="@{classpath}:${j2ee.platform.classpath}"/>
  46.388 -                    </classpath>
  46.389 -                    <syspropertyset>
  46.390 -                        <propertyref prefix="run-sys-prop."/>
  46.391 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  46.392 -                    </syspropertyset>
  46.393 -                    <customize/>
  46.394 -                </java>
  46.395 -            </sequential>
  46.396 -        </macrodef>
  46.397 -    </target>
  46.398 -    <target name="-init-macrodef-nbjsdebug">
  46.399 -        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
  46.400 -            <attribute default="${client.url}" name="webUrl"/>
  46.401 -            <sequential>
  46.402 -                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
  46.403 -            </sequential>
  46.404 -        </macrodef>
  46.405 -    </target>
  46.406 -    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  46.407 -        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
  46.408 -            <attribute default="${main.class}" name="name"/>
  46.409 -            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  46.410 -            <sequential>
  46.411 -                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
  46.412 -                    <classpath>
  46.413 -                        <path path="@{classpath}"/>
  46.414 -                    </classpath>
  46.415 -                </nbjpdastart>
  46.416 -            </sequential>
  46.417 -        </macrodef>
  46.418 -        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
  46.419 -            <attribute default="${build.classes.dir}" name="dir"/>
  46.420 -            <sequential>
  46.421 -                <nbjpdareload>
  46.422 -                    <fileset dir="@{dir}" includes="${fix.classes}">
  46.423 -                        <include name="${fix.includes}*.class"/>
  46.424 -                    </fileset>
  46.425 -                </nbjpdareload>
  46.426 -            </sequential>
  46.427 -        </macrodef>
  46.428 -        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
  46.429 -            <sequential>
  46.430 -                <nbjpdaappreloaded/>
  46.431 -            </sequential>
  46.432 -        </macrodef>
  46.433 -    </target>
  46.434 -    <target name="-init-debug-args">
  46.435 -        <property name="version-output" value="java version &quot;${ant.java.version}"/>
  46.436 -        <condition property="have-jdk-older-than-1.4">
  46.437 -            <or>
  46.438 -                <contains string="${version-output}" substring="java version &quot;1.0"/>
  46.439 -                <contains string="${version-output}" substring="java version &quot;1.1"/>
  46.440 -                <contains string="${version-output}" substring="java version &quot;1.2"/>
  46.441 -                <contains string="${version-output}" substring="java version &quot;1.3"/>
  46.442 -            </or>
  46.443 -        </condition>
  46.444 -        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  46.445 -            <istrue value="${have-jdk-older-than-1.4}"/>
  46.446 -        </condition>
  46.447 -        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  46.448 -            <os family="windows"/>
  46.449 -        </condition>
  46.450 -        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  46.451 -            <isset property="debug.transport"/>
  46.452 -        </condition>
  46.453 -    </target>
  46.454 -    <target depends="-init-debug-args" name="-init-macrodef-debug">
  46.455 -        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
  46.456 -            <attribute default="${main.class}" name="classname"/>
  46.457 -            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  46.458 -            <attribute default="${application.args.param}" name="args"/>
  46.459 -            <element name="customize" optional="true"/>
  46.460 -            <sequential>
  46.461 -                <java classname="@{classname}" fork="true">
  46.462 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  46.463 -                    <jvmarg line="${debug-args-line}"/>
  46.464 -                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  46.465 -                    <jvmarg line="${runmain.jvmargs}"/>
  46.466 -                    <classpath>
  46.467 -                        <path path="@{classpath}"/>
  46.468 -                    </classpath>
  46.469 -                    <syspropertyset>
  46.470 -                        <propertyref prefix="run-sys-prop."/>
  46.471 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  46.472 -                    </syspropertyset>
  46.473 -                    <arg line="@{args}"/>
  46.474 -                    <customize/>
  46.475 -                </java>
  46.476 -            </sequential>
  46.477 -        </macrodef>
  46.478 -    </target>
  46.479 -    <target name="-init-taskdefs">
  46.480 -        <fail unless="libs.CopyLibs.classpath">
  46.481 -The libs.CopyLibs.classpath property is not set up.
  46.482 -This property must point to 
  46.483 -org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
  46.484 -of NetBeans IDE installation and is usually located at 
  46.485 -&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
  46.486 -Either open the project in the IDE and make sure CopyLibs library
  46.487 -exists or setup the property manually. For example like this:
  46.488 - ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
  46.489 -                </fail>
  46.490 -        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
  46.491 -    </target>
  46.492 -    <target name="-init-ap-cmdline-properties">
  46.493 -        <property name="annotation.processing.enabled" value="true"/>
  46.494 -        <property name="annotation.processing.processors.list" value=""/>
  46.495 -        <property name="annotation.processing.run.all.processors" value="true"/>
  46.496 -        <property name="javac.processorpath" value="${javac.classpath}"/>
  46.497 -        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
  46.498 -        <condition property="ap.supported.internal" value="true">
  46.499 -            <not>
  46.500 -                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
  46.501 -            </not>
  46.502 -        </condition>
  46.503 -    </target>
  46.504 -    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
  46.505 -        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
  46.506 -            <isfalse value="${annotation.processing.run.all.processors}"/>
  46.507 -        </condition>
  46.508 -        <condition else="" property="ap.proc.none.internal" value="-proc:none">
  46.509 -            <isfalse value="${annotation.processing.enabled}"/>
  46.510 -        </condition>
  46.511 -    </target>
  46.512 -    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
  46.513 -        <property name="ap.cmd.line.internal" value=""/>
  46.514 -    </target>
  46.515 -    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" name="profile-init"/>
  46.516 -    <target name="-profile-pre-init">
  46.517 -        <!-- Empty placeholder for easier customization. -->
  46.518 -        <!-- You can override this target in the ../build.xml file. -->
  46.519 -    </target>
  46.520 -    <target name="-profile-post-init">
  46.521 -        <!-- Empty placeholder for easier customization. -->
  46.522 -        <!-- You can override this target in the ../build.xml file. -->
  46.523 -    </target>
  46.524 -    <target depends="-profile-pre-init, init, -profile-post-init" name="-profile-init-check">
  46.525 -        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
  46.526 -        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
  46.527 -    </target>
  46.528 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
  46.529 -    <!--
  46.530 -                COMPILATION SECTION
  46.531 -            -->
  46.532 -    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
  46.533 -        <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
  46.534 -            <property name="deploy.on.save" value="false"/>
  46.535 -        </ant>
  46.536 -    </target>
  46.537 -    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
  46.538 -        <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
  46.539 -            <property name="deploy.on.save" value="false"/>
  46.540 -        </ant>
  46.541 -    </target>
  46.542 -    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
  46.543 -    <target depends="init,deps-jar" name="-pre-pre-compile">
  46.544 -        <mkdir dir="${build.classes.dir}"/>
  46.545 -    </target>
  46.546 -    <target name="-pre-compile">
  46.547 -        <!-- Empty placeholder for easier customization. -->
  46.548 -        <!-- You can override this target in the ../build.xml file. -->
  46.549 -    </target>
  46.550 -    <target name="-copy-webdir">
  46.551 -        <copy todir="${build.web.dir}">
  46.552 -            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
  46.553 -        </copy>
  46.554 -        <copy todir="${build.web.dir}/WEB-INF">
  46.555 -            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
  46.556 -        </copy>
  46.557 -    </target>
  46.558 -    <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">
  46.559 -        <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
  46.560 -        <copy todir="${build.classes.dir}">
  46.561 -            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  46.562 -        </copy>
  46.563 -    </target>
  46.564 -    <target if="has.custom.manifest" name="-copy-manifest">
  46.565 -        <mkdir dir="${build.meta.inf.dir}"/>
  46.566 -        <copy todir="${build.meta.inf.dir}">
  46.567 -            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
  46.568 -        </copy>
  46.569 -    </target>
  46.570 -    <target if="has.persistence.xml" name="-copy-persistence-xml">
  46.571 -        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
  46.572 -        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
  46.573 -            <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
  46.574 -        </copy>
  46.575 -    </target>
  46.576 -    <target name="-post-compile">
  46.577 -        <!-- Empty placeholder for easier customization. -->
  46.578 -        <!-- You can override this target in the ../build.xml file. -->
  46.579 -    </target>
  46.580 -    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  46.581 -    <target name="-pre-compile-single">
  46.582 -        <!-- Empty placeholder for easier customization. -->
  46.583 -        <!-- You can override this target in the ../build.xml file. -->
  46.584 -    </target>
  46.585 -    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  46.586 -        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  46.587 -        <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
  46.588 -        <copy todir="${build.classes.dir}">
  46.589 -            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  46.590 -        </copy>
  46.591 -    </target>
  46.592 -    <target name="-post-compile-single">
  46.593 -        <!-- Empty placeholder for easier customization. -->
  46.594 -        <!-- You can override this target in the ../build.xml file. -->
  46.595 -    </target>
  46.596 -    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  46.597 -    <property name="jspc.schemas" value="/resources/schemas/"/>
  46.598 -    <property name="jspc.dtds" value="/resources/dtds/"/>
  46.599 -    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
  46.600 -        <mkdir dir="${build.generated.dir}/src"/>
  46.601 -        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
  46.602 -            <arg value="-uriroot"/>
  46.603 -            <arg file="${basedir}/${build.web.dir}"/>
  46.604 -            <arg value="-d"/>
  46.605 -            <arg file="${basedir}/${build.generated.dir}/src"/>
  46.606 -            <arg value="-die1"/>
  46.607 -            <arg value="-schemas ${jspc.schemas}"/>
  46.608 -            <arg value="-dtds ${jspc.dtds}"/>
  46.609 -            <arg value="-compilerSourceVM ${javac.source}"/>
  46.610 -            <arg value="-compilerTargetVM ${javac.target}"/>
  46.611 -            <arg value="-javaEncoding ${source.encoding}"/>
  46.612 -            <arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
  46.613 -            <classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
  46.614 -        </java>
  46.615 -        <mkdir dir="${build.generated.dir}/classes"/>
  46.616 -        <webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
  46.617 -    </target>
  46.618 -    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
  46.619 -        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
  46.620 -        <mkdir dir="${build.generated.dir}/src"/>
  46.621 -        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
  46.622 -            <arg value="-uriroot"/>
  46.623 -            <arg file="${basedir}/${build.web.dir}"/>
  46.624 -            <arg value="-d"/>
  46.625 -            <arg file="${basedir}/${build.generated.dir}/src"/>
  46.626 -            <arg value="-die1"/>
  46.627 -            <arg value="-schemas ${jspc.schemas}"/>
  46.628 -            <arg value="-dtds ${jspc.dtds}"/>
  46.629 -            <arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
  46.630 -            <arg value="-jspc.files"/>
  46.631 -            <arg path="${jsp.includes}"/>
  46.632 -            <arg value="-compilerSourceVM ${javac.source}"/>
  46.633 -            <arg value="-compilerTargetVM ${javac.target}"/>
  46.634 -            <arg value="-javaEncoding ${source.encoding}"/>
  46.635 -            <classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
  46.636 -        </java>
  46.637 -        <mkdir dir="${build.generated.dir}/classes"/>
  46.638 -        <webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
  46.639 -            <customize>
  46.640 -                <patternset includes="${javac.jsp.includes}"/>
  46.641 -            </customize>
  46.642 -        </webproject2:javac>
  46.643 -    </target>
  46.644 -    <target name="compile-single-jsp">
  46.645 -        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
  46.646 -        <antcall target="-do-compile-single-jsp"/>
  46.647 -    </target>
  46.648 -    <!--
  46.649 -                DIST BUILDING SECTION
  46.650 -            -->
  46.651 -    <target name="-pre-dist">
  46.652 -        <!-- Empty placeholder for easier customization. -->
  46.653 -        <!-- You can override this target in the ../build.xml file. -->
  46.654 -    </target>
  46.655 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
  46.656 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  46.657 -        <mkdir dir="${dist.jar.dir}"/>
  46.658 -        <jar compress="${jar.compress}" jarfile="${dist.war}">
  46.659 -            <fileset dir="${build.web.dir}"/>
  46.660 -        </jar>
  46.661 -    </target>
  46.662 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
  46.663 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  46.664 -        <mkdir dir="${dist.jar.dir}"/>
  46.665 -        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
  46.666 -            <fileset dir="${build.web.dir}"/>
  46.667 -        </jar>
  46.668 -    </target>
  46.669 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
  46.670 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  46.671 -        <mkdir dir="${dist.jar.dir}"/>
  46.672 -        <jar compress="${jar.compress}" jarfile="${dist.war}">
  46.673 -            <fileset dir="${build.web.dir}"/>
  46.674 -        </jar>
  46.675 -    </target>
  46.676 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
  46.677 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  46.678 -        <mkdir dir="${dist.jar.dir}"/>
  46.679 -        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
  46.680 -            <fileset dir="${build.web.dir}"/>
  46.681 -        </jar>
  46.682 -    </target>
  46.683 -    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
  46.684 -    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
  46.685 -        <copyfiles files="${reference.nekurak_net-lib.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
  46.686 -        <mkdir dir="${build.web.dir}/META-INF"/>
  46.687 -        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
  46.688 -    </target>
  46.689 -    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
  46.690 -        <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
  46.691 -    </target>
  46.692 -    <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
  46.693 -        <delete dir="${build.web.dir}/WEB-INF/lib"/>
  46.694 -    </target>
  46.695 -    <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
  46.696 -        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
  46.697 -        <mkdir dir="${dist.jar.dir}"/>
  46.698 -        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
  46.699 -            <fileset dir="${build.web.dir}"/>
  46.700 -        </jar>
  46.701 -    </target>
  46.702 -    <target name="-post-dist">
  46.703 -        <!-- Empty placeholder for easier customization. -->
  46.704 -        <!-- You can override this target in the ../build.xml file. -->
  46.705 -    </target>
  46.706 -    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
  46.707 -    <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"/>
  46.708 -    <!--
  46.709 -                EXECUTION SECTION
  46.710 -            -->
  46.711 -    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
  46.712 -    <target name="-pre-run-deploy">
  46.713 -        <!-- Empty placeholder for easier customization. -->
  46.714 -        <!-- You can override this target in the ../build.xml file. -->
  46.715 -    </target>
  46.716 -    <target name="-post-run-deploy">
  46.717 -        <!-- Empty placeholder for easier customization. -->
  46.718 -        <!-- You can override this target in the ../build.xml file. -->
  46.719 -    </target>
  46.720 -    <target name="-pre-nbmodule-run-deploy">
  46.721 -        <!-- Empty placeholder for easier customization. -->
  46.722 -        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
  46.723 -    </target>
  46.724 -    <target name="-post-nbmodule-run-deploy">
  46.725 -        <!-- Empty placeholder for easier customization. -->
  46.726 -        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
  46.727 -    </target>
  46.728 -    <target name="-run-deploy-am">
  46.729 -        <!-- Task to deploy to the Access Manager runtime. -->
  46.730 -    </target>
  46.731 -    <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">
  46.732 -        <nbjpdaappreloaded/>
  46.733 -    </target>
  46.734 -    <target if="netbeans.home" name="-run-deploy-nb">
  46.735 -        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
  46.736 -    </target>
  46.737 -    <target name="-init-deploy-ant" unless="netbeans.home">
  46.738 -        <property name="deploy.ant.archive" value="${dist.war}"/>
  46.739 -        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
  46.740 -        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
  46.741 -        <property name="deploy.ant.enabled" value="true"/>
  46.742 -    </target>
  46.743 -    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
  46.744 -    <target if="netbeans.home" name="-run-undeploy-nb">
  46.745 -        <fail message="Undeploy is not supported from within the IDE"/>
  46.746 -    </target>
  46.747 -    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
  46.748 -        <nbverify file="${dist.war}"/>
  46.749 -    </target>
  46.750 -    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
  46.751 -    <target if="do.display.browser" name="-init-display-browser">
  46.752 -        <condition property="do.display.browser.nb">
  46.753 -            <isset property="netbeans.home"/>
  46.754 -        </condition>
  46.755 -        <condition property="do.display.browser.cl">
  46.756 -            <isset property="deploy.ant.enabled"/>
  46.757 -        </condition>
  46.758 -    </target>
  46.759 -    <target if="do.display.browser.nb" name="-display-browser-nb">
  46.760 -        <nbbrowse url="${client.url}"/>
  46.761 -    </target>
  46.762 -    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
  46.763 -        <condition property="browser" value="rundll32">
  46.764 -            <os family="windows"/>
  46.765 -        </condition>
  46.766 -        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
  46.767 -            <os family="windows"/>
  46.768 -        </condition>
  46.769 -        <condition property="browser" value="/usr/bin/open">
  46.770 -            <os family="mac"/>
  46.771 -        </condition>
  46.772 -        <property environment="env"/>
  46.773 -        <condition property="browser" value="${env.BROWSER}">
  46.774 -            <isset property="env.BROWSER"/>
  46.775 -        </condition>
  46.776 -        <condition property="browser" value="/usr/bin/firefox">
  46.777 -            <available file="/usr/bin/firefox"/>
  46.778 -        </condition>
  46.779 -        <condition property="browser" value="/usr/local/firefox/firefox">
  46.780 -            <available file="/usr/local/firefox/firefox"/>
  46.781 -        </condition>
  46.782 -        <condition property="browser" value="/usr/bin/mozilla">
  46.783 -            <available file="/usr/bin/mozilla"/>
  46.784 -        </condition>
  46.785 -        <condition property="browser" value="/usr/local/mozilla/mozilla">
  46.786 -            <available file="/usr/local/mozilla/mozilla"/>
  46.787 -        </condition>
  46.788 -        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
  46.789 -            <available file="/usr/sfw/lib/firefox/firefox"/>
  46.790 -        </condition>
  46.791 -        <condition property="browser" value="/opt/csw/bin/firefox">
  46.792 -            <available file="/opt/csw/bin/firefox"/>
  46.793 -        </condition>
  46.794 -        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
  46.795 -            <available file="/usr/sfw/lib/mozilla/mozilla"/>
  46.796 -        </condition>
  46.797 -        <condition property="browser" value="/opt/csw/bin/mozilla">
  46.798 -            <available file="/opt/csw/bin/mozilla"/>
  46.799 -        </condition>
  46.800 -    </target>
  46.801 -    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
  46.802 -        <fail unless="browser">
  46.803 -                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
  46.804 -                </fail>
  46.805 -        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
  46.806 -        <echo>Launching ${browse.url}</echo>
  46.807 -        <exec executable="${browser}" spawn="true">
  46.808 -            <arg line="${browser.args} ${browse.url}"/>
  46.809 -        </exec>
  46.810 -    </target>
  46.811 -    <target depends="init,-init-cos,compile-single" name="run-main">
  46.812 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  46.813 -        <webproject1:java classname="${run.class}"/>
  46.814 -    </target>
  46.815 -    <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
  46.816 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  46.817 -        <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  46.818 -    </target>
  46.819 -    <!--
  46.820 -                DEBUGGING SECTION
  46.821 -            -->
  46.822 -    <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">
  46.823 -        <nbstartserver debugmode="true"/>
  46.824 -        <antcall target="connect-debugger"/>
  46.825 -        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
  46.826 -        <antcall target="debug-display-browser"/>
  46.827 -        <antcall target="connect-client-debugger"/>
  46.828 -    </target>
  46.829 -    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
  46.830 -        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
  46.831 -            <classpath>
  46.832 -                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
  46.833 -            </classpath>
  46.834 -            <sourcepath>
  46.835 -                <path path="${web.docbase.dir}"/>
  46.836 -            </sourcepath>
  46.837 -        </nbjpdaconnect>
  46.838 -    </target>
  46.839 -    <target if="do.display.browser.debug" name="debug-display-browser">
  46.840 -        <nbbrowse url="${client.url}"/>
  46.841 -    </target>
  46.842 -    <target if="do.debug.client" name="connect-client-debugger">
  46.843 -        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
  46.844 -    </target>
  46.845 -    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  46.846 -        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  46.847 -        <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  46.848 -    </target>
  46.849 -    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  46.850 -    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
  46.851 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  46.852 -        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  46.853 -    </target>
  46.854 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  46.855 -        <webproject1:nbjpdastart name="${debug.class}"/>
  46.856 -    </target>
  46.857 -    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  46.858 -        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  46.859 -        <webproject1:debug classname="${debug.class}"/>
  46.860 -    </target>
  46.861 -    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
  46.862 -    <target depends="init" name="-pre-debug-fix">
  46.863 -        <fail unless="fix.includes">Must set fix.includes</fail>
  46.864 -        <property name="javac.includes" value="${fix.includes}.java"/>
  46.865 -    </target>
  46.866 -    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  46.867 -        <webproject1:nbjpdareload/>
  46.868 -    </target>
  46.869 -    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  46.870 -    <!--
  46.871 -            =================
  46.872 -            PROFILING SECTION
  46.873 -            =================
  46.874 -            -->
  46.875 -    <target description="Profile a J2EE project in the IDE." name="profile">
  46.876 -        <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
  46.877 -            <isset property="profiler.info.jvmargs.extra"/>
  46.878 -        </condition>
  46.879 -        <antcall target="${profiler.startserver.target}"/>
  46.880 -        <antcall target="run"/>
  46.881 -        <antcall target="start-loadgen"/>
  46.882 -    </target>
  46.883 -    <target name="start-profiled-server">
  46.884 -        <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
  46.885 -            <jvmarg value="${profiler.info.jvmargs.agent}"/>
  46.886 -            <jvmarg value="${profiler.j2ee.agentID}"/>
  46.887 -        </nbstartprofiledserver>
  46.888 -    </target>
  46.889 -    <target name="start-profiled-server-extraargs">
  46.890 -        <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
  46.891 -            <jvmarg value="${profiler.info.jvmargs.extra}"/>
  46.892 -            <jvmarg value="${profiler.info.jvmargs.agent}"/>
  46.893 -            <jvmarg value="${profiler.j2ee.agentID}"/>
  46.894 -        </nbstartprofiledserver>
  46.895 -    </target>
  46.896 -    <target if="profiler.loadgen.path" name="start-loadgen">
  46.897 -        <loadgenstart path="${profiler.loadgen.path}"/>
  46.898 -    </target>
  46.899 -    <!--
  46.900 -                JAVADOC SECTION
  46.901 -            -->
  46.902 -    <target depends="init" if="have.sources" name="javadoc-build">
  46.903 -        <mkdir dir="${dist.javadoc.dir}"/>
  46.904 -        <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}">
  46.905 -            <classpath>
  46.906 -                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
  46.907 -            </classpath>
  46.908 -            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  46.909 -                <filename name="**/*.java"/>
  46.910 -            </fileset>
  46.911 -            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  46.912 -                <include name="**/*.java"/>
  46.913 -            </fileset>
  46.914 -        </javadoc>
  46.915 -        <copy todir="${dist.javadoc.dir}">
  46.916 -            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  46.917 -                <filename name="**/doc-files/**"/>
  46.918 -            </fileset>
  46.919 -            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  46.920 -                <include name="**/doc-files/**"/>
  46.921 -            </fileset>
  46.922 -        </copy>
  46.923 -    </target>
  46.924 -    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
  46.925 -        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  46.926 -    </target>
  46.927 -    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
  46.928 -    <!--
  46.929 -                
  46.930 -                JUNIT COMPILATION SECTION
  46.931 -            -->
  46.932 -    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  46.933 -        <mkdir dir="${build.test.classes.dir}"/>
  46.934 -        <property name="j2ee.platform.embeddableejb.classpath" value=""/>
  46.935 -    </target>
  46.936 -    <target name="-pre-compile-test">
  46.937 -        <!-- Empty placeholder for easier customization. -->
  46.938 -        <!-- You can override this target in the ../build.xml file. -->
  46.939 -    </target>
  46.940 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
  46.941 -        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  46.942 -        <copy todir="${build.test.classes.dir}">
  46.943 -            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  46.944 -        </copy>
  46.945 -    </target>
  46.946 -    <target name="-post-compile-test">
  46.947 -        <!-- Empty placeholder for easier customization. -->
  46.948 -        <!-- You can override this target in the ../build.xml file. -->
  46.949 -    </target>
  46.950 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  46.951 -    <target name="-pre-compile-test-single">
  46.952 -        <!-- Empty placeholder for easier customization. -->
  46.953 -        <!-- You can override this target in the ../build.xml file. -->
  46.954 -    </target>
  46.955 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  46.956 -        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  46.957 -        <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}"/>
  46.958 -        <copy todir="${build.test.classes.dir}">
  46.959 -            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  46.960 -        </copy>
  46.961 -    </target>
  46.962 -    <target name="-post-compile-test-single">
  46.963 -        <!-- Empty placeholder for easier customization. -->
  46.964 -        <!-- You can override this target in the ../build.xml file. -->
  46.965 -    </target>
  46.966 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  46.967 -    <!--
  46.968 -                
  46.969 -                JUNIT EXECUTION SECTION
  46.970 -            -->
  46.971 -    <target depends="init" if="have.tests" name="-pre-test-run">
  46.972 -        <mkdir dir="${build.test.results.dir}"/>
  46.973 -    </target>
  46.974 -    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  46.975 -        <webproject2:junit testincludes="**/*Test.java"/>
  46.976 -    </target>
  46.977 -    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  46.978 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  46.979 -    </target>
  46.980 -    <target depends="init" if="have.tests" name="test-report"/>
  46.981 -    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  46.982 -    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  46.983 -    <target depends="init" if="have.tests" name="-pre-test-run-single">
  46.984 -        <mkdir dir="${build.test.results.dir}"/>
  46.985 -    </target>
  46.986 -    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  46.987 -        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  46.988 -        <webproject2:junit excludes="" includes="${test.includes}"/>
  46.989 -    </target>
  46.990 -    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  46.991 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  46.992 -    </target>
  46.993 -    <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"/>
  46.994 -    <!--
  46.995 -                
  46.996 -                JUNIT DEBUGGING SECTION
  46.997 -            -->
  46.998 -    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
  46.999 -        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
 46.1000 -        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
 46.1001 -        <delete file="${test.report.file}"/>
 46.1002 -        <!-- must exist, otherwise the XML formatter would fail -->
 46.1003 -        <mkdir dir="${build.test.results.dir}"/>
 46.1004 -        <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}">
 46.1005 -            <customize>
 46.1006 -                <arg value="showoutput=true"/>
 46.1007 -                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
 46.1008 -                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
 46.1009 -            </customize>
 46.1010 -        </webproject1:debug>
 46.1011 -    </target>
 46.1012 -    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
 46.1013 -        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
 46.1014 -    </target>
 46.1015 -    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
 46.1016 -    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
 46.1017 -        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
 46.1018 -    </target>
 46.1019 -    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
 46.1020 -    <!--
 46.1021 -        =========================
 46.1022 -        TESTS PROFILING  SECTION
 46.1023 -        =========================
 46.1024 -        -->
 46.1025 -    <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
 46.1026 -        <nbprofiledirect>
 46.1027 -            <classpath>
 46.1028 -                <path path="${run.test.classpath}"/>
 46.1029 -                <path path="${j2ee.platform.classpath}"/>
 46.1030 -            </classpath>
 46.1031 -        </nbprofiledirect>
 46.1032 -        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
 46.1033 -            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
 46.1034 -            <jvmarg value="${profiler.info.jvmargs.agent}"/>
 46.1035 -            <jvmarg line="${profiler.info.jvmargs}"/>
 46.1036 -            <test name="${profile.class}"/>
 46.1037 -            <classpath>
 46.1038 -                <path path="${run.test.classpath}"/>
 46.1039 -                <path path="${j2ee.platform.classpath}"/>
 46.1040 -            </classpath>
 46.1041 -            <syspropertyset>
 46.1042 -                <propertyref prefix="test-sys-prop."/>
 46.1043 -                <mapper from="test-sys-prop.*" to="*" type="glob"/>
 46.1044 -            </syspropertyset>
 46.1045 -            <formatter type="brief" usefile="false"/>
 46.1046 -            <formatter type="xml"/>
 46.1047 -        </junit>
 46.1048 -    </target>
 46.1049 -    <!--
 46.1050 -                
 46.1051 -                CLEANUP SECTION
 46.1052 -            -->
 46.1053 -    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
 46.1054 -        <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
 46.1055 -    </target>
 46.1056 -    <target depends="init" name="do-clean">
 46.1057 -        <condition property="build.dir.to.clean" value="${build.web.dir}">
 46.1058 -            <isset property="dist.ear.dir"/>
 46.1059 -        </condition>
 46.1060 -        <property name="build.dir.to.clean" value="${build.web.dir}"/>
 46.1061 -        <delete includeEmptyDirs="true" quiet="true">
 46.1062 -            <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
 46.1063 -        </delete>
 46.1064 -        <delete dir="${build.dir}"/>
 46.1065 -        <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
 46.1066 -        <delete dir="${dist.dir}"/>
 46.1067 -    </target>
 46.1068 -    <target depends="do-clean" if="status.clean-failed" name="check-clean">
 46.1069 -        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
 46.1070 -        <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
 46.1071 -    </target>
 46.1072 -    <target depends="init" if="netbeans.home" name="undeploy-clean">
 46.1073 -        <nbundeploy failOnError="false" startServer="false"/>
 46.1074 -    </target>
 46.1075 -    <target name="-post-clean">
 46.1076 -        <!-- Empty placeholder for easier customization. -->
 46.1077 -        <!-- You can override this target in the ../build.xml file. -->
 46.1078 -    </target>
 46.1079 -    <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
 46.1080 -    <target depends="clean" description="Clean build products." name="clean-ear"/>
 46.1081 -</project>
    47.1 --- a/java/nekurak.net-ws/nbproject/genfiles.properties	Tue Jul 19 15:20:47 2011 +0200
    47.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    47.3 @@ -1,12 +0,0 @@
    47.4 -build.xml.data.CRC32=4cb22909
    47.5 -build.xml.script.CRC32=a0b9ee34
    47.6 -build.xml.stylesheet.CRC32=c0ebde35@1.21.2.1
    47.7 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
    47.8 -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    47.9 -nbproject/build-impl.xml.data.CRC32=6e851502
   47.10 -nbproject/build-impl.xml.script.CRC32=9d4ac7d8
   47.11 -nbproject/build-impl.xml.stylesheet.CRC32=8ca9f0e6@1.31.2.1
   47.12 -nbproject/wsit-deploy.xml.data.CRC32=4cb22909
   47.13 -nbproject/wsit-deploy.xml.script.CRC32=deb039de
   47.14 -nbproject/wsit-deploy.xml.stylesheet.CRC32=beb36995@3.9.1
   47.15 -nbproject/jaxws-build.xml.stylesheet.CRC32=03b77b15
    48.1 --- a/java/nekurak.net-ws/nbproject/jax-ws.xml	Tue Jul 19 15:20:47 2011 +0200
    48.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    48.3 @@ -1,12 +0,0 @@
    48.4 -<?xml version="1.0" encoding="UTF-8"?>
    48.5 -<jax-ws xmlns="http://www.netbeans.org/ns/jax-ws/1">
    48.6 -  <services>
    48.7 -    <service name="Podnik">
    48.8 -      <implementation-class>cz.frantovo.nekurak.ws.Podnik</implementation-class>
    48.9 -    </service>
   48.10 -    <service name="Pokus">
   48.11 -      <implementation-class>cz.frantovo.nekurak.ws.Pokus</implementation-class>
   48.12 -    </service>
   48.13 -  </services>
   48.14 -  <clients/>
   48.15 -</jax-ws>
    49.1 --- a/java/nekurak.net-ws/nbproject/jaxws-build.xml	Tue Jul 19 15:20:47 2011 +0200
    49.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    49.3 @@ -1,45 +0,0 @@
    49.4 -<?xml version="1.0" encoding="UTF-8"?>
    49.5 -<!--
    49.6 -        *** GENERATED FROM jax-ws.xml - DO NOT EDIT !                             ***
    49.7 -        *** TO MODIFY wsimport options USE Web Service node -> Edit WS Attributes ***
    49.8 -        *** TO CHANGE TARGETS GENERATED TO jaxws-build.xml COPY THOSE             ***
    49.9 -        *** TARGETS TO ../build.xml AND MODIFY THAT FILE INSTEAD                  ***
   49.10 -
   49.11 -        -->
   49.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">
   49.13 -    <!--
   49.14 -                ===================
   49.15 -                JAX-WS WSGEN SECTION
   49.16 -                ===================
   49.17 -            -->
   49.18 -    <target name="wsgen-init" depends="init, -do-compile">
   49.19 -        <mkdir dir="${build.generated.sources.dir}/jax-ws/resources/"/>
   49.20 -        <mkdir dir="${build.classes.dir}"/>
   49.21 -        <mkdir dir="${build.classes.dir}/META-INF"/>
   49.22 -        <property name="j2ee.platform.wsgen.classpath" value="${libs.jaxws21.classpath}"/>
   49.23 -        <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
   49.24 -            <classpath path="${java.home}/../lib/tools.jar:${build.classes.dir}:${j2ee.platform.wsgen.classpath}:${javac.classpath}"/>
   49.25 -        </taskdef>
   49.26 -    </target>
   49.27 -    <target name="wsgen-Podnik" depends="wsgen-init">
   49.28 -        <copy todir="${build.classes.dir}/META-INF">
   49.29 -            <fileset dir="${webinf.dir}" includes="wsit-cz.frantovo.nekurak.ws.Podnik.xml"/>
   49.30 -        </copy>
   49.31 -        <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.Podnik">
   49.32 -            <classpath path="${java.home}/../lib/tools.jar:${build.classes.dir}:${j2ee.platform.wsgen.classpath}:${javac.classpath}"/>
   49.33 -        </wsgen>
   49.34 -    </target>
   49.35 -    <target name="wsgen-Pokus" depends="wsgen-init">
   49.36 -        <copy todir="${build.classes.dir}/META-INF">
   49.37 -            <fileset dir="${webinf.dir}" includes="wsit-cz.frantovo.nekurak.ws.Pokus.xml"/>
   49.38 -        </copy>
   49.39 -        <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">
   49.40 -            <classpath path="${java.home}/../lib/tools.jar:${build.classes.dir}:${j2ee.platform.wsgen.classpath}:${javac.classpath}"/>
   49.41 -        </wsgen>
   49.42 -    </target>
   49.43 -    <!--
   49.44 -                ===================
   49.45 -                JAX-WS WSIMPORT SECTION
   49.46 -                ===================
   49.47 -            -->
   49.48 -</project>
    50.1 --- a/java/nekurak.net-ws/nbproject/project.properties	Tue Jul 19 15:20:47 2011 +0200
    50.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    50.3 @@ -1,89 +0,0 @@
    50.4 -annotation.processing.enabled=true
    50.5 -annotation.processing.enabled.in.editor=true
    50.6 -annotation.processing.run.all.processors=true
    50.7 -annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
    50.8 -build.classes.dir=${build.web.dir}/WEB-INF/classes
    50.9 -build.classes.excludes=**/*.java,**/*.form
   50.10 -build.dir=build
   50.11 -build.generated.dir=${build.dir}/generated
   50.12 -build.generated.sources.dir=${build.dir}/generated-sources
   50.13 -build.test.classes.dir=${build.dir}/test/classes
   50.14 -build.test.results.dir=${build.dir}/test/results
   50.15 -build.web.dir=${build.dir}/web
   50.16 -build.web.excludes=${build.classes.excludes}
   50.17 -client.urlPart=
   50.18 -compile.jsps=false
   50.19 -conf.dir=${source.root}/conf
   50.20 -debug.classpath=${build.classes.dir}:${javac.classpath}
   50.21 -debug.test.classpath=\
   50.22 -    ${run.test.classpath}
   50.23 -display.browser=true
   50.24 -dist.dir=dist
   50.25 -dist.ear.war=${dist.dir}/${war.ear.name}
   50.26 -dist.javadoc.dir=${dist.dir}/javadoc
   50.27 -dist.war=${dist.dir}/${war.name}
   50.28 -endorsed.classpath=\
   50.29 -    ${libs.javaee-endorsed-api-6.0.classpath}
   50.30 -excludes=
   50.31 -includes=**
   50.32 -j2ee.compile.on.save=false
   50.33 -j2ee.deploy.on.save=false
   50.34 -j2ee.platform=1.6-web
   50.35 -j2ee.platform.classpath=${j2ee.server.home}/modules/endorsed/javax.annotation.jar:${j2ee.server.home}/modules/javax.transaction.jar:${j2ee.server.home}/modules/jsf-api.jar:${j2ee.server.home}/modules/jsf-impl.jar:${j2ee.server.home}/modules/jaxrpc-api-osgi.jar:${j2ee.server.home}/modules/javax.enterprise.deploy.jar:${j2ee.server.home}/modules/javax.resource.jar:${j2ee.server.home}/modules/jstl-impl.jar:${j2ee.server.home}/modules/jersey-core.jar:${j2ee.server.home}/modules/javax.security.auth.message.jar:${j2ee.server.home}/modules/javax.servlet.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.ejb.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/javax.management.j2ee.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.jms.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/javax.security.jacc.jar:${j2ee.server.home}/modules/javax.persistence.jar
   50.36 -j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar
   50.37 -j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar
   50.38 -j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/javax.ejb.jar
   50.39 -j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/javax.ejb.jar
   50.40 -j2ee.platform.wsit.classpath=
   50.41 -j2ee.server.type=gfv3ee6
   50.42 -jar.compress=false
   50.43 -javac.classpath=\
   50.44 -    ${reference.nekurak_net-lib.jar}
   50.45 -# Space-separated list of extra javac options
   50.46 -javac.compilerargs=
   50.47 -javac.debug=true
   50.48 -javac.deprecation=false
   50.49 -javac.processorpath=\
   50.50 -    ${javac.classpath}
   50.51 -javac.source=1.6
   50.52 -javac.target=1.6
   50.53 -javac.test.classpath=\
   50.54 -    ${javac.classpath}:\
   50.55 -    ${build.classes.dir}:\
   50.56 -    ${libs.junit.classpath}:\
   50.57 -    ${libs.junit_4.classpath}
   50.58 -javac.test.processorpath=${javac.test.classpath}
   50.59 -javadoc.additionalparam=
   50.60 -javadoc.author=false
   50.61 -javadoc.encoding=${source.encoding}
   50.62 -javadoc.noindex=false
   50.63 -javadoc.nonavbar=false
   50.64 -javadoc.notree=false
   50.65 -javadoc.preview=true
   50.66 -javadoc.private=false
   50.67 -javadoc.splitindex=true
   50.68 -javadoc.use=true
   50.69 -javadoc.version=false
   50.70 -javadoc.windowtitle=
   50.71 -jspcompilation.classpath=${jspc.classpath}:${javac.classpath}
   50.72 -lib.dir=${web.docbase.dir}/WEB-INF/lib
   50.73 -persistence.xml.dir=${conf.dir}
   50.74 -platform.active=default_platform
   50.75 -project.nekurak_net-lib=../nekurak.net-lib
   50.76 -reference.nekurak_net-lib.jar=${project.nekurak_net-lib}/dist/nekurak.net-lib.jar
   50.77 -resource.dir=setup
   50.78 -run.test.classpath=\
   50.79 -    ${javac.test.classpath}:\
   50.80 -    ${build.test.classes.dir}
   50.81 -# Space-separated list of JVM arguments used when running a class with a main method or a unit test
   50.82 -# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
   50.83 -runmain.jvmargs=
   50.84 -source.encoding=UTF-8
   50.85 -source.root=src
   50.86 -src.dir=${source.root}/java
   50.87 -test.src.dir=test
   50.88 -war.content.additional=
   50.89 -war.ear.name=nekurak.net-ws.war
   50.90 -war.name=nekurak.net-ws.war
   50.91 -web.docbase.dir=web
   50.92 -webinf.dir=web/WEB-INF
    51.1 --- a/java/nekurak.net-ws/nbproject/project.xml	Tue Jul 19 15:20:47 2011 +0200
    51.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    51.3 @@ -1,36 +0,0 @@
    51.4 -<?xml version="1.0" encoding="UTF-8"?>
    51.5 -<project xmlns="http://www.netbeans.org/ns/project/1">
    51.6 -    <type>org.netbeans.modules.web.project</type>
    51.7 -    <configuration>
    51.8 -        <buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1">
    51.9 -            <extension file="jaxws-build.xml" id="jaxws"/>
   51.10 -        </buildExtensions>
   51.11 -        <data xmlns="http://www.netbeans.org/ns/web-project/3">
   51.12 -            <name>nekurak.net-ws</name>
   51.13 -            <minimum-ant-version>1.6.5</minimum-ant-version>
   51.14 -            <web-module-libraries>
   51.15 -                <library dirs="200">
   51.16 -                    <file>${reference.nekurak_net-lib.jar}</file>
   51.17 -                    <path-in-war>WEB-INF/lib</path-in-war>
   51.18 -                </library>
   51.19 -            </web-module-libraries>
   51.20 -            <web-module-additional-libraries/>
   51.21 -            <source-roots>
   51.22 -                <root id="src.dir"/>
   51.23 -            </source-roots>
   51.24 -            <test-roots>
   51.25 -                <root id="test.src.dir"/>
   51.26 -            </test-roots>
   51.27 -        </data>
   51.28 -        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
   51.29 -            <reference>
   51.30 -                <foreign-project>nekurak_net-lib</foreign-project>
   51.31 -                <artifact-type>jar</artifact-type>
   51.32 -                <script>build.xml</script>
   51.33 -                <target>jar</target>
   51.34 -                <clean-target>clean</clean-target>
   51.35 -                <id>jar</id>
   51.36 -            </reference>
   51.37 -        </references>
   51.38 -    </configuration>
   51.39 -</project>
    52.1 --- a/java/nekurak.net-ws/nbproject/wsit-deploy.xml	Tue Jul 19 15:20:47 2011 +0200
    52.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    52.3 @@ -1,86 +0,0 @@
    52.4 -<?xml version="1.0" encoding="UTF-8"?>
    52.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">
    52.6 -    <target name="-wsit-init">
    52.7 -        <property file="nbproject/private/private.properties"/>
    52.8 -        <condition property="user.properties.file" value="${netbeans.user}/build.properties">
    52.9 -            <not>
   52.10 -                <isset property="user.properties.file"/>
   52.11 -            </not>
   52.12 -        </condition>
   52.13 -        <property file="${deploy.ant.properties.file}"/>
   52.14 -        <condition property="appserver.root" value="${sjsas.root}">
   52.15 -            <isset property="sjsas.root"/>
   52.16 -        </condition>
   52.17 -        <condition property="appserver.password" value="${sjsas.password}">
   52.18 -            <isset property="sjsas.password"/>
   52.19 -        </condition>
   52.20 -        <condition property="appserver.root" value="${gfv3.root}">
   52.21 -            <isset property="gfv3.root"/>
   52.22 -        </condition>
   52.23 -        <condition property="appserver.password" value="${gfv3.password}">
   52.24 -            <isset property="gfv3.password"/>
   52.25 -        </condition>
   52.26 -        <condition property="appserver.password" value="changeit">
   52.27 -            <not>
   52.28 -                <isset property="appserver.password"/>
   52.29 -            </not>
   52.30 -        </condition>
   52.31 -        <fail unless="user.properties.file">Must set user properties file</fail>
   52.32 -        <fail unless="appserver.root">Must set Sun app server root</fail>
   52.33 -        <fail unless="appserver.password">Must set Sun app server password</fail>
   52.34 -    </target>
   52.35 -    <target name="-create-wsit-prop" unless="do.not.create.wsit.prop">
   52.36 -        <echo file="nbproject/wsit.properties" message="AS_ADMIN_USERPASSWORD=${appserver.password}"/>
   52.37 -    </target>
   52.38 -    <target name="-delete-create-wsit-file" if="user.created">
   52.39 -        <delete file="nbproject/wsit.createuser"/>
   52.40 -    </target>
   52.41 -    <target name="create-user" unless="user.exists">
   52.42 -        <exec timeout="10000" outputproperty="creation.out" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="unix">
   52.43 -            <arg value="create-file-user"/>
   52.44 -            <arg value="--passwordfile"/>
   52.45 -            <arg value="nbproject/wsit.properties"/>
   52.46 -            <arg value="wsitUser"/>
   52.47 -        </exec>
   52.48 -        <exec timeout="10000" outputproperty="creation.out" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="mac">
   52.49 -            <arg value="create-file-user"/>
   52.50 -            <arg value="--passwordfile"/>
   52.51 -            <arg value="nbproject/wsit.properties"/>
   52.52 -            <arg value="wsitUser"/>
   52.53 -        </exec>
   52.54 -        <exec timeout="10000" outputproperty="creation.out" executable="${appserver.root}/bin/asadmin.bat" failonerror="false" failifexecutionfails="false" osfamily="windows">
   52.55 -            <arg value="create-file-user"/>
   52.56 -            <arg value="--passwordfile"/>
   52.57 -            <arg value="nbproject/wsit.properties"/>
   52.58 -            <arg value="wsitUser"/>
   52.59 -        </exec>
   52.60 -        <condition property="user.created">
   52.61 -            <and>
   52.62 -                <contains string="${creation.out}" substring="create-file-user"/>
   52.63 -                <contains string="${creation.out}" substring="success"/>
   52.64 -            </and>
   52.65 -        </condition>
   52.66 -        <antcall target="-delete-create-wsit-file"/>
   52.67 -    </target>
   52.68 -    <target name="-do-create-user" if="do-create-user">
   52.69 -        <available property="do.not.create.wsit.prop" file="nbproject/wsit.properties"/>
   52.70 -        <antcall target="-create-wsit-prop"/>
   52.71 -        <exec timeout="10000" outputproperty="as.users" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="unix">
   52.72 -            <arg value="list-file-users"/>
   52.73 -        </exec>
   52.74 -        <exec timeout="10000" outputproperty="as.users" executable="${appserver.root}/bin/asadmin" failonerror="false" failifexecutionfails="false" osfamily="mac">
   52.75 -            <arg value="list-file-users"/>
   52.76 -        </exec>
   52.77 -        <exec timeout="10000" outputproperty="as.users" executable="${appserver.root}/bin/asadmin.bat" failonerror="false" failifexecutionfails="false" osfamily="windows">
   52.78 -            <arg value="list-file-users"/>
   52.79 -        </exec>
   52.80 -        <condition property="user.exists">
   52.81 -            <contains string="${as.users}" substring="wsitUser"/>
   52.82 -        </condition>
   52.83 -        <antcall target="create-user"/>
   52.84 -    </target>
   52.85 -    <target name="-post-run-deploy" depends="-wsit-init">
   52.86 -        <available property="do-create-user" file="nbproject/wsit.createuser"/>
   52.87 -        <antcall target="-do-create-user"/>
   52.88 -    </target>
   52.89 -</project>
    53.1 --- a/java/nekurak.net-ws/src/conf/MANIFEST.MF	Tue Jul 19 15:20:47 2011 +0200
    53.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    53.3 @@ -1,2 +0,0 @@
    53.4 -Manifest-Version: 1.0
    53.5 -
    54.1 --- a/java/nekurak.net-ws/src/java/cz/frantovo/nekurak/ws/Podnik.java	Tue Jul 19 15:20:47 2011 +0200
    54.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    54.3 @@ -1,27 +0,0 @@
    54.4 -package cz.frantovo.nekurak.ws;
    54.5 -
    54.6 -import cz.frantovo.nekurak.ejb.PodnikRemote;
    54.7 -import javax.ejb.EJB;
    54.8 -import javax.jws.WebMethod;
    54.9 -import javax.jws.WebService;
   54.10 -
   54.11 -/**
   54.12 - *
   54.13 - * @author fiki
   54.14 - */
   54.15 -@WebService(serviceName = "podnikSluzba", targetNamespace = "podnikNS", portName = "podnikPort")
   54.16 -public class Podnik {
   54.17 -
   54.18 -	@EJB
   54.19 -	PodnikRemote ejb;
   54.20 -
   54.21 -	/**
   54.22 -	 * Projde podniky, které nemají vyplněné souřadnice,
   54.23 -	 * a pokusí se je doplnit na základě poštovní adresy podniku.
   54.24 -	 * @return počet podniků, u nichž jsme doplnili souřadnice
   54.25 -	 */
   54.26 -	@WebMethod(operationName = "dopocitejSouradnicePodleAdres")
   54.27 -	public int dopocitejSouradnice() {
   54.28 -		return ejb.dopocitejSouradnice();
   54.29 -	}
   54.30 -}
    55.1 --- a/java/nekurak.net-ws/src/java/cz/frantovo/nekurak/ws/Pokus.java	Tue Jul 19 15:20:47 2011 +0200
    55.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    55.3 @@ -1,29 +0,0 @@
    55.4 -package cz.frantovo.nekurak.ws;
    55.5 -
    55.6 -import javax.jws.WebMethod;
    55.7 -import javax.jws.WebParam;
    55.8 -import javax.jws.WebService;
    55.9 -import javax.jws.soap.SOAPBinding;
   55.10 -
   55.11 -/**
   55.12 - *
   55.13 - * Jedinou povinnou anotací je zde @WebService – ostatní nejsou nutné 
   55.14 - * a slouží k například k upřesnění názvu WS operace (pokud se má jmenovat jinak než metoda v Javě)
   55.15 - * nebo k definování názvů parametrů.
   55.16 - *
   55.17 - * @author fiki
   55.18 - */
   55.19 -@WebService(serviceName = "pokusnaSluzba", targetNamespace = "pokusNS", portName = "pokusnyPort")
   55.20 -@SOAPBinding(style = SOAPBinding.Style.RPC, use = SOAPBinding.Use.ENCODED)
   55.21 -public class Pokus {
   55.22 -
   55.23 -	/**
   55.24 -	 * Pozdraví osobu
   55.25 -	 * @param koho jméno osoby v pátém pádě
   55.26 -	 * @return věta – pozdrav
   55.27 -	 */
   55.28 -	@WebMethod(operationName = "pozdravOsobu")
   55.29 -	public String pozdrav(@WebParam(name = "jmenoOsoby") String koho) {
   55.30 -		return "Ahoj, " + koho + "!";
   55.31 -	}
   55.32 -}
    56.1 --- a/java/nekurak.net-ws/web/WEB-INF/beans.xml	Tue Jul 19 15:20:47 2011 +0200
    56.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    56.3 @@ -1,5 +0,0 @@
    56.4 -<?xml version="1.0" encoding="UTF-8"?>
    56.5 -<beans xmlns="http://java.sun.com/xml/ns/javaee"
    56.6 -       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    56.7 -       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
    56.8 -</beans>
    57.1 --- a/java/nekurak.net-ws/web/WEB-INF/sun-web.xml	Tue Jul 19 15:20:47 2011 +0200
    57.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    57.3 @@ -1,11 +0,0 @@
    57.4 -<?xml version="1.0" encoding="UTF-8"?>
    57.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">
    57.6 -<sun-web-app error-url="">
    57.7 -	<context-root>/nekurak.net-ws</context-root>
    57.8 -	<class-loader delegate="true"/>
    57.9 -	<jsp-config>
   57.10 -		<property name="keepgenerated" value="true">
   57.11 -			<description>Keep a copy of the generated servlet class' java code.</description>
   57.12 -		</property>
   57.13 -	</jsp-config>
   57.14 -</sun-web-app>
    58.1 --- a/java/nekurak.net-ws/web/WEB-INF/web.xml	Tue Jul 19 15:20:47 2011 +0200
    58.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    58.3 @@ -1,12 +0,0 @@
    58.4 -<?xml version="1.0" encoding="UTF-8"?>
    58.5 -
    58.6 -<web-app xmlns="http://java.sun.com/xml/ns/javaee"
    58.7 -	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    58.8 -	 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    58.9 -	 version="3.0">
   58.10 -	<session-config>
   58.11 -		<session-timeout>
   58.12 -			30
   58.13 -		</session-timeout>
   58.14 -	</session-config>
   58.15 -</web-app>
    59.1 --- a/java/nekurak.net-ws/web/WEB-INF/wsit-cz.frantovo.nekurak.ws.Pokus.xml	Tue Jul 19 15:20:47 2011 +0200
    59.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    59.3 @@ -1,81 +0,0 @@
    59.4 -<?xml version="1.0" encoding="UTF-8"?> 
    59.5 -<definitions 
    59.6 -    xmlns="http://schemas.xmlsoap.org/wsdl/"
    59.7 -    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    59.8 -    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    59.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"
   59.10 -    >
   59.11 - <message name="pozdravOsobu"/>
   59.12 - <message name="pozdravOsobuResponse"/>
   59.13 - <portType name="Pokus">
   59.14 -  <operation name="pozdravOsobu">
   59.15 -   <input message="tns:pozdravOsobu"/>
   59.16 -   <output message="tns:pozdravOsobuResponse"/>
   59.17 -  </operation>
   59.18 - </portType>
   59.19 -    <binding name="PokusPortBinding" type="tns:Pokus">
   59.20 -     <operation name="pozdravOsobu">
   59.21 -      <input/>
   59.22 -      <output/>
   59.23 -     </operation>
   59.24 -    </binding>
   59.25 -    <service name="PokusService">
   59.26 -	<port name="PokusPort" binding="tns:PokusPortBinding"/>
   59.27 -    </service>
   59.28 -    <wsp:Policy wsu:Id="PokusPortBinding_pozdrav_Input_Policy">
   59.29 -	<wsp:ExactlyOne>
   59.30 -	    <wsp:All>
   59.31 -		<sp:EncryptedParts>
   59.32 -		    <sp:Body/>
   59.33 -		 <sp:Body/>
   59.34 -		</sp:EncryptedParts>
   59.35 -		<sp:SignedParts>
   59.36 -		    <sp:Body/>
   59.37 -		 <sp:Body/>
   59.38 -		</sp:SignedParts>
   59.39 -	    </wsp:All>
   59.40 -	</wsp:ExactlyOne>
   59.41 -    </wsp:Policy>
   59.42 -    <wsp:Policy wsu:Id="PokusPortBinding_pozdrav_Output_Policy">
   59.43 -	<wsp:ExactlyOne>
   59.44 -	    <wsp:All>
   59.45 -		<sp:EncryptedParts>
   59.46 -		    <sp:Body/>
   59.47 -		 <sp:Body/>
   59.48 -		</sp:EncryptedParts>
   59.49 -		<sp:SignedParts>
   59.50 -		    <sp:Body/>
   59.51 -		 <sp:Body/>
   59.52 -		</sp:SignedParts>
   59.53 -	    </wsp:All>
   59.54 -	</wsp:ExactlyOne>
   59.55 -    </wsp:Policy>
   59.56 - <wsp:Policy wsu:Id="PokusPortBinding_pozdravOsobu_Input_Policy">
   59.57 -  <wsp:ExactlyOne>
   59.58 -   <wsp:All>
   59.59 -    <sp:EncryptedParts>
   59.60 -     <sp:Body/>
   59.61 -    </sp:EncryptedParts>
   59.62 -    <sp:SignedParts>
   59.63 -     <sp:Body/>
   59.64 -    </sp:SignedParts>
   59.65 -   </wsp:All>
   59.66 -  </wsp:ExactlyOne>
   59.67 - </wsp:Policy>
   59.68 - <wsp:Policy wsu:Id="PokusPortBinding_pozdravOsobu_Output_Policy">
   59.69 -  <wsp:ExactlyOne>
   59.70 -   <wsp:All>
   59.71 -    <sp:EncryptedParts>
   59.72 -     <sp:Body/>
   59.73 -    </sp:EncryptedParts>
   59.74 -    <sp:SignedParts>
   59.75 -     <sp:Body/>
   59.76 -    </sp:SignedParts>
   59.77 -   </wsp:All>
   59.78 -  </wsp:ExactlyOne>
   59.79 - </wsp:Policy>
   59.80 -</definitions>
   59.81 -
   59.82 -
   59.83 -
   59.84 -
    60.1 --- a/java/nekurak.net-ws/web/index.jsp	Tue Jul 19 15:20:47 2011 +0200
    60.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    60.3 @@ -1,39 +0,0 @@
    60.4 -<?xml version="1.0" encoding="UTF-8"?>
    60.5 -<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    60.6 -		  xmlns:c="http://java.sun.com/jsp/jstl/core"
    60.7 -		  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
    60.8 -		  version="2.0">
    60.9 -	<jsp:directive.page contentType="application/xhtml+xml"/>
   60.10 -
   60.11 -	<jsp:output doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd"
   60.12 -				doctype-root-element="html"
   60.13 -				omit-xml-declaration="false"/>
   60.14 -
   60.15 -	<html xmlns="http://www.w3.org/1999/xhtml"
   60.16 -		  xmlns:svg="http://www.w3.org/2000/svg"
   60.17 -		  xmlns:xlink="http://www.w3.org/1999/xlink">
   60.18 -		<head>
   60.19 -			<title>WS SOAP</title>
   60.20 -		</head>
   60.21 -		<body>
   60.22 -			<h1>WS SOAP</h1>
   60.23 -			<p>API postavené na webových službách</p>
   60.24 -
   60.25 -			<!-- TODO: generovat dynamicky  -->
   60.26 -
   60.27 -			<h2>Pokusná služba</h2>
   60.28 -			<ul>
   60.29 -				<li><a href="pokusnaSluzba?WSDL">WSDL – popis služby</a></li>
   60.30 -				<li><a href="pokusnaSluzba?Tester">Webové rozhraní pro vyzkoušení</a></li>
   60.31 -			</ul>
   60.32 -
   60.33 -			<h2>Podnik – služba</h2>
   60.34 -			<ul>
   60.35 -				<li><a href="podnikSluzba?WSDL">WSDL – popis služby</a></li>
   60.36 -				<li><a href="podnikSluzba?Tester">Webové rozhraní pro vyzkoušení</a></li>
   60.37 -			</ul>
   60.38 -
   60.39 -		</body>
   60.40 -	</html>
   60.41 -
   60.42 -</jsp:root>