Založení projektů (ejb, lib, web)
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 14 Mar 2009 21:58:41 +0100
changeset 016a1fc2116d6
child 1 55b52df32ec2
Založení projektů (ejb, lib, web)
.hgignore
java/HibernateDemo1/HibernateDemo1-ejb/build.xml
java/HibernateDemo1/HibernateDemo1-ejb/nbproject/ant-deploy.xml
java/HibernateDemo1/HibernateDemo1-ejb/nbproject/build-impl.xml
java/HibernateDemo1/HibernateDemo1-ejb/nbproject/genfiles.properties
java/HibernateDemo1/HibernateDemo1-ejb/nbproject/project.properties
java/HibernateDemo1/HibernateDemo1-ejb/nbproject/project.xml
java/HibernateDemo1/HibernateDemo1-ejb/src/java/cz/frantovo/hibernateDemo1/CilDAOBean.java
java/HibernateDemo1/HibernateDemo1-lib/build.xml
java/HibernateDemo1/HibernateDemo1-lib/nbproject/build-impl.xml
java/HibernateDemo1/HibernateDemo1-lib/nbproject/genfiles.properties
java/HibernateDemo1/HibernateDemo1-lib/nbproject/project.properties
java/HibernateDemo1/HibernateDemo1-lib/nbproject/project.xml
java/HibernateDemo1/HibernateDemo1-lib/src/cz/frantovo/hibernateDemo1/CilDAORemote.java
java/HibernateDemo1/HibernateDemo1-lib/src/cz/frantovo/hibernateDemo1/dto/Cil.java
java/HibernateDemo1/HibernateDemo1-war/build.xml
java/HibernateDemo1/HibernateDemo1-war/nbproject/ant-deploy.xml
java/HibernateDemo1/HibernateDemo1-war/nbproject/build-impl.xml
java/HibernateDemo1/HibernateDemo1-war/nbproject/genfiles.properties
java/HibernateDemo1/HibernateDemo1-war/nbproject/project.properties
java/HibernateDemo1/HibernateDemo1-war/nbproject/project.xml
java/HibernateDemo1/HibernateDemo1-war/web/WEB-INF/sun-web.xml
java/HibernateDemo1/HibernateDemo1-war/web/WEB-INF/web.xml
java/HibernateDemo1/HibernateDemo1-war/web/index.jsp
java/HibernateDemo1/build.xml
java/HibernateDemo1/nbproject/ant-deploy.xml
java/HibernateDemo1/nbproject/build-impl.xml
java/HibernateDemo1/nbproject/genfiles.properties
java/HibernateDemo1/nbproject/project.properties
java/HibernateDemo1/nbproject/project.xml
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgignore	Sat Mar 14 21:58:41 2009 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +java/HibernateDemo1/nbproject/private
     1.5 +java/HibernateDemo1/build
     1.6 +java/HibernateDemo1/dist
     1.7 +java/HibernateDemo1/src/conf/MANIFEST.MF
     1.8 +
     1.9 +java/HibernateDemo1/HibernateDemo1-war/nbproject/private
    1.10 +java/HibernateDemo1/HibernateDemo1-war/build
    1.11 +java/HibernateDemo1/HibernateDemo1-war/dist
    1.12 +java/HibernateDemo1/HibernateDemo1-war/src/conf/MANIFEST.MF
    1.13 +
    1.14 +java/HibernateDemo1/HibernateDemo1-lib/nbproject/private
    1.15 +java/HibernateDemo1/HibernateDemo1-lib/build
    1.16 +java/HibernateDemo1/HibernateDemo1-lib/dist
    1.17 +
    1.18 +java/HibernateDemo1/HibernateDemo1-ejb/nbproject/private
    1.19 +java/HibernateDemo1/HibernateDemo1-ejb/build
    1.20 +java/HibernateDemo1/HibernateDemo1-ejb/dist
    1.21 +java/HibernateDemo1/HibernateDemo1-ejb/src/conf/MANIFEST.MF
    1.22 +
    1.23 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/java/HibernateDemo1/HibernateDemo1-ejb/build.xml	Sat Mar 14 21:58:41 2009 +0100
     2.3 @@ -0,0 +1,68 @@
     2.4 +<?xml version="1.0" encoding="UTF-8"?>
     2.5 +<!-- You may freely edit this file. See commented blocks below for -->
     2.6 +<!-- some examples of how to customize the build. -->
     2.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
     2.8 +<!-- By default, only the Clean and Build commands use this build script. -->
     2.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
    2.10 +<!-- the Compile on Save feature is turned off for the project. -->
    2.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
    2.12 +<!-- in the project's Project Properties dialog box.-->
    2.13 +<project name="HibernateDemo1-ejb" default="default" basedir="." xmlns:ejbjarproject="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
    2.14 +    <description>Builds, tests, and runs the project HibernateDemo1-ejb.</description>
    2.15 +    <import file="nbproject/build-impl.xml"/>
    2.16 +    <!--
    2.17 +
    2.18 +    There exist several targets which are by default empty and which can be 
    2.19 +    used for execution of your tasks. These targets are usually executed 
    2.20 +    before and after some main targets. They are: 
    2.21 +
    2.22 +      -pre-init:                 called before initialization of project properties
    2.23 +      -post-init:                called after initialization of project properties
    2.24 +      -pre-compile:              called before javac compilation
    2.25 +      -post-compile:             called after javac compilation
    2.26 +      -pre-compile-single:       called before javac compilation of single file
    2.27 +      -post-compile-single:      called after javac compilation of single file
    2.28 +      -pre-dist:                 called before archive building
    2.29 +      -post-dist:                called after archive building
    2.30 +      -post-clean:               called after cleaning build products
    2.31 +      -pre-run-deploy:           called before deploying
    2.32 +      -post-run-deploy:          called after deploying
    2.33 +
    2.34 +    (Targets beginning with '-' are not intended to be called on their own.)
    2.35 +
    2.36 +    Example of pluging an obfuscator after the compilation could look like 
    2.37 +
    2.38 +        <target name="-post-compile">
    2.39 +            <obfuscate>
    2.40 +                <fileset dir="${build.classes.dir}"/>
    2.41 +            </obfuscate>
    2.42 +        </target>
    2.43 +
    2.44 +    For list of available properties check the imported 
    2.45 +    nbproject/build-impl.xml file. 
    2.46 +
    2.47 +
    2.48 +    Other way how to customize the build is by overriding existing main targets.
    2.49 +    The target of interest are: 
    2.50 +
    2.51 +      init-macrodef-javac:    defines macro for javac compilation
    2.52 +      init-macrodef-debug:    defines macro for class debugging
    2.53 +      do-dist:                archive building
    2.54 +      run:                    execution of project 
    2.55 +      javadoc-build:          javadoc generation 
    2.56 +
    2.57 +    Example of overriding the target for project execution could look like 
    2.58 +
    2.59 +        <target name="run" depends="<PROJNAME>-impl.jar">
    2.60 +            <exec dir="bin" executable="launcher.exe">
    2.61 +                <arg file="${dist.jar}"/>
    2.62 +            </exec>
    2.63 +        </target>
    2.64 +
    2.65 +    Notice that overridden target depends on jar target and not only on 
    2.66 +    compile target as regular run target does. Again, for list of available 
    2.67 +    properties which you can use check the target you are overriding in 
    2.68 +    nbproject/build-impl.xml file. 
    2.69 +
    2.70 +    -->
    2.71 +</project>
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/java/HibernateDemo1/HibernateDemo1-ejb/nbproject/ant-deploy.xml	Sat Mar 14 21:58:41 2009 +0100
     3.3 @@ -0,0 +1,60 @@
     3.4 +<?xml version="1.0" encoding="UTF-8"?>
     3.5 +<project default="-deploy-ant" basedir=".">
     3.6 +    <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
     3.7 +        <property file="${deploy.ant.properties.file}" />
     3.8 +        <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
     3.9 +        <available file="${deploy.ant.resource.dir}" property="has.setup"/>
    3.10 +        <tempfile prefix="sjsas" property="sjsas.password.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
    3.11 +        <echo message="AS_ADMIN_PASSWORD=${sjsas.password}" file="${sjsas.password.file}"/>
    3.12 +    </target>
    3.13 +    
    3.14 +    <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
    3.15 +        <tempfile prefix="sjsas" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
    3.16 +        <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
    3.17 +        <!-- The doctype triggers resolution which can fail -->
    3.18 +        <replace file="${temp.sun.web}">
    3.19 +            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
    3.20 +            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
    3.21 +        </replace>
    3.22 +        <replace file="${temp.sun.web}">
    3.23 +            <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
    3.24 +            <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
    3.25 +        </replace>
    3.26 +        <xmlproperty file="${temp.sun.web}" validate="false">
    3.27 +        </xmlproperty>    
    3.28 +        <delete file="${temp.sun.web}"/>
    3.29 +        <property name="deploy.ant.client.url" value="${sjsas.url}${sun-web-app.context-root}"/>
    3.30 +    </target>
    3.31 +    <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
    3.32 +        <tempfile prefix="sjsas" property="sjsas.resources.dir" destdir="${java.io.tmpdir}"/>
    3.33 +        <mkdir dir="${sjsas.resources.dir}"/>
    3.34 +        <mkdir dir="${sjsas.resources.dir}/META-INF"/>
    3.35 +        <property name="sjsas.resources.file" value="${sjsas.resources.dir}/META-INF/sun-resources.xml"/>
    3.36 +        <copy todir="${sjsas.resources.dir}/META-INF">
    3.37 +            <fileset dir="${deploy.ant.resource.dir}"/>
    3.38 +        </copy>
    3.39 +        <jar destfile="${deploy.ant.archive}" update="true">
    3.40 +            <fileset dir="${sjsas.resources.dir}"/>
    3.41 +        </jar>
    3.42 +        <delete dir="${sjsas.resources.dir}"/>
    3.43 +    </target>
    3.44 +    <target name="-deploy-ant" depends="-parse-sun-web,-add-resources" if="deploy.ant.enabled">
    3.45 +        <echo message="Deploying ${deploy.ant.archive}"/>
    3.46 +        <taskdef name="sun-appserv-deploy" classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask"
    3.47 +                 classpath="${sjsas.root}/lib/sun-appserv-ant.jar" />
    3.48 +        <sun-appserv-deploy user="${sjsas.username}"
    3.49 +                passwordfile="${sjsas.password.file}"
    3.50 +                host="${sjsas.host}" port="${sjsas.port}"
    3.51 +                file="${deploy.ant.archive}" asinstalldir="${sjsas.root}"/>
    3.52 +        <delete file="${sjsas.password.file}"/>
    3.53 +    </target>
    3.54 +    <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
    3.55 +        <taskdef name="sun-appserv-undeploy" classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.UndeployTask"
    3.56 +                 classpath="${sjsas.root}/lib/sun-appserv-ant.jar" />
    3.57 +        <sun-appserv-undeploy user="${sjsas.username}"
    3.58 +                passwordfile="${sjsas.password.file}"
    3.59 +                host="${sjsas.host}" port="${sjsas.port}"
    3.60 +                file="${deploy.ant.archive}" asinstalldir="${sjsas.root}"/>
    3.61 +        <delete file="${sjsas.password.file}"/>
    3.62 +    </target>
    3.63 +</project>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/java/HibernateDemo1/HibernateDemo1-ejb/nbproject/build-impl.xml	Sat Mar 14 21:58:41 2009 +0100
     4.3 @@ -0,0 +1,582 @@
     4.4 +<?xml version="1.0" encoding="UTF-8"?>
     4.5 +<!--
     4.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
     4.7 +***         EDIT ../build.xml INSTEAD         ***
     4.8 +
     4.9 +For the purpose of easier reading the script
    4.10 +is divided into following sections:
    4.11 +
    4.12 +  - initialization
    4.13 +  - compilation
    4.14 +  - dist
    4.15 +  - execution
    4.16 +  - debugging
    4.17 +  - javadoc
    4.18 +  - cleanup
    4.19 +
    4.20 +        -->
    4.21 +<project xmlns:ejbjarproject1="http://www.netbeans.org/ns/j2ee-ejbjarproject/1" xmlns:ejbjarproject2="http://www.netbeans.org/ns/j2ee-ejbjarproject/2" xmlns:ejbjarproject3="http://www.netbeans.org/ns/j2ee-ejbjarproject/3" basedir=".." default="default" name="HibernateDemo1-ejb-impl">
    4.22 +    <import file="ant-deploy.xml"/>
    4.23 +    <target depends="dist,javadoc" description="Build whole project." name="default"/>
    4.24 +    <!-- 
    4.25 +                INITIALIZATION SECTION 
    4.26 +            -->
    4.27 +    <target name="-pre-init">
    4.28 +        <!-- Empty placeholder for easier customization. -->
    4.29 +        <!-- You can override this target in the ../build.xml file. -->
    4.30 +    </target>
    4.31 +    <target depends="-pre-init" name="-init-private">
    4.32 +        <property file="nbproject/private/private.properties"/>
    4.33 +    </target>
    4.34 +    <target depends="-pre-init,-init-private" name="-init-userdir">
    4.35 +        <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    4.36 +    </target>
    4.37 +    <target depends="-pre-init,-init-private,-init-userdir" name="-init-user">
    4.38 +        <property file="${user.properties.file}"/>
    4.39 +        <!-- The two properties below are usually overridden -->
    4.40 +        <!-- by the active platform. Just a fallback. -->
    4.41 +        <property name="default.javac.source" value="1.4"/>
    4.42 +        <property name="default.javac.target" value="1.4"/>
    4.43 +    </target>
    4.44 +    <target depends="-pre-init,-init-private,-init-userdir,-init-user" name="-init-project">
    4.45 +        <property file="nbproject/project.properties"/>
    4.46 +    </target>
    4.47 +    <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    4.48 +        <!-- Ensure configuration directory exists. -->
    4.49 +        <mkdir dir="${meta.inf}"/>
    4.50 +        <property name="runmain.jvmargs" value=""/>
    4.51 +        <condition property="have.tests">
    4.52 +            <or>
    4.53 +                <available file="${test.src.dir}"/>
    4.54 +            </or>
    4.55 +        </condition>
    4.56 +        <condition property="have.sources">
    4.57 +            <or>
    4.58 +                <available file="${src.dir}"/>
    4.59 +            </or>
    4.60 +        </condition>
    4.61 +        <condition property="netbeans.home+have.tests">
    4.62 +            <and>
    4.63 +                <isset property="netbeans.home"/>
    4.64 +                <isset property="have.tests"/>
    4.65 +            </and>
    4.66 +        </condition>
    4.67 +        <condition property="no.javadoc.preview">
    4.68 +            <isfalse value="${javadoc.preview}"/>
    4.69 +        </condition>
    4.70 +        <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
    4.71 +        <condition property="classes.dir" value="${build.ear.classes.dir}">
    4.72 +            <isset property="dist.ear.dir"/>
    4.73 +        </condition>
    4.74 +        <property name="classes.dir" value="${build.classes.dir}"/>
    4.75 +        <condition property="no.deps">
    4.76 +            <and>
    4.77 +                <istrue value="${no.dependencies}"/>
    4.78 +            </and>
    4.79 +        </condition>
    4.80 +        <condition property="no.dist.ear.dir">
    4.81 +            <not>
    4.82 +                <isset property="dist.ear.dir"/>
    4.83 +            </not>
    4.84 +        </condition>
    4.85 +        <property name="source.encoding" value="${file.encoding}"/>
    4.86 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
    4.87 +            <and>
    4.88 +                <isset property="javadoc.encoding"/>
    4.89 +                <not>
    4.90 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
    4.91 +                </not>
    4.92 +            </and>
    4.93 +        </condition>
    4.94 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
    4.95 +        <property name="includes" value="**"/>
    4.96 +        <property name="excludes" value=""/>
    4.97 +        <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
    4.98 +            <and>
    4.99 +                <isset property="jaxws.endorsed.dir"/>
   4.100 +                <available file="nbproject/jaxws-build.xml"/>
   4.101 +            </and>
   4.102 +        </condition>
   4.103 +    </target>
   4.104 +    <target depends="init" name="-init-cos" unless="deploy.on.save">
   4.105 +        <condition property="deploy.on.save" value="true">
   4.106 +            <istrue value="${j2ee.deploy.on.save}"/>
   4.107 +        </condition>
   4.108 +    </target>
   4.109 +    <target name="-post-init">
   4.110 +        <!-- Empty placeholder for easier customization. -->
   4.111 +        <!-- You can override this target in the ../build.xml file. -->
   4.112 +    </target>
   4.113 +    <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
   4.114 +        <fail unless="src.dir">Must set src.dir</fail>
   4.115 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
   4.116 +        <fail unless="build.dir">Must set build.dir</fail>
   4.117 +        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
   4.118 +        <fail unless="dist.dir">Must set dist.dir</fail>
   4.119 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   4.120 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   4.121 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   4.122 +        <fail unless="dist.jar">Must set dist.jar</fail>
   4.123 +        <fail unless="j2ee.platform.classpath">
   4.124 +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
   4.125 +Either open the project in the IDE and assign the server or setup the server classpath manually.
   4.126 +For example like this:
   4.127 +   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
   4.128 +or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
   4.129 +                </fail>
   4.130 +    </target>
   4.131 +    <target name="-init-macrodef-property">
   4.132 +        <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   4.133 +            <attribute name="name"/>
   4.134 +            <attribute name="value"/>
   4.135 +            <sequential>
   4.136 +                <property name="@{name}" value="${@{value}}"/>
   4.137 +            </sequential>
   4.138 +        </macrodef>
   4.139 +    </target>
   4.140 +    <target name="-init-macrodef-javac">
   4.141 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   4.142 +            <attribute default="${src.dir}" name="srcdir"/>
   4.143 +            <attribute default="${build.classes.dir}" name="destdir"/>
   4.144 +            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   4.145 +            <attribute default="${includes}" name="includes"/>
   4.146 +            <attribute default="${excludes}" name="excludes"/>
   4.147 +            <attribute default="${javac.debug}" name="debug"/>
   4.148 +            <element name="customize" optional="true"/>
   4.149 +            <sequential>
   4.150 +                <property name="javac.compilerargs" value=""/>
   4.151 +                <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}">
   4.152 +                    <classpath>
   4.153 +                        <path path="@{classpath}"/>
   4.154 +                    </classpath>
   4.155 +                    <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
   4.156 +                    <customize/>
   4.157 +                </javac>
   4.158 +            </sequential>
   4.159 +        </macrodef>
   4.160 +    </target>
   4.161 +    <target name="-init-macrodef-junit">
   4.162 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   4.163 +            <attribute default="${includes}" name="includes"/>
   4.164 +            <attribute default="${excludes}" name="excludes"/>
   4.165 +            <attribute default="**" name="testincludes"/>
   4.166 +            <sequential>
   4.167 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
   4.168 +                    <batchtest todir="${build.test.results.dir}">
   4.169 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   4.170 +                            <filename name="@{testincludes}"/>
   4.171 +                        </fileset>
   4.172 +                    </batchtest>
   4.173 +                    <classpath>
   4.174 +                        <path path="${run.test.classpath}"/>
   4.175 +                        <path path="${j2ee.platform.classpath}"/>
   4.176 +                    </classpath>
   4.177 +                    <syspropertyset>
   4.178 +                        <propertyref prefix="test-sys-prop."/>
   4.179 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   4.180 +                    </syspropertyset>
   4.181 +                    <formatter type="brief" usefile="false"/>
   4.182 +                    <formatter type="xml"/>
   4.183 +                    <jvmarg line="${runmain.jvmargs}"/>
   4.184 +                </junit>
   4.185 +            </sequential>
   4.186 +        </macrodef>
   4.187 +    </target>
   4.188 +    <target name="-init-macrodef-java">
   4.189 +        <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
   4.190 +            <attribute default="${main.class}" name="classname"/>
   4.191 +            <element name="customize" optional="true"/>
   4.192 +            <sequential>
   4.193 +                <java classname="@{classname}" fork="true">
   4.194 +                    <jvmarg line="${runmain.jvmargs}"/>
   4.195 +                    <classpath>
   4.196 +                        <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
   4.197 +                    </classpath>
   4.198 +                    <syspropertyset>
   4.199 +                        <propertyref prefix="run-sys-prop."/>
   4.200 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   4.201 +                    </syspropertyset>
   4.202 +                    <customize/>
   4.203 +                </java>
   4.204 +            </sequential>
   4.205 +        </macrodef>
   4.206 +    </target>
   4.207 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   4.208 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   4.209 +            <attribute default="${main.class}" name="name"/>
   4.210 +            <attribute default="${debug.classpath}" name="classpath"/>
   4.211 +            <sequential>
   4.212 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
   4.213 +                    <classpath>
   4.214 +                        <path path="@{classpath}"/>
   4.215 +                    </classpath>
   4.216 +                </nbjpdastart>
   4.217 +            </sequential>
   4.218 +        </macrodef>
   4.219 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   4.220 +            <attribute default="${build.classes.dir}" name="dir"/>
   4.221 +            <sequential>
   4.222 +                <nbjpdareload>
   4.223 +                    <fileset dir="@{dir}" includes="${fix.classes}">
   4.224 +                        <include name="${fix.includes}*.class"/>
   4.225 +                    </fileset>
   4.226 +                </nbjpdareload>
   4.227 +            </sequential>
   4.228 +        </macrodef>
   4.229 +        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
   4.230 +            <sequential>
   4.231 +                <nbjpdaappreloaded/>
   4.232 +            </sequential>
   4.233 +        </macrodef>
   4.234 +    </target>
   4.235 +    <target name="-init-debug-args">
   4.236 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   4.237 +        <condition property="have-jdk-older-than-1.4">
   4.238 +            <or>
   4.239 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
   4.240 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
   4.241 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
   4.242 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
   4.243 +            </or>
   4.244 +        </condition>
   4.245 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   4.246 +            <istrue value="${have-jdk-older-than-1.4}"/>
   4.247 +        </condition>
   4.248 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   4.249 +            <os family="windows"/>
   4.250 +        </condition>
   4.251 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   4.252 +            <isset property="debug.transport"/>
   4.253 +        </condition>
   4.254 +    </target>
   4.255 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
   4.256 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   4.257 +            <attribute default="${main.class}" name="classname"/>
   4.258 +            <attribute default="${debug.classpath}" name="classpath"/>
   4.259 +            <attribute default="${application.args}" name="args"/>
   4.260 +            <element name="customize" optional="true"/>
   4.261 +            <sequential>
   4.262 +                <java classname="@{classname}" fork="true">
   4.263 +                    <jvmarg line="${debug-args-line}"/>
   4.264 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   4.265 +                    <classpath>
   4.266 +                        <path path="@{classpath}"/>
   4.267 +                    </classpath>
   4.268 +                    <arg line="@{args}"/>
   4.269 +                    <customize/>
   4.270 +                </java>
   4.271 +            </sequential>
   4.272 +        </macrodef>
   4.273 +    </target>
   4.274 +    <target name="-init-taskdefs">
   4.275 +        <fail unless="libs.CopyLibs.classpath">
   4.276 +The libs.CopyLibs.classpath property is not set up.
   4.277 +This property must point to 
   4.278 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   4.279 +of NetBeans IDE installation and is usually located at 
   4.280 +&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   4.281 +Either open the project in the IDE and make sure CopyLibs library
   4.282 +exists or setup the property manually. For example like this:
   4.283 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   4.284 +                </fail>
   4.285 +        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   4.286 +    </target>
   4.287 +    <target depends="-pre-init,-init-private,-init-userdir,-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-debug,-init-taskdefs" name="init"/>
   4.288 +    <!--
   4.289 +                COMPILATION SECTION
   4.290 +            -->
   4.291 +    <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
   4.292 +        <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="jar"/>
   4.293 +    </target>
   4.294 +    <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
   4.295 +        <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="jar"/>
   4.296 +    </target>
   4.297 +    <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
   4.298 +    <target depends="init,deps-jar" name="-pre-pre-compile">
   4.299 +        <mkdir dir="${build.classes.dir}"/>
   4.300 +        <mkdir dir="${build.ear.classes.dir}"/>
   4.301 +    </target>
   4.302 +    <target name="-pre-compile">
   4.303 +        <!-- Empty placeholder for easier customization. -->
   4.304 +        <!-- You can override this target in the ../build.xml file. -->
   4.305 +    </target>
   4.306 +    <target depends="compile" name="library-inclusion-in-archive">
   4.307 +        <copyfiles files="${reference.HibernateDemo1-lib.jar}" todir="${build.classes.dir}"/>
   4.308 +    </target>
   4.309 +    <target depends="compile" name="library-inclusion-in-manifest">
   4.310 +        <copyfiles files="${reference.HibernateDemo1-lib.jar}" manifestproperty="manifest.reference.HibernateDemo1-lib.jar" todir="${dist.ear.dir}"/>
   4.311 +        <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
   4.312 +            <attribute name="Class-Path" value="${manifest.reference.HibernateDemo1-lib.jar} "/>
   4.313 +        </manifest>
   4.314 +    </target>
   4.315 +    <target name="-copy-meta-inf">
   4.316 +        <copy todir="${classes.dir}">
   4.317 +            <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
   4.318 +        </copy>
   4.319 +        <copy todir="${classes.dir}/META-INF">
   4.320 +            <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
   4.321 +        </copy>
   4.322 +    </target>
   4.323 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
   4.324 +        <ejbjarproject2:javac destdir="${classes.dir}"/>
   4.325 +        <copy todir="${classes.dir}">
   4.326 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   4.327 +        </copy>
   4.328 +    </target>
   4.329 +    <target name="-post-compile">
   4.330 +        <!-- Empty placeholder for easier customization. -->
   4.331 +        <!-- You can override this target in the ../build.xml file. -->
   4.332 +    </target>
   4.333 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   4.334 +    <target name="-pre-compile-single">
   4.335 +        <!-- Empty placeholder for easier customization. -->
   4.336 +        <!-- You can override this target in the ../build.xml file. -->
   4.337 +    </target>
   4.338 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   4.339 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   4.340 +        <ejbjarproject2:javac excludes="" includes="${javac.includes}"/>
   4.341 +    </target>
   4.342 +    <target name="-post-compile-single">
   4.343 +        <!-- Empty placeholder for easier customization. -->
   4.344 +        <!-- You can override this target in the ../build.xml file. -->
   4.345 +    </target>
   4.346 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   4.347 +    <!--
   4.348 +                DIST BUILDING SECTION
   4.349 +            -->
   4.350 +    <target name="-pre-dist">
   4.351 +        <!-- Empty placeholder for easier customization. -->
   4.352 +        <!-- You can override this target in the ../build.xml file. -->
   4.353 +    </target>
   4.354 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
   4.355 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   4.356 +        <mkdir dir="${dist.jar.dir}"/>
   4.357 +        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   4.358 +            <fileset dir="${build.classes.dir}"/>
   4.359 +        </jar>
   4.360 +    </target>
   4.361 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
   4.362 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   4.363 +        <mkdir dir="${dist.jar.dir}"/>
   4.364 +        <jar compress="${jar.compress}" jarfile="${dist.jar}">
   4.365 +            <fileset dir="${build.classes.dir}"/>
   4.366 +        </jar>
   4.367 +    </target>
   4.368 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
   4.369 +    <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
   4.370 +        <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
   4.371 +        <mkdir dir="${dist.jar.dir}"/>
   4.372 +        <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
   4.373 +            <fileset dir="${build.ear.classes.dir}"/>
   4.374 +        </jar>
   4.375 +    </target>
   4.376 +    <target name="-post-dist">
   4.377 +        <!-- Empty placeholder for easier customization. -->
   4.378 +        <!-- You can override this target in the ../build.xml file. -->
   4.379 +    </target>
   4.380 +    <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
   4.381 +    <target depends="init,-init-cos,compile,-pre-dist,-do-ear-dist,-post-dist" description="Build distribution (JAR) to be packaged into an EAR." name="dist-ear"/>
   4.382 +    <!--
   4.383 +                EXECUTION SECTION
   4.384 +            -->
   4.385 +    <target depends="run-deploy" description="Deploy to server." name="run"/>
   4.386 +    <target name="-init-deploy">
   4.387 +        <property name="include.jar.manifest" value=""/>
   4.388 +    </target>
   4.389 +    <target name="pre-run-deploy">
   4.390 +        <!-- Empty placeholder for easier customization. -->
   4.391 +        <!-- You can override this target in the ../build.xml file. -->
   4.392 +    </target>
   4.393 +    <target name="post-run-deploy">
   4.394 +        <!-- Empty placeholder for easier customization. -->
   4.395 +        <!-- You can override this target in the ../build.xml file. -->
   4.396 +    </target>
   4.397 +    <target name="-pre-nbmodule-run-deploy">
   4.398 +        <!-- Empty placeholder for easier customization. -->
   4.399 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   4.400 +    </target>
   4.401 +    <target name="-post-nbmodule-run-deploy">
   4.402 +        <!-- Empty placeholder for easier customization. -->
   4.403 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   4.404 +    </target>
   4.405 +    <target name="-run-deploy-am">
   4.406 +        <!-- Task to deploy to the Access Manager runtime. -->
   4.407 +    </target>
   4.408 +    <target depends="init,-init-cos,-init-deploy,compile,library-inclusion-in-archive,dist,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">
   4.409 +        <nbjpdaappreloaded/>
   4.410 +    </target>
   4.411 +    <target if="netbeans.home" name="-run-deploy-nb">
   4.412 +        <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
   4.413 +    </target>
   4.414 +    <target name="-init-deploy-ant" unless="netbeans.home">
   4.415 +        <property name="deploy.ant.archive" value="${dist.jar}"/>
   4.416 +        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   4.417 +        <property name="deploy.ant.enabled" value="true"/>
   4.418 +    </target>
   4.419 +    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   4.420 +    <target if="netbeans.home" name="-run-undeploy-nb">
   4.421 +        <fail message="Undeploy is not supported from within the IDE"/>
   4.422 +    </target>
   4.423 +    <target depends="dist" name="verify">
   4.424 +        <nbverify file="${dist.jar}"/>
   4.425 +    </target>
   4.426 +    <target depends="init,compile-single" name="run-main">
   4.427 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   4.428 +        <ejbjarproject3:java classname="${run.class}"/>
   4.429 +    </target>
   4.430 +    <!--
   4.431 +                DEBUGGING SECTION
   4.432 +            -->
   4.433 +    <target depends="init,compile,dist" description="Debug project in IDE." if="netbeans.home" name="debug">
   4.434 +        <nbdeploy debugmode="true"/>
   4.435 +        <antcall target="connect-debugger"/>
   4.436 +    </target>
   4.437 +    <target name="connect-debugger" unless="is.debugged">
   4.438 +        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   4.439 +            <classpath>
   4.440 +                <path path="${debug.classpath}"/>
   4.441 +            </classpath>
   4.442 +            <sourcepath>
   4.443 +                <path path="${web.docbase.dir}"/>
   4.444 +            </sourcepath>
   4.445 +        </nbjpdaconnect>
   4.446 +    </target>
   4.447 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   4.448 +        <ejbjarproject1:nbjpdastart/>
   4.449 +    </target>
   4.450 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   4.451 +        <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
   4.452 +        <ejbjarproject1:debug/>
   4.453 +    </target>
   4.454 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
   4.455 +    <target depends="init" name="-pre-debug-fix">
   4.456 +        <fail unless="fix.includes">Must set fix.includes</fail>
   4.457 +        <property name="javac.includes" value="${fix.includes}.java"/>
   4.458 +    </target>
   4.459 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   4.460 +        <ejbjarproject1:nbjpdareload/>
   4.461 +    </target>
   4.462 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   4.463 +    <!--
   4.464 +                JAVADOC SECTION
   4.465 +            -->
   4.466 +    <target depends="init" name="javadoc-build">
   4.467 +        <mkdir dir="${dist.javadoc.dir}"/>
   4.468 +        <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}">
   4.469 +            <classpath>
   4.470 +                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
   4.471 +            </classpath>
   4.472 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   4.473 +                <filename name="**/*.java"/>
   4.474 +            </fileset>
   4.475 +        </javadoc>
   4.476 +    </target>
   4.477 +    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
   4.478 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   4.479 +    </target>
   4.480 +    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
   4.481 +    <!--
   4.482 +                JUNIT COMPILATION SECTION
   4.483 +            -->
   4.484 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   4.485 +        <mkdir dir="${build.test.classes.dir}"/>
   4.486 +    </target>
   4.487 +    <target name="-pre-compile-test">
   4.488 +        <!-- Empty placeholder for easier customization. -->
   4.489 +        <!-- You can override this target in the ../build.xml file. -->
   4.490 +    </target>
   4.491 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
   4.492 +        <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   4.493 +        <copy todir="${build.test.classes.dir}">
   4.494 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   4.495 +        </copy>
   4.496 +    </target>
   4.497 +    <target name="-post-compile-test">
   4.498 +        <!-- Empty placeholder for easier customization. -->
   4.499 +        <!-- You can override this target in the ../build.xml file. -->
   4.500 +    </target>
   4.501 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   4.502 +    <target name="-pre-compile-test-single">
   4.503 +        <!-- Empty placeholder for easier customization. -->
   4.504 +        <!-- You can override this target in the ../build.xml file. -->
   4.505 +    </target>
   4.506 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   4.507 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   4.508 +        <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
   4.509 +    </target>
   4.510 +    <target name="-post-compile-test-single">
   4.511 +        <!-- Empty placeholder for easier customization. -->
   4.512 +        <!-- You can override this target in the ../build.xml file. -->
   4.513 +    </target>
   4.514 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   4.515 +    <!--
   4.516 +                JUNIT EXECUTION SECTION
   4.517 +            -->
   4.518 +    <target depends="init" if="have.tests" name="-pre-test-run">
   4.519 +        <mkdir dir="${build.test.results.dir}"/>
   4.520 +    </target>
   4.521 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   4.522 +        <ejbjarproject2:junit testincludes="**/*Test.java"/>
   4.523 +    </target>
   4.524 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   4.525 +        <fail if="tests.failed">Some tests failed; see details above.</fail>
   4.526 +    </target>
   4.527 +    <target depends="init" if="have.tests" name="test-report"/>
   4.528 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   4.529 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   4.530 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
   4.531 +        <mkdir dir="${build.test.results.dir}"/>
   4.532 +    </target>
   4.533 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   4.534 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   4.535 +        <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
   4.536 +    </target>
   4.537 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   4.538 +        <fail if="tests.failed">Some tests failed; see details above.</fail>
   4.539 +    </target>
   4.540 +    <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"/>
   4.541 +    <!--
   4.542 +                JUNIT DEBUGGING SECTION
   4.543 +            -->
   4.544 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   4.545 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   4.546 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   4.547 +        <delete file="${test.report.file}"/>
   4.548 +        <!-- the directory must exist, otherwise the XML formatter would fail -->
   4.549 +        <mkdir dir="${build.test.results.dir}"/>
   4.550 +        <ejbjarproject1: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}">
   4.551 +            <customize>
   4.552 +                <arg value="showoutput=true"/>
   4.553 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   4.554 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   4.555 +            </customize>
   4.556 +        </ejbjarproject1:debug>
   4.557 +    </target>
   4.558 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   4.559 +        <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   4.560 +    </target>
   4.561 +    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   4.562 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   4.563 +        <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   4.564 +    </target>
   4.565 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   4.566 +    <!--
   4.567 +                CLEANUP SECTION
   4.568 +            -->
   4.569 +    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
   4.570 +        <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="clean"/>
   4.571 +    </target>
   4.572 +    <target depends="init" name="-do-clean">
   4.573 +        <delete dir="${build.dir}"/>
   4.574 +        <delete dir="${dist.dir}"/>
   4.575 +    </target>
   4.576 +    <target name="-post-clean">
   4.577 +        <!-- Empty placeholder for easier customization. -->
   4.578 +        <!-- You can override this target in the ../build.xml file. -->
   4.579 +    </target>
   4.580 +    <target depends="init" if="netbeans.home" name="undeploy-clean">
   4.581 +        <nbundeploy failOnError="false" startServer="false"/>
   4.582 +    </target>
   4.583 +    <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
   4.584 +    <target depends="clean" name="clean-ear"/>
   4.585 +</project>
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/java/HibernateDemo1/HibernateDemo1-ejb/nbproject/genfiles.properties	Sat Mar 14 21:58:41 2009 +0100
     5.3 @@ -0,0 +1,8 @@
     5.4 +build.xml.data.CRC32=a2bfba21
     5.5 +build.xml.script.CRC32=7c7108db
     5.6 +build.xml.stylesheet.CRC32=e5f4c432
     5.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     5.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
     5.9 +nbproject/build-impl.xml.data.CRC32=a2bfba21
    5.10 +nbproject/build-impl.xml.script.CRC32=815f4b2d
    5.11 +nbproject/build-impl.xml.stylesheet.CRC32=36c39d59
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/java/HibernateDemo1/HibernateDemo1-ejb/nbproject/project.properties	Sat Mar 14 21:58:41 2009 +0100
     6.3 @@ -0,0 +1,60 @@
     6.4 +build.classes.dir=${build.dir}/jar
     6.5 +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs
     6.6 +build.dir=build
     6.7 +build.ear.classes.dir=${build.dir}/jar
     6.8 +build.generated.dir=${build.dir}/generated
     6.9 +build.test.classes.dir=${build.dir}/test/classes
    6.10 +build.test.results.dir=${build.dir}/test/results
    6.11 +debug.classpath=${javac.classpath}:${build.classes.dir}
    6.12 +debug.test.classpath=\
    6.13 +    ${run.test.classpath}
    6.14 +dist.dir=dist
    6.15 +dist.ear.jar=${dist.dir}/${jar.name}
    6.16 +dist.jar=${dist.dir}/${jar.name}
    6.17 +dist.javadoc.dir=${dist.dir}/javadoc
    6.18 +excludes=
    6.19 +includes=**
    6.20 +j2ee.deploy.on.save=true
    6.21 +j2ee.platform=1.5
    6.22 +j2ee.server.type=J2EE
    6.23 +jar.compress=false
    6.24 +jar.name=HibernateDemo1-ejb.jar
    6.25 +javac.classpath=\
    6.26 +    ${reference.HibernateDemo1-lib.jar}
    6.27 +javac.debug=true
    6.28 +javac.deprecation=false
    6.29 +javac.source=1.5
    6.30 +javac.target=1.5
    6.31 +javac.test.classpath=\
    6.32 +    ${javac.classpath}:\
    6.33 +    ${build.classes.dir}:\
    6.34 +    ${libs.junit.classpath}:\
    6.35 +    ${libs.junit_4.classpath}
    6.36 +javadoc.additionalparam=
    6.37 +javadoc.author=false
    6.38 +javadoc.encoding=${source.encoding}
    6.39 +javadoc.noindex=false
    6.40 +javadoc.nonavbar=false
    6.41 +javadoc.notree=false
    6.42 +javadoc.preview=true
    6.43 +javadoc.private=false
    6.44 +javadoc.splitindex=true
    6.45 +javadoc.use=true
    6.46 +javadoc.version=false
    6.47 +javadoc.windowtitle=
    6.48 +meta.inf=${source.root}/conf
    6.49 +meta.inf.excludes=sun-cmp-mappings.xml
    6.50 +platform.active=default_platform
    6.51 +project.HibernateDemo1-lib=../HibernateDemo1-lib
    6.52 +reference.HibernateDemo1-lib.jar=${project.HibernateDemo1-lib}/dist/HibernateDemo1-lib.jar
    6.53 +resource.dir=setup
    6.54 +run.test.classpath=\
    6.55 +    ${javac.test.classpath}:\
    6.56 +    ${build.test.classes.dir}
    6.57 +# Space-separated list of JVM arguments used when running a class with a main method or a unit test
    6.58 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
    6.59 +runmain.jvmargs=
    6.60 +source.encoding=UTF-8
    6.61 +source.root=src
    6.62 +src.dir=${source.root}/java
    6.63 +test.src.dir=test
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/java/HibernateDemo1/HibernateDemo1-ejb/nbproject/project.xml	Sat Mar 14 21:58:41 2009 +0100
     7.3 @@ -0,0 +1,27 @@
     7.4 +<?xml version="1.0" encoding="UTF-8"?>
     7.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
     7.6 +    <type>org.netbeans.modules.j2ee.ejbjarproject</type>
     7.7 +    <configuration>
     7.8 +        <data xmlns="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
     7.9 +            <name>HibernateDemo1-ejb</name>
    7.10 +            <minimum-ant-version>1.6.5</minimum-ant-version>
    7.11 +            <included-library>reference.HibernateDemo1-lib.jar</included-library>
    7.12 +            <source-roots>
    7.13 +                <root id="src.dir" name="Source Packages"/>
    7.14 +            </source-roots>
    7.15 +            <test-roots>
    7.16 +                <root id="test.src.dir" name="Test Packages"/>
    7.17 +            </test-roots>
    7.18 +        </data>
    7.19 +        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
    7.20 +            <reference>
    7.21 +                <foreign-project>HibernateDemo1-lib</foreign-project>
    7.22 +                <artifact-type>jar</artifact-type>
    7.23 +                <script>build.xml</script>
    7.24 +                <target>jar</target>
    7.25 +                <clean-target>clean</clean-target>
    7.26 +                <id>jar</id>
    7.27 +            </reference>
    7.28 +        </references>
    7.29 +    </configuration>
    7.30 +</project>
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/java/HibernateDemo1/HibernateDemo1-ejb/src/java/cz/frantovo/hibernateDemo1/CilDAOBean.java	Sat Mar 14 21:58:41 2009 +0100
     8.3 @@ -0,0 +1,20 @@
     8.4 +/*
     8.5 + * To change this template, choose Tools | Templates
     8.6 + * and open the template in the editor.
     8.7 + */
     8.8 +
     8.9 +package cz.frantovo.hibernateDemo1;
    8.10 +
    8.11 +import javax.ejb.Stateless;
    8.12 +
    8.13 +/**
    8.14 + *
    8.15 + * @author fiki
    8.16 + */
    8.17 +@Stateless
    8.18 +public class CilDAOBean implements CilDAORemote {
    8.19 +    
    8.20 +    // Add business logic below. (Right-click in editor and choose
    8.21 +    // "Insert Code > Add Business Method" or "Web Service > Add Operation")
    8.22 + 
    8.23 +}
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/java/HibernateDemo1/HibernateDemo1-lib/build.xml	Sat Mar 14 21:58:41 2009 +0100
     9.3 @@ -0,0 +1,74 @@
     9.4 +<?xml version="1.0" encoding="UTF-8"?>
     9.5 +<!-- You may freely edit this file. See commented blocks below for -->
     9.6 +<!-- some examples of how to customize the build. -->
     9.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
     9.8 +<!-- By default, only the Clean and Build commands use this build script. -->
     9.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
    9.10 +<!-- the Compile on Save feature is turned off for the project. -->
    9.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
    9.12 +<!-- in the project's Project Properties dialog box.-->
    9.13 +<project name="HibernateDemo1-lib" default="default" basedir=".">
    9.14 +    <description>Builds, tests, and runs the project HibernateDemo1-lib.</description>
    9.15 +    <import file="nbproject/build-impl.xml"/>
    9.16 +    <!--
    9.17 +
    9.18 +    There exist several targets which are by default empty and which can be 
    9.19 +    used for execution of your tasks. These targets are usually executed 
    9.20 +    before and after some main targets. They are: 
    9.21 +
    9.22 +      -pre-init:                 called before initialization of project properties
    9.23 +      -post-init:                called after initialization of project properties
    9.24 +      -pre-compile:              called before javac compilation
    9.25 +      -post-compile:             called after javac compilation
    9.26 +      -pre-compile-single:       called before javac compilation of single file
    9.27 +      -post-compile-single:      called after javac compilation of single file
    9.28 +      -pre-compile-test:         called before javac compilation of JUnit tests
    9.29 +      -post-compile-test:        called after javac compilation of JUnit tests
    9.30 +      -pre-compile-test-single:  called before javac compilation of single JUnit test
    9.31 +      -post-compile-test-single: called after javac compilation of single JUunit test
    9.32 +      -pre-jar:                  called before JAR building
    9.33 +      -post-jar:                 called after JAR building
    9.34 +      -post-clean:               called after cleaning build products
    9.35 +
    9.36 +    (Targets beginning with '-' are not intended to be called on their own.)
    9.37 +
    9.38 +    Example of inserting an obfuscator after compilation could look like this:
    9.39 +
    9.40 +        <target name="-post-compile">
    9.41 +            <obfuscate>
    9.42 +                <fileset dir="${build.classes.dir}"/>
    9.43 +            </obfuscate>
    9.44 +        </target>
    9.45 +
    9.46 +    For list of available properties check the imported 
    9.47 +    nbproject/build-impl.xml file. 
    9.48 +
    9.49 +
    9.50 +    Another way to customize the build is by overriding existing main targets.
    9.51 +    The targets of interest are: 
    9.52 +
    9.53 +      -init-macrodef-javac:     defines macro for javac compilation
    9.54 +      -init-macrodef-junit:     defines macro for junit execution
    9.55 +      -init-macrodef-debug:     defines macro for class debugging
    9.56 +      -init-macrodef-java:      defines macro for class execution
    9.57 +      -do-jar-with-manifest:    JAR building (if you are using a manifest)
    9.58 +      -do-jar-without-manifest: JAR building (if you are not using a manifest)
    9.59 +      run:                      execution of project 
    9.60 +      -javadoc-build:           Javadoc generation
    9.61 +      test-report:              JUnit report generation
    9.62 +
    9.63 +    An example of overriding the target for project execution could look like this:
    9.64 +
    9.65 +        <target name="run" depends="HibernateDemo1-lib-impl.jar">
    9.66 +            <exec dir="bin" executable="launcher.exe">
    9.67 +                <arg file="${dist.jar}"/>
    9.68 +            </exec>
    9.69 +        </target>
    9.70 +
    9.71 +    Notice that the overridden target depends on the jar target and not only on 
    9.72 +    the compile target as the regular run target does. Again, for a list of available 
    9.73 +    properties which you can use, check the target you are overriding in the
    9.74 +    nbproject/build-impl.xml file. 
    9.75 +
    9.76 +    -->
    9.77 +</project>
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/java/HibernateDemo1/HibernateDemo1-lib/nbproject/build-impl.xml	Sat Mar 14 21:58:41 2009 +0100
    10.3 @@ -0,0 +1,642 @@
    10.4 +<?xml version="1.0" encoding="UTF-8"?>
    10.5 +<!--
    10.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
    10.7 +***         EDIT ../build.xml INSTEAD         ***
    10.8 +
    10.9 +For the purpose of easier reading the script
   10.10 +is divided into following sections:
   10.11 +
   10.12 +  - initialization
   10.13 +  - compilation
   10.14 +  - jar
   10.15 +  - execution
   10.16 +  - debugging
   10.17 +  - javadoc
   10.18 +  - junit compilation
   10.19 +  - junit execution
   10.20 +  - junit debugging
   10.21 +  - applet
   10.22 +  - cleanup
   10.23 +
   10.24 +        -->
   10.25 +<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="HibernateDemo1-lib-impl">
   10.26 +    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
   10.27 +    <!-- 
   10.28 +                ======================
   10.29 +                INITIALIZATION SECTION 
   10.30 +                ======================
   10.31 +            -->
   10.32 +    <target name="-pre-init">
   10.33 +        <!-- Empty placeholder for easier customization. -->
   10.34 +        <!-- You can override this target in the ../build.xml file. -->
   10.35 +    </target>
   10.36 +    <target depends="-pre-init" name="-init-private">
   10.37 +        <property file="nbproject/private/config.properties"/>
   10.38 +        <property file="nbproject/private/configs/${config}.properties"/>
   10.39 +        <property file="nbproject/private/private.properties"/>
   10.40 +    </target>
   10.41 +    <target depends="-pre-init,-init-private" name="-init-user">
   10.42 +        <property file="${user.properties.file}"/>
   10.43 +        <!-- The two properties below are usually overridden -->
   10.44 +        <!-- by the active platform. Just a fallback. -->
   10.45 +        <property name="default.javac.source" value="1.4"/>
   10.46 +        <property name="default.javac.target" value="1.4"/>
   10.47 +    </target>
   10.48 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
   10.49 +        <property file="nbproject/configs/${config}.properties"/>
   10.50 +        <property file="nbproject/project.properties"/>
   10.51 +    </target>
   10.52 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
   10.53 +        <available file="${manifest.file}" property="manifest.available"/>
   10.54 +        <condition property="manifest.available+main.class">
   10.55 +            <and>
   10.56 +                <isset property="manifest.available"/>
   10.57 +                <isset property="main.class"/>
   10.58 +                <not>
   10.59 +                    <equals arg1="${main.class}" arg2="" trim="true"/>
   10.60 +                </not>
   10.61 +            </and>
   10.62 +        </condition>
   10.63 +        <condition property="manifest.available+main.class+mkdist.available">
   10.64 +            <and>
   10.65 +                <istrue value="${manifest.available+main.class}"/>
   10.66 +                <isset property="libs.CopyLibs.classpath"/>
   10.67 +            </and>
   10.68 +        </condition>
   10.69 +        <condition property="have.tests">
   10.70 +            <or>
   10.71 +                <available file="${test.src.dir}"/>
   10.72 +            </or>
   10.73 +        </condition>
   10.74 +        <condition property="have.sources">
   10.75 +            <or>
   10.76 +                <available file="${src.dir}"/>
   10.77 +            </or>
   10.78 +        </condition>
   10.79 +        <condition property="netbeans.home+have.tests">
   10.80 +            <and>
   10.81 +                <isset property="netbeans.home"/>
   10.82 +                <isset property="have.tests"/>
   10.83 +            </and>
   10.84 +        </condition>
   10.85 +        <condition property="no.javadoc.preview">
   10.86 +            <and>
   10.87 +                <isset property="javadoc.preview"/>
   10.88 +                <isfalse value="${javadoc.preview}"/>
   10.89 +            </and>
   10.90 +        </condition>
   10.91 +        <property name="run.jvmargs" value=""/>
   10.92 +        <property name="javac.compilerargs" value=""/>
   10.93 +        <property name="work.dir" value="${basedir}"/>
   10.94 +        <condition property="no.deps">
   10.95 +            <and>
   10.96 +                <istrue value="${no.dependencies}"/>
   10.97 +            </and>
   10.98 +        </condition>
   10.99 +        <property name="javac.debug" value="true"/>
  10.100 +        <property name="javadoc.preview" value="true"/>
  10.101 +        <property name="application.args" value=""/>
  10.102 +        <property name="source.encoding" value="${file.encoding}"/>
  10.103 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  10.104 +            <and>
  10.105 +                <isset property="javadoc.encoding"/>
  10.106 +                <not>
  10.107 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
  10.108 +                </not>
  10.109 +            </and>
  10.110 +        </condition>
  10.111 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
  10.112 +        <property name="includes" value="**"/>
  10.113 +        <property name="excludes" value=""/>
  10.114 +        <property name="do.depend" value="false"/>
  10.115 +        <condition property="do.depend.true">
  10.116 +            <istrue value="${do.depend}"/>
  10.117 +        </condition>
  10.118 +        <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
  10.119 +            <and>
  10.120 +                <isset property="jaxws.endorsed.dir"/>
  10.121 +                <available file="nbproject/jaxws-build.xml"/>
  10.122 +            </and>
  10.123 +        </condition>
  10.124 +    </target>
  10.125 +    <target name="-post-init">
  10.126 +        <!-- Empty placeholder for easier customization. -->
  10.127 +        <!-- You can override this target in the ../build.xml file. -->
  10.128 +    </target>
  10.129 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  10.130 +        <fail unless="src.dir">Must set src.dir</fail>
  10.131 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
  10.132 +        <fail unless="build.dir">Must set build.dir</fail>
  10.133 +        <fail unless="dist.dir">Must set dist.dir</fail>
  10.134 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  10.135 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  10.136 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  10.137 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  10.138 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  10.139 +        <fail unless="dist.jar">Must set dist.jar</fail>
  10.140 +    </target>
  10.141 +    <target name="-init-macrodef-property">
  10.142 +        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
  10.143 +            <attribute name="name"/>
  10.144 +            <attribute name="value"/>
  10.145 +            <sequential>
  10.146 +                <property name="@{name}" value="${@{value}}"/>
  10.147 +            </sequential>
  10.148 +        </macrodef>
  10.149 +    </target>
  10.150 +    <target name="-init-macrodef-javac">
  10.151 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  10.152 +            <attribute default="${src.dir}" name="srcdir"/>
  10.153 +            <attribute default="${build.classes.dir}" name="destdir"/>
  10.154 +            <attribute default="${javac.classpath}" name="classpath"/>
  10.155 +            <attribute default="${includes}" name="includes"/>
  10.156 +            <attribute default="${excludes}" name="excludes"/>
  10.157 +            <attribute default="${javac.debug}" name="debug"/>
  10.158 +            <attribute default="/does/not/exist" name="sourcepath"/>
  10.159 +            <element name="customize" optional="true"/>
  10.160 +            <sequential>
  10.161 +                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
  10.162 +                    <classpath>
  10.163 +                        <path path="@{classpath}"/>
  10.164 +                    </classpath>
  10.165 +                    <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
  10.166 +                    <customize/>
  10.167 +                </javac>
  10.168 +            </sequential>
  10.169 +        </macrodef>
  10.170 +        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
  10.171 +            <attribute default="${src.dir}" name="srcdir"/>
  10.172 +            <attribute default="${build.classes.dir}" name="destdir"/>
  10.173 +            <attribute default="${javac.classpath}" name="classpath"/>
  10.174 +            <sequential>
  10.175 +                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
  10.176 +                    <classpath>
  10.177 +                        <path path="@{classpath}"/>
  10.178 +                    </classpath>
  10.179 +                </depend>
  10.180 +            </sequential>
  10.181 +        </macrodef>
  10.182 +        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
  10.183 +            <attribute default="${build.classes.dir}" name="destdir"/>
  10.184 +            <sequential>
  10.185 +                <fail unless="javac.includes">Must set javac.includes</fail>
  10.186 +                <pathconvert pathsep="," property="javac.includes.binary">
  10.187 +                    <path>
  10.188 +                        <filelist dir="@{destdir}" files="${javac.includes}"/>
  10.189 +                    </path>
  10.190 +                    <globmapper from="*.java" to="*.class"/>
  10.191 +                </pathconvert>
  10.192 +                <delete>
  10.193 +                    <files includes="${javac.includes.binary}"/>
  10.194 +                </delete>
  10.195 +            </sequential>
  10.196 +        </macrodef>
  10.197 +    </target>
  10.198 +    <target name="-init-macrodef-junit">
  10.199 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
  10.200 +            <attribute default="${includes}" name="includes"/>
  10.201 +            <attribute default="${excludes}" name="excludes"/>
  10.202 +            <attribute default="**" name="testincludes"/>
  10.203 +            <sequential>
  10.204 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
  10.205 +                    <batchtest todir="${build.test.results.dir}">
  10.206 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  10.207 +                            <filename name="@{testincludes}"/>
  10.208 +                        </fileset>
  10.209 +                    </batchtest>
  10.210 +                    <classpath>
  10.211 +                        <path path="${run.test.classpath}"/>
  10.212 +                    </classpath>
  10.213 +                    <syspropertyset>
  10.214 +                        <propertyref prefix="test-sys-prop."/>
  10.215 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  10.216 +                    </syspropertyset>
  10.217 +                    <formatter type="brief" usefile="false"/>
  10.218 +                    <formatter type="xml"/>
  10.219 +                    <jvmarg line="${run.jvmargs}"/>
  10.220 +                </junit>
  10.221 +            </sequential>
  10.222 +        </macrodef>
  10.223 +    </target>
  10.224 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  10.225 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
  10.226 +            <attribute default="${main.class}" name="name"/>
  10.227 +            <attribute default="${debug.classpath}" name="classpath"/>
  10.228 +            <attribute default="" name="stopclassname"/>
  10.229 +            <sequential>
  10.230 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
  10.231 +                    <classpath>
  10.232 +                        <path path="@{classpath}"/>
  10.233 +                    </classpath>
  10.234 +                </nbjpdastart>
  10.235 +            </sequential>
  10.236 +        </macrodef>
  10.237 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
  10.238 +            <attribute default="${build.classes.dir}" name="dir"/>
  10.239 +            <sequential>
  10.240 +                <nbjpdareload>
  10.241 +                    <fileset dir="@{dir}" includes="${fix.classes}">
  10.242 +                        <include name="${fix.includes}*.class"/>
  10.243 +                    </fileset>
  10.244 +                </nbjpdareload>
  10.245 +            </sequential>
  10.246 +        </macrodef>
  10.247 +    </target>
  10.248 +    <target name="-init-debug-args">
  10.249 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
  10.250 +        <condition property="have-jdk-older-than-1.4">
  10.251 +            <or>
  10.252 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
  10.253 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
  10.254 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
  10.255 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
  10.256 +            </or>
  10.257 +        </condition>
  10.258 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  10.259 +            <istrue value="${have-jdk-older-than-1.4}"/>
  10.260 +        </condition>
  10.261 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  10.262 +            <os family="windows"/>
  10.263 +        </condition>
  10.264 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  10.265 +            <isset property="debug.transport"/>
  10.266 +        </condition>
  10.267 +    </target>
  10.268 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
  10.269 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  10.270 +            <attribute default="${main.class}" name="classname"/>
  10.271 +            <attribute default="${debug.classpath}" name="classpath"/>
  10.272 +            <element name="customize" optional="true"/>
  10.273 +            <sequential>
  10.274 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
  10.275 +                    <jvmarg line="${debug-args-line}"/>
  10.276 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  10.277 +                    <jvmarg line="${run.jvmargs}"/>
  10.278 +                    <classpath>
  10.279 +                        <path path="@{classpath}"/>
  10.280 +                    </classpath>
  10.281 +                    <syspropertyset>
  10.282 +                        <propertyref prefix="run-sys-prop."/>
  10.283 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  10.284 +                    </syspropertyset>
  10.285 +                    <customize/>
  10.286 +                </java>
  10.287 +            </sequential>
  10.288 +        </macrodef>
  10.289 +    </target>
  10.290 +    <target name="-init-macrodef-java">
  10.291 +        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
  10.292 +            <attribute default="${main.class}" name="classname"/>
  10.293 +            <element name="customize" optional="true"/>
  10.294 +            <sequential>
  10.295 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
  10.296 +                    <jvmarg line="${run.jvmargs}"/>
  10.297 +                    <classpath>
  10.298 +                        <path path="${run.classpath}"/>
  10.299 +                    </classpath>
  10.300 +                    <syspropertyset>
  10.301 +                        <propertyref prefix="run-sys-prop."/>
  10.302 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  10.303 +                    </syspropertyset>
  10.304 +                    <customize/>
  10.305 +                </java>
  10.306 +            </sequential>
  10.307 +        </macrodef>
  10.308 +    </target>
  10.309 +    <target name="-init-presetdef-jar">
  10.310 +        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
  10.311 +            <jar compress="${jar.compress}" jarfile="${dist.jar}">
  10.312 +                <j2seproject1:fileset dir="${build.classes.dir}"/>
  10.313 +            </jar>
  10.314 +        </presetdef>
  10.315 +    </target>
  10.316 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
  10.317 +    <!--
  10.318 +                ===================
  10.319 +                COMPILATION SECTION
  10.320 +                ===================
  10.321 +            -->
  10.322 +    <target depends="init" name="deps-jar" unless="no.deps"/>
  10.323 +    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
  10.324 +    <target depends="init" name="-check-automatic-build">
  10.325 +        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
  10.326 +    </target>
  10.327 +    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
  10.328 +        <antcall target="clean"/>
  10.329 +    </target>
  10.330 +    <target depends="init,deps-jar" name="-pre-pre-compile">
  10.331 +        <mkdir dir="${build.classes.dir}"/>
  10.332 +    </target>
  10.333 +    <target name="-pre-compile">
  10.334 +        <!-- Empty placeholder for easier customization. -->
  10.335 +        <!-- You can override this target in the ../build.xml file. -->
  10.336 +    </target>
  10.337 +    <target if="do.depend.true" name="-compile-depend">
  10.338 +        <j2seproject3:depend/>
  10.339 +    </target>
  10.340 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
  10.341 +        <j2seproject3:javac/>
  10.342 +        <copy todir="${build.classes.dir}">
  10.343 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  10.344 +        </copy>
  10.345 +    </target>
  10.346 +    <target name="-post-compile">
  10.347 +        <!-- Empty placeholder for easier customization. -->
  10.348 +        <!-- You can override this target in the ../build.xml file. -->
  10.349 +    </target>
  10.350 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  10.351 +    <target name="-pre-compile-single">
  10.352 +        <!-- Empty placeholder for easier customization. -->
  10.353 +        <!-- You can override this target in the ../build.xml file. -->
  10.354 +    </target>
  10.355 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  10.356 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  10.357 +        <j2seproject3:force-recompile/>
  10.358 +        <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
  10.359 +    </target>
  10.360 +    <target name="-post-compile-single">
  10.361 +        <!-- Empty placeholder for easier customization. -->
  10.362 +        <!-- You can override this target in the ../build.xml file. -->
  10.363 +    </target>
  10.364 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  10.365 +    <!--
  10.366 +                ====================
  10.367 +                JAR BUILDING SECTION
  10.368 +                ====================
  10.369 +            -->
  10.370 +    <target depends="init" name="-pre-pre-jar">
  10.371 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
  10.372 +        <mkdir dir="${dist.jar.dir}"/>
  10.373 +    </target>
  10.374 +    <target name="-pre-jar">
  10.375 +        <!-- Empty placeholder for easier customization. -->
  10.376 +        <!-- You can override this target in the ../build.xml file. -->
  10.377 +    </target>
  10.378 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
  10.379 +        <j2seproject1:jar/>
  10.380 +    </target>
  10.381 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
  10.382 +        <j2seproject1:jar manifest="${manifest.file}"/>
  10.383 +    </target>
  10.384 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
  10.385 +        <j2seproject1:jar manifest="${manifest.file}">
  10.386 +            <j2seproject1:manifest>
  10.387 +                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
  10.388 +            </j2seproject1:manifest>
  10.389 +        </j2seproject1:jar>
  10.390 +        <echo>To run this application from the command line without Ant, try:</echo>
  10.391 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  10.392 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
  10.393 +        <pathconvert property="run.classpath.with.dist.jar">
  10.394 +            <path path="${run.classpath}"/>
  10.395 +            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
  10.396 +        </pathconvert>
  10.397 +        <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
  10.398 +    </target>
  10.399 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
  10.400 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  10.401 +        <pathconvert property="run.classpath.without.build.classes.dir">
  10.402 +            <path path="${run.classpath}"/>
  10.403 +            <map from="${build.classes.dir.resolved}" to=""/>
  10.404 +        </pathconvert>
  10.405 +        <pathconvert pathsep=" " property="jar.classpath">
  10.406 +            <path path="${run.classpath.without.build.classes.dir}"/>
  10.407 +            <chainedmapper>
  10.408 +                <flattenmapper/>
  10.409 +                <globmapper from="*" to="lib/*"/>
  10.410 +            </chainedmapper>
  10.411 +        </pathconvert>
  10.412 +        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
  10.413 +        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
  10.414 +            <fileset dir="${build.classes.dir}"/>
  10.415 +            <manifest>
  10.416 +                <attribute name="Main-Class" value="${main.class}"/>
  10.417 +                <attribute name="Class-Path" value="${jar.classpath}"/>
  10.418 +            </manifest>
  10.419 +        </copylibs>
  10.420 +        <echo>To run this application from the command line without Ant, try:</echo>
  10.421 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
  10.422 +        <echo>java -jar "${dist.jar.resolved}"</echo>
  10.423 +    </target>
  10.424 +    <target name="-post-jar">
  10.425 +        <!-- Empty placeholder for easier customization. -->
  10.426 +        <!-- You can override this target in the ../build.xml file. -->
  10.427 +    </target>
  10.428 +    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
  10.429 +    <!--
  10.430 +                =================
  10.431 +                EXECUTION SECTION
  10.432 +                =================
  10.433 +            -->
  10.434 +    <target depends="init,compile" description="Run a main class." name="run">
  10.435 +        <j2seproject1:java>
  10.436 +            <customize>
  10.437 +                <arg line="${application.args}"/>
  10.438 +            </customize>
  10.439 +        </j2seproject1:java>
  10.440 +    </target>
  10.441 +    <target name="-do-not-recompile">
  10.442 +        <property name="javac.includes.binary" value=""/>
  10.443 +    </target>
  10.444 +    <target depends="init,-do-not-recompile,compile-single" name="run-single">
  10.445 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  10.446 +        <j2seproject1:java classname="${run.class}"/>
  10.447 +    </target>
  10.448 +    <!--
  10.449 +                =================
  10.450 +                DEBUGGING SECTION
  10.451 +                =================
  10.452 +            -->
  10.453 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  10.454 +        <j2seproject1:nbjpdastart name="${debug.class}"/>
  10.455 +    </target>
  10.456 +    <target depends="init,compile" name="-debug-start-debuggee">
  10.457 +        <j2seproject3:debug>
  10.458 +            <customize>
  10.459 +                <arg line="${application.args}"/>
  10.460 +            </customize>
  10.461 +        </j2seproject3:debug>
  10.462 +    </target>
  10.463 +    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
  10.464 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
  10.465 +        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
  10.466 +    </target>
  10.467 +    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
  10.468 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  10.469 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  10.470 +        <j2seproject3:debug classname="${debug.class}"/>
  10.471 +    </target>
  10.472 +    <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
  10.473 +    <target depends="init" name="-pre-debug-fix">
  10.474 +        <fail unless="fix.includes">Must set fix.includes</fail>
  10.475 +        <property name="javac.includes" value="${fix.includes}.java"/>
  10.476 +    </target>
  10.477 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  10.478 +        <j2seproject1:nbjpdareload/>
  10.479 +    </target>
  10.480 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  10.481 +    <!--
  10.482 +                ===============
  10.483 +                JAVADOC SECTION
  10.484 +                ===============
  10.485 +            -->
  10.486 +    <target depends="init" name="-javadoc-build">
  10.487 +        <mkdir dir="${dist.javadoc.dir}"/>
  10.488 +        <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}">
  10.489 +            <classpath>
  10.490 +                <path path="${javac.classpath}"/>
  10.491 +            </classpath>
  10.492 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  10.493 +                <filename name="**/*.java"/>
  10.494 +            </fileset>
  10.495 +        </javadoc>
  10.496 +    </target>
  10.497 +    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
  10.498 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  10.499 +    </target>
  10.500 +    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
  10.501 +    <!--
  10.502 +                =========================
  10.503 +                JUNIT COMPILATION SECTION
  10.504 +                =========================
  10.505 +            -->
  10.506 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  10.507 +        <mkdir dir="${build.test.classes.dir}"/>
  10.508 +    </target>
  10.509 +    <target name="-pre-compile-test">
  10.510 +        <!-- Empty placeholder for easier customization. -->
  10.511 +        <!-- You can override this target in the ../build.xml file. -->
  10.512 +    </target>
  10.513 +    <target if="do.depend.true" name="-compile-test-depend">
  10.514 +        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  10.515 +    </target>
  10.516 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
  10.517 +        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  10.518 +        <copy todir="${build.test.classes.dir}">
  10.519 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  10.520 +        </copy>
  10.521 +    </target>
  10.522 +    <target name="-post-compile-test">
  10.523 +        <!-- Empty placeholder for easier customization. -->
  10.524 +        <!-- You can override this target in the ../build.xml file. -->
  10.525 +    </target>
  10.526 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  10.527 +    <target name="-pre-compile-test-single">
  10.528 +        <!-- Empty placeholder for easier customization. -->
  10.529 +        <!-- You can override this target in the ../build.xml file. -->
  10.530 +    </target>
  10.531 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  10.532 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  10.533 +        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
  10.534 +        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
  10.535 +        <copy todir="${build.test.classes.dir}">
  10.536 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  10.537 +        </copy>
  10.538 +    </target>
  10.539 +    <target name="-post-compile-test-single">
  10.540 +        <!-- Empty placeholder for easier customization. -->
  10.541 +        <!-- You can override this target in the ../build.xml file. -->
  10.542 +    </target>
  10.543 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  10.544 +    <!--
  10.545 +                =======================
  10.546 +                JUNIT EXECUTION SECTION
  10.547 +                =======================
  10.548 +            -->
  10.549 +    <target depends="init" if="have.tests" name="-pre-test-run">
  10.550 +        <mkdir dir="${build.test.results.dir}"/>
  10.551 +    </target>
  10.552 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  10.553 +        <j2seproject3:junit testincludes="**/*Test.java"/>
  10.554 +    </target>
  10.555 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  10.556 +        <fail if="tests.failed">Some tests failed; see details above.</fail>
  10.557 +    </target>
  10.558 +    <target depends="init" if="have.tests" name="test-report"/>
  10.559 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  10.560 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  10.561 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
  10.562 +        <mkdir dir="${build.test.results.dir}"/>
  10.563 +    </target>
  10.564 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  10.565 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  10.566 +        <j2seproject3:junit excludes="" includes="${test.includes}"/>
  10.567 +    </target>
  10.568 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  10.569 +        <fail if="tests.failed">Some tests failed; see details above.</fail>
  10.570 +    </target>
  10.571 +    <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
  10.572 +    <!--
  10.573 +                =======================
  10.574 +                JUNIT DEBUGGING SECTION
  10.575 +                =======================
  10.576 +            -->
  10.577 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
  10.578 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  10.579 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
  10.580 +        <delete file="${test.report.file}"/>
  10.581 +        <mkdir dir="${build.test.results.dir}"/>
  10.582 +        <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
  10.583 +            <customize>
  10.584 +                <syspropertyset>
  10.585 +                    <propertyref prefix="test-sys-prop."/>
  10.586 +                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
  10.587 +                </syspropertyset>
  10.588 +                <arg value="${test.class}"/>
  10.589 +                <arg value="showoutput=true"/>
  10.590 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
  10.591 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
  10.592 +            </customize>
  10.593 +        </j2seproject3:debug>
  10.594 +    </target>
  10.595 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  10.596 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  10.597 +    </target>
  10.598 +    <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  10.599 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  10.600 +        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  10.601 +    </target>
  10.602 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  10.603 +    <!--
  10.604 +                =========================
  10.605 +                APPLET EXECUTION SECTION
  10.606 +                =========================
  10.607 +            -->
  10.608 +    <target depends="init,compile-single" name="run-applet">
  10.609 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  10.610 +        <j2seproject1:java classname="sun.applet.AppletViewer">
  10.611 +            <customize>
  10.612 +                <arg value="${applet.url}"/>
  10.613 +            </customize>
  10.614 +        </j2seproject1:java>
  10.615 +    </target>
  10.616 +    <!--
  10.617 +                =========================
  10.618 +                APPLET DEBUGGING  SECTION
  10.619 +                =========================
  10.620 +            -->
  10.621 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
  10.622 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  10.623 +        <j2seproject3:debug classname="sun.applet.AppletViewer">
  10.624 +            <customize>
  10.625 +                <arg value="${applet.url}"/>
  10.626 +            </customize>
  10.627 +        </j2seproject3:debug>
  10.628 +    </target>
  10.629 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
  10.630 +    <!--
  10.631 +                ===============
  10.632 +                CLEANUP SECTION
  10.633 +                ===============
  10.634 +            -->
  10.635 +    <target depends="init" name="deps-clean" unless="no.deps"/>
  10.636 +    <target depends="init" name="-do-clean">
  10.637 +        <delete dir="${build.dir}"/>
  10.638 +        <delete dir="${dist.dir}"/>
  10.639 +    </target>
  10.640 +    <target name="-post-clean">
  10.641 +        <!-- Empty placeholder for easier customization. -->
  10.642 +        <!-- You can override this target in the ../build.xml file. -->
  10.643 +    </target>
  10.644 +    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
  10.645 +</project>
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/java/HibernateDemo1/HibernateDemo1-lib/nbproject/genfiles.properties	Sat Mar 14 21:58:41 2009 +0100
    11.3 @@ -0,0 +1,8 @@
    11.4 +build.xml.data.CRC32=9dc487bf
    11.5 +build.xml.script.CRC32=11a4d0f6
    11.6 +build.xml.stylesheet.CRC32=958a1d3e
    11.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
    11.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    11.9 +nbproject/build-impl.xml.data.CRC32=9dc487bf
   11.10 +nbproject/build-impl.xml.script.CRC32=ef149eb8
   11.11 +nbproject/build-impl.xml.stylesheet.CRC32=65b8de21
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/java/HibernateDemo1/HibernateDemo1-lib/nbproject/project.properties	Sat Mar 14 21:58:41 2009 +0100
    12.3 @@ -0,0 +1,60 @@
    12.4 +build.classes.dir=${build.dir}/classes
    12.5 +build.classes.excludes=**/*.java,**/*.form
    12.6 +# This directory is removed when the project is cleaned:
    12.7 +build.dir=build
    12.8 +build.generated.dir=${build.dir}/generated
    12.9 +# Only compile against the classpath explicitly listed here:
   12.10 +build.sysclasspath=ignore
   12.11 +build.test.classes.dir=${build.dir}/test/classes
   12.12 +build.test.results.dir=${build.dir}/test/results
   12.13 +# Uncomment to specify the preferred debugger connection transport:
   12.14 +#debug.transport=dt_socket
   12.15 +debug.classpath=\
   12.16 +    ${run.classpath}
   12.17 +debug.test.classpath=\
   12.18 +    ${run.test.classpath}
   12.19 +# This directory is removed when the project is cleaned:
   12.20 +dist.dir=dist
   12.21 +dist.jar=${dist.dir}/HibernateDemo1-lib.jar
   12.22 +dist.javadoc.dir=${dist.dir}/javadoc
   12.23 +excludes=
   12.24 +includes=**
   12.25 +jar.compress=false
   12.26 +javac.classpath=\
   12.27 +    ${libs.JavaEE.classpath}
   12.28 +# Space-separated list of extra javac options
   12.29 +javac.compilerargs=
   12.30 +javac.deprecation=false
   12.31 +javac.source=1.5
   12.32 +javac.target=1.5
   12.33 +javac.test.classpath=\
   12.34 +    ${javac.classpath}:\
   12.35 +    ${build.classes.dir}:\
   12.36 +    ${libs.junit.classpath}:\
   12.37 +    ${libs.junit_4.classpath}
   12.38 +javadoc.additionalparam=
   12.39 +javadoc.author=false
   12.40 +javadoc.encoding=${source.encoding}
   12.41 +javadoc.noindex=false
   12.42 +javadoc.nonavbar=false
   12.43 +javadoc.notree=false
   12.44 +javadoc.private=false
   12.45 +javadoc.splitindex=true
   12.46 +javadoc.use=true
   12.47 +javadoc.version=false
   12.48 +javadoc.windowtitle=
   12.49 +meta.inf.dir=${src.dir}/META-INF
   12.50 +platform.active=default_platform
   12.51 +run.classpath=\
   12.52 +    ${javac.classpath}:\
   12.53 +    ${build.classes.dir}
   12.54 +# Space-separated list of JVM arguments used when running the project
   12.55 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
   12.56 +# or test-sys-prop.name=value to set system properties for unit tests):
   12.57 +run.jvmargs=
   12.58 +run.test.classpath=\
   12.59 +    ${javac.test.classpath}:\
   12.60 +    ${build.test.classes.dir}
   12.61 +source.encoding=UTF-8
   12.62 +src.dir=src
   12.63 +test.src.dir=test
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/java/HibernateDemo1/HibernateDemo1-lib/nbproject/project.xml	Sat Mar 14 21:58:41 2009 +0100
    13.3 @@ -0,0 +1,16 @@
    13.4 +<?xml version="1.0" encoding="UTF-8"?>
    13.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
    13.6 +    <type>org.netbeans.modules.java.j2seproject</type>
    13.7 +    <configuration>
    13.8 +        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
    13.9 +            <name>HibernateDemo1-lib</name>
   13.10 +            <minimum-ant-version>1.6.5</minimum-ant-version>
   13.11 +            <source-roots>
   13.12 +                <root id="src.dir"/>
   13.13 +            </source-roots>
   13.14 +            <test-roots>
   13.15 +                <root id="test.src.dir"/>
   13.16 +            </test-roots>
   13.17 +        </data>
   13.18 +    </configuration>
   13.19 +</project>
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/java/HibernateDemo1/HibernateDemo1-lib/src/cz/frantovo/hibernateDemo1/CilDAORemote.java	Sat Mar 14 21:58:41 2009 +0100
    14.3 @@ -0,0 +1,17 @@
    14.4 +/*
    14.5 + * To change this template, choose Tools | Templates
    14.6 + * and open the template in the editor.
    14.7 + */
    14.8 +
    14.9 +package cz.frantovo.hibernateDemo1;
   14.10 +
   14.11 +import javax.ejb.Remote;
   14.12 +
   14.13 +/**
   14.14 + *
   14.15 + * @author fiki
   14.16 + */
   14.17 +@Remote
   14.18 +public interface CilDAORemote {
   14.19 +    
   14.20 +}
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/java/HibernateDemo1/HibernateDemo1-lib/src/cz/frantovo/hibernateDemo1/dto/Cil.java	Sat Mar 14 21:58:41 2009 +0100
    15.3 @@ -0,0 +1,40 @@
    15.4 +package cz.frantovo.hibernateDemo1.dto;
    15.5 +
    15.6 +import java.io.Serializable;
    15.7 +
    15.8 +/**
    15.9 + * Definice cíle spamování
   15.10 + * @author fiki
   15.11 + */
   15.12 +public class Cil implements Serializable {
   15.13 +
   15.14 +    private static final long serialVersionUID = 3789654950408517499L;
   15.15 +    private int id;
   15.16 +    private String nazev;
   15.17 +    private String url;
   15.18 +
   15.19 +
   15.20 +    public int getId() {
   15.21 +        return id;
   15.22 +    }
   15.23 +
   15.24 +    public void setId(int id) {
   15.25 +        this.id = id;
   15.26 +    }
   15.27 +
   15.28 +    public String getNazev() {
   15.29 +        return nazev;
   15.30 +    }
   15.31 +
   15.32 +    public void setNazev(String nazev) {
   15.33 +        this.nazev = nazev;
   15.34 +    }
   15.35 +
   15.36 +    public String getUrl() {
   15.37 +        return url;
   15.38 +    }
   15.39 +
   15.40 +    public void setUrl(String url) {
   15.41 +        this.url = url;
   15.42 +    }
   15.43 +}
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/java/HibernateDemo1/HibernateDemo1-war/build.xml	Sat Mar 14 21:58:41 2009 +0100
    16.3 @@ -0,0 +1,71 @@
    16.4 +<?xml version="1.0" encoding="UTF-8"?>
    16.5 +<!-- You may freely edit this file. See commented blocks below for -->
    16.6 +<!-- some examples of how to customize the build. -->
    16.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
    16.8 +<!-- By default, only the Clean and Build commands use this build script. -->
    16.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
   16.10 +<!-- the Compile on Save feature is turned off for the project. -->
   16.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
   16.12 +<!-- in the project's Project Properties dialog box.-->
   16.13 +<project name="HibernateDemo1-war" default="default" basedir=".">
   16.14 +    <description>Builds, tests, and runs the project HibernateDemo1-war.</description>
   16.15 +    <import file="nbproject/build-impl.xml"/>
   16.16 +    <!--
   16.17 +
   16.18 +    There exist several targets which are by default empty and which can be 
   16.19 +    used for execution of your tasks. These targets are usually executed 
   16.20 +    before and after some main targets. They are: 
   16.21 +
   16.22 +      -pre-init:                 called before initialization of project properties 
   16.23 +      -post-init:                called after initialization of project properties 
   16.24 +      -pre-compile:              called before javac compilation 
   16.25 +      -post-compile:             called after javac compilation 
   16.26 +      -pre-compile-single:       called before javac compilation of single file
   16.27 +      -post-compile-single:      called after javac compilation of single file
   16.28 +      -pre-compile-test:         called before javac compilation of JUnit tests
   16.29 +      -post-compile-test:        called after javac compilation of JUnit tests
   16.30 +      -pre-compile-test-single:  called before javac compilation of single JUnit test
   16.31 +      -post-compile-test-single: called after javac compilation of single JUunit test
   16.32 +      -pre-dist:                 called before archive building 
   16.33 +      -post-dist:                called after archive building 
   16.34 +      -post-clean:               called after cleaning build products 
   16.35 +      -pre-run-deploy:           called before deploying
   16.36 +      -post-run-deploy:          called after deploying
   16.37 +
   16.38 +    Example of pluging an obfuscator after the compilation could look like 
   16.39 +
   16.40 +        <target name="-post-compile">
   16.41 +            <obfuscate>
   16.42 +                <fileset dir="${build.classes.dir}"/>
   16.43 +            </obfuscate>
   16.44 +        </target>
   16.45 +
   16.46 +    For list of available properties check the imported 
   16.47 +    nbproject/build-impl.xml file. 
   16.48 +
   16.49 +
   16.50 +    Other way how to customize the build is by overriding existing main targets.
   16.51 +    The target of interest are: 
   16.52 +
   16.53 +      init-macrodef-javac:    defines macro for javac compilation
   16.54 +      init-macrodef-junit:   defines macro for junit execution
   16.55 +      init-macrodef-debug:    defines macro for class debugging
   16.56 +      do-dist:                archive building
   16.57 +      run:                    execution of project 
   16.58 +      javadoc-build:          javadoc generation 
   16.59 +
   16.60 +    Example of overriding the target for project execution could look like 
   16.61 +
   16.62 +        <target name="run" depends="<PROJNAME>-impl.jar">
   16.63 +            <exec dir="bin" executable="launcher.exe">
   16.64 +                <arg file="${dist.jar}"/>
   16.65 +            </exec>
   16.66 +        </target>
   16.67 +
   16.68 +    Notice that overridden target depends on jar target and not only on 
   16.69 +    compile target as regular run target does. Again, for list of available 
   16.70 +    properties which you can use check the target you are overriding in 
   16.71 +    nbproject/build-impl.xml file. 
   16.72 +
   16.73 +    -->
   16.74 +</project>
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/java/HibernateDemo1/HibernateDemo1-war/nbproject/ant-deploy.xml	Sat Mar 14 21:58:41 2009 +0100
    17.3 @@ -0,0 +1,60 @@
    17.4 +<?xml version="1.0" encoding="UTF-8"?>
    17.5 +<project default="-deploy-ant" basedir=".">
    17.6 +    <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
    17.7 +        <property file="${deploy.ant.properties.file}" />
    17.8 +        <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
    17.9 +        <available file="${deploy.ant.resource.dir}" property="has.setup"/>
   17.10 +        <tempfile prefix="sjsas" property="sjsas.password.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   17.11 +        <echo message="AS_ADMIN_PASSWORD=${sjsas.password}" file="${sjsas.password.file}"/>
   17.12 +    </target>
   17.13 +    
   17.14 +    <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
   17.15 +        <tempfile prefix="sjsas" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
   17.16 +        <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
   17.17 +        <!-- The doctype triggers resolution which can fail -->
   17.18 +        <replace file="${temp.sun.web}">
   17.19 +            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
   17.20 +            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
   17.21 +        </replace>
   17.22 +        <replace file="${temp.sun.web}">
   17.23 +            <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
   17.24 +            <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
   17.25 +        </replace>
   17.26 +        <xmlproperty file="${temp.sun.web}" validate="false">
   17.27 +        </xmlproperty>    
   17.28 +        <delete file="${temp.sun.web}"/>
   17.29 +        <property name="deploy.ant.client.url" value="${sjsas.url}${sun-web-app.context-root}"/>
   17.30 +    </target>
   17.31 +    <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
   17.32 +        <tempfile prefix="sjsas" property="sjsas.resources.dir" destdir="${java.io.tmpdir}"/>
   17.33 +        <mkdir dir="${sjsas.resources.dir}"/>
   17.34 +        <mkdir dir="${sjsas.resources.dir}/META-INF"/>
   17.35 +        <property name="sjsas.resources.file" value="${sjsas.resources.dir}/META-INF/sun-resources.xml"/>
   17.36 +        <copy todir="${sjsas.resources.dir}/META-INF">
   17.37 +            <fileset dir="${deploy.ant.resource.dir}"/>
   17.38 +        </copy>
   17.39 +        <jar destfile="${deploy.ant.archive}" update="true">
   17.40 +            <fileset dir="${sjsas.resources.dir}"/>
   17.41 +        </jar>
   17.42 +        <delete dir="${sjsas.resources.dir}"/>
   17.43 +    </target>
   17.44 +    <target name="-deploy-ant" depends="-parse-sun-web,-add-resources" if="deploy.ant.enabled">
   17.45 +        <echo message="Deploying ${deploy.ant.archive}"/>
   17.46 +        <taskdef name="sun-appserv-deploy" classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask"
   17.47 +                 classpath="${sjsas.root}/lib/sun-appserv-ant.jar" />
   17.48 +        <sun-appserv-deploy user="${sjsas.username}"
   17.49 +                passwordfile="${sjsas.password.file}"
   17.50 +                host="${sjsas.host}" port="${sjsas.port}"
   17.51 +                file="${deploy.ant.archive}" asinstalldir="${sjsas.root}"/>
   17.52 +        <delete file="${sjsas.password.file}"/>
   17.53 +    </target>
   17.54 +    <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
   17.55 +        <taskdef name="sun-appserv-undeploy" classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.UndeployTask"
   17.56 +                 classpath="${sjsas.root}/lib/sun-appserv-ant.jar" />
   17.57 +        <sun-appserv-undeploy user="${sjsas.username}"
   17.58 +                passwordfile="${sjsas.password.file}"
   17.59 +                host="${sjsas.host}" port="${sjsas.port}"
   17.60 +                file="${deploy.ant.archive}" asinstalldir="${sjsas.root}"/>
   17.61 +        <delete file="${sjsas.password.file}"/>
   17.62 +    </target>
   17.63 +</project>
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/java/HibernateDemo1/HibernateDemo1-war/nbproject/build-impl.xml	Sat Mar 14 21:58:41 2009 +0100
    18.3 @@ -0,0 +1,824 @@
    18.4 +<?xml version="1.0" encoding="UTF-8"?>
    18.5 +<!--
    18.6 +        *** GENERATED FROM project.xml - DO NOT EDIT  ***
    18.7 +        ***         EDIT ../build.xml INSTEAD         ***
    18.8 +
    18.9 +        For the purpose of easier reading the script
   18.10 +        is divided into following sections:
   18.11 +        - initialization
   18.12 +        - compilation
   18.13 +        - dist
   18.14 +        - execution
   18.15 +        - debugging
   18.16 +        - javadoc
   18.17 +        - junit compilation
   18.18 +        - junit execution
   18.19 +        - junit debugging
   18.20 +        - cleanup
   18.21 +
   18.22 +        -->
   18.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="HibernateDemo1-war-impl">
   18.24 +    <import file="ant-deploy.xml"/>
   18.25 +    <target depends="dist,javadoc" description="Build whole project." name="default"/>
   18.26 +    <!--
   18.27 +                INITIALIZATION SECTION
   18.28 +            -->
   18.29 +    <target name="-pre-init">
   18.30 +        <!-- Empty placeholder for easier customization. -->
   18.31 +        <!-- You can override this target in the ../build.xml file. -->
   18.32 +    </target>
   18.33 +    <target depends="-pre-init" name="-init-private">
   18.34 +        <property file="nbproject/private/private.properties"/>
   18.35 +    </target>
   18.36 +    <target depends="-pre-init,-init-private" name="-init-user">
   18.37 +        <property file="${user.properties.file}"/>
   18.38 +        <!-- The two properties below are usually overridden -->
   18.39 +        <!-- by the active platform. Just a fallback. -->
   18.40 +        <property name="default.javac.source" value="1.4"/>
   18.41 +        <property name="default.javac.target" value="1.4"/>
   18.42 +    </target>
   18.43 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
   18.44 +        <property file="nbproject/project.properties"/>
   18.45 +    </target>
   18.46 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
   18.47 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
   18.48 +        <condition property="have.tests">
   18.49 +            <or>
   18.50 +                <available file="${test.src.dir}"/>
   18.51 +            </or>
   18.52 +        </condition>
   18.53 +        <condition property="have.sources">
   18.54 +            <or>
   18.55 +                <available file="${src.dir}"/>
   18.56 +            </or>
   18.57 +        </condition>
   18.58 +        <condition property="netbeans.home+have.tests">
   18.59 +            <and>
   18.60 +                <isset property="netbeans.home"/>
   18.61 +                <isset property="have.tests"/>
   18.62 +            </and>
   18.63 +        </condition>
   18.64 +        <condition property="no.javadoc.preview">
   18.65 +            <isfalse value="${javadoc.preview}"/>
   18.66 +        </condition>
   18.67 +        <property name="javac.compilerargs" value=""/>
   18.68 +        <condition property="no.deps">
   18.69 +            <and>
   18.70 +                <istrue value="${no.dependencies}"/>
   18.71 +            </and>
   18.72 +        </condition>
   18.73 +        <condition property="no.dist.ear.dir">
   18.74 +            <not>
   18.75 +                <isset property="dist.ear.dir"/>
   18.76 +            </not>
   18.77 +        </condition>
   18.78 +        <property name="build.web.excludes" value="${build.classes.excludes}"/>
   18.79 +        <condition property="do.compile.jsps">
   18.80 +            <istrue value="${compile.jsps}"/>
   18.81 +        </condition>
   18.82 +        <condition property="do.debug.server">
   18.83 +            <or>
   18.84 +                <not>
   18.85 +                    <isset property="debug.server"/>
   18.86 +                </not>
   18.87 +                <istrue value="${debug.server}"/>
   18.88 +                <and>
   18.89 +                    <not>
   18.90 +                        <istrue value="${debug.server}"/>
   18.91 +                    </not>
   18.92 +                    <not>
   18.93 +                        <istrue value="${debug.client}"/>
   18.94 +                    </not>
   18.95 +                </and>
   18.96 +            </or>
   18.97 +        </condition>
   18.98 +        <condition property="do.debug.client">
   18.99 +            <istrue value="${debug.client}"/>
  18.100 +        </condition>
  18.101 +        <condition property="do.display.browser">
  18.102 +            <istrue value="${display.browser}"/>
  18.103 +        </condition>
  18.104 +        <condition property="do.display.browser.debug">
  18.105 +            <and>
  18.106 +                <isset property="do.display.browser"/>
  18.107 +                <not>
  18.108 +                    <isset property="do.debug.client"/>
  18.109 +                </not>
  18.110 +            </and>
  18.111 +        </condition>
  18.112 +        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
  18.113 +        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
  18.114 +        <condition property="do.war.package.with.custom.manifest">
  18.115 +            <isset property="has.custom.manifest"/>
  18.116 +        </condition>
  18.117 +        <condition property="do.war.package.without.custom.manifest">
  18.118 +            <not>
  18.119 +                <isset property="has.custom.manifest"/>
  18.120 +            </not>
  18.121 +        </condition>
  18.122 +        <condition property="do.tmp.war.package.with.custom.manifest">
  18.123 +            <and>
  18.124 +                <isset property="has.custom.manifest"/>
  18.125 +                <isfalse value="${directory.deployment.supported}"/>
  18.126 +            </and>
  18.127 +        </condition>
  18.128 +        <condition property="do.tmp.war.package.without.custom.manifest">
  18.129 +            <and>
  18.130 +                <not>
  18.131 +                    <isset property="has.custom.manifest"/>
  18.132 +                </not>
  18.133 +                <isfalse value="${directory.deployment.supported}"/>
  18.134 +            </and>
  18.135 +        </condition>
  18.136 +        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
  18.137 +        <condition else="" property="application.args.param" value="${application.args}">
  18.138 +            <and>
  18.139 +                <isset property="application.args"/>
  18.140 +                <not>
  18.141 +                    <equals arg1="${application.args}" arg2="" trim="true"/>
  18.142 +                </not>
  18.143 +            </and>
  18.144 +        </condition>
  18.145 +        <property name="source.encoding" value="${file.encoding}"/>
  18.146 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  18.147 +            <and>
  18.148 +                <isset property="javadoc.encoding"/>
  18.149 +                <not>
  18.150 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
  18.151 +                </not>
  18.152 +            </and>
  18.153 +        </condition>
  18.154 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
  18.155 +        <property name="includes" value="**"/>
  18.156 +        <property name="excludes" value=""/>
  18.157 +        <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
  18.158 +            <and>
  18.159 +                <isset property="jaxws.endorsed.dir"/>
  18.160 +                <available file="nbproject/jaxws-build.xml"/>
  18.161 +            </and>
  18.162 +        </condition>
  18.163 +        <property name="runmain.jvmargs" value=""/>
  18.164 +    </target>
  18.165 +    <target depends="init" name="-init-cos" unless="deploy.on.save">
  18.166 +        <condition property="deploy.on.save" value="true">
  18.167 +            <istrue value="${j2ee.deploy.on.save}"/>
  18.168 +        </condition>
  18.169 +    </target>
  18.170 +    <target name="-post-init">
  18.171 +        <!-- Empty placeholder for easier customization. -->
  18.172 +        <!-- You can override this target in the ../build.xml file. -->
  18.173 +    </target>
  18.174 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  18.175 +        <fail unless="src.dir">Must set src.dir</fail>
  18.176 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
  18.177 +        <fail unless="build.dir">Must set build.dir</fail>
  18.178 +        <fail unless="build.web.dir">Must set build.web.dir</fail>
  18.179 +        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
  18.180 +        <fail unless="dist.dir">Must set dist.dir</fail>
  18.181 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  18.182 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  18.183 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  18.184 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  18.185 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  18.186 +        <fail unless="dist.war">Must set dist.war</fail>
  18.187 +        <fail unless="j2ee.platform.classpath">
  18.188 +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
  18.189 +Either open the project in the IDE and assign the server or setup the server classpath manually.
  18.190 +For example like this:
  18.191 +   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
  18.192 +or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
  18.193 +                </fail>
  18.194 +    </target>
  18.195 +    <target name="-init-macrodef-property">
  18.196 +        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
  18.197 +            <attribute name="name"/>
  18.198 +            <attribute name="value"/>
  18.199 +            <sequential>
  18.200 +                <property name="@{name}" value="${@{value}}"/>
  18.201 +            </sequential>
  18.202 +        </macrodef>
  18.203 +    </target>
  18.204 +    <target name="-init-macrodef-javac">
  18.205 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
  18.206 +            <attribute default="${src.dir}" name="srcdir"/>
  18.207 +            <attribute default="${build.classes.dir}" name="destdir"/>
  18.208 +            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  18.209 +            <attribute default="${includes}" name="includes"/>
  18.210 +            <attribute default="${excludes}" name="excludes"/>
  18.211 +            <attribute default="${javac.debug}" name="debug"/>
  18.212 +            <element name="customize" optional="true"/>
  18.213 +            <sequential>
  18.214 +                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
  18.215 +                    <classpath>
  18.216 +                        <path path="@{classpath}"/>
  18.217 +                    </classpath>
  18.218 +                    <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
  18.219 +                    <customize/>
  18.220 +                </javac>
  18.221 +            </sequential>
  18.222 +        </macrodef>
  18.223 +    </target>
  18.224 +    <target name="-init-macrodef-junit">
  18.225 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
  18.226 +            <attribute default="${includes}" name="includes"/>
  18.227 +            <attribute default="${excludes}" name="excludes"/>
  18.228 +            <attribute default="**" name="testincludes"/>
  18.229 +            <sequential>
  18.230 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
  18.231 +                    <batchtest todir="${build.test.results.dir}">
  18.232 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  18.233 +                            <filename name="@{testincludes}"/>
  18.234 +                        </fileset>
  18.235 +                    </batchtest>
  18.236 +                    <classpath>
  18.237 +                        <path path="${run.test.classpath}:${j2ee.platform.classpath}"/>
  18.238 +                    </classpath>
  18.239 +                    <syspropertyset>
  18.240 +                        <propertyref prefix="test-sys-prop."/>
  18.241 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  18.242 +                    </syspropertyset>
  18.243 +                    <formatter type="brief" usefile="false"/>
  18.244 +                    <formatter type="xml"/>
  18.245 +                    <jvmarg line="${runmain.jvmargs}"/>
  18.246 +                </junit>
  18.247 +            </sequential>
  18.248 +        </macrodef>
  18.249 +    </target>
  18.250 +    <target name="-init-macrodef-java">
  18.251 +        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
  18.252 +            <attribute default="${main.class}" name="classname"/>
  18.253 +            <element name="customize" optional="true"/>
  18.254 +            <sequential>
  18.255 +                <java classname="@{classname}" fork="true">
  18.256 +                    <jvmarg line="${runmain.jvmargs}"/>
  18.257 +                    <classpath>
  18.258 +                        <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
  18.259 +                    </classpath>
  18.260 +                    <syspropertyset>
  18.261 +                        <propertyref prefix="run-sys-prop."/>
  18.262 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  18.263 +                    </syspropertyset>
  18.264 +                    <customize/>
  18.265 +                </java>
  18.266 +            </sequential>
  18.267 +        </macrodef>
  18.268 +    </target>
  18.269 +    <target name="-init-macrodef-nbjsdebug">
  18.270 +        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
  18.271 +            <attribute default="${client.url}" name="webUrl"/>
  18.272 +            <sequential>
  18.273 +                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
  18.274 +            </sequential>
  18.275 +        </macrodef>
  18.276 +    </target>
  18.277 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  18.278 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
  18.279 +            <attribute default="${main.class}" name="name"/>
  18.280 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  18.281 +            <sequential>
  18.282 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
  18.283 +                    <classpath>
  18.284 +                        <path path="@{classpath}"/>
  18.285 +                    </classpath>
  18.286 +                </nbjpdastart>
  18.287 +            </sequential>
  18.288 +        </macrodef>
  18.289 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
  18.290 +            <attribute default="${build.classes.dir}" name="dir"/>
  18.291 +            <sequential>
  18.292 +                <nbjpdareload>
  18.293 +                    <fileset dir="@{dir}" includes="${fix.classes}">
  18.294 +                        <include name="${fix.includes}*.class"/>
  18.295 +                    </fileset>
  18.296 +                </nbjpdareload>
  18.297 +            </sequential>
  18.298 +        </macrodef>
  18.299 +        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
  18.300 +            <sequential>
  18.301 +                <nbjpdaappreloaded/>
  18.302 +            </sequential>
  18.303 +        </macrodef>
  18.304 +    </target>
  18.305 +    <target name="-init-debug-args">
  18.306 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
  18.307 +        <condition property="have-jdk-older-than-1.4">
  18.308 +            <or>
  18.309 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
  18.310 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
  18.311 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
  18.312 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
  18.313 +            </or>
  18.314 +        </condition>
  18.315 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  18.316 +            <istrue value="${have-jdk-older-than-1.4}"/>
  18.317 +        </condition>
  18.318 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  18.319 +            <os family="windows"/>
  18.320 +        </condition>
  18.321 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  18.322 +            <isset property="debug.transport"/>
  18.323 +        </condition>
  18.324 +    </target>
  18.325 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
  18.326 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
  18.327 +            <attribute default="${main.class}" name="classname"/>
  18.328 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  18.329 +            <attribute default="${application.args.param}" name="args"/>
  18.330 +            <element name="customize" optional="true"/>
  18.331 +            <sequential>
  18.332 +                <java classname="@{classname}" fork="true">
  18.333 +                    <jvmarg line="${debug-args-line}"/>
  18.334 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  18.335 +                    <jvmarg line="${runmain.jvmargs}"/>
  18.336 +                    <classpath>
  18.337 +                        <path path="@{classpath}"/>
  18.338 +                    </classpath>
  18.339 +                    <syspropertyset>
  18.340 +                        <propertyref prefix="run-sys-prop."/>
  18.341 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  18.342 +                    </syspropertyset>
  18.343 +                    <arg line="@{args}"/>
  18.344 +                    <customize/>
  18.345 +                </java>
  18.346 +            </sequential>
  18.347 +        </macrodef>
  18.348 +    </target>
  18.349 +    <target name="-init-taskdefs">
  18.350 +        <fail unless="libs.CopyLibs.classpath">
  18.351 +The libs.CopyLibs.classpath property is not set up.
  18.352 +This property must point to 
  18.353 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
  18.354 +of NetBeans IDE installation and is usually located at 
  18.355 +&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
  18.356 +Either open the project in the IDE and make sure CopyLibs library
  18.357 +exists or setup the property manually. For example like this:
  18.358 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
  18.359 +                </fail>
  18.360 +        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
  18.361 +    </target>
  18.362 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs" name="init"/>
  18.363 +    <!--
  18.364 +                COMPILATION SECTION
  18.365 +            -->
  18.366 +    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
  18.367 +        <ant antfile="${project.HibernateDemo1-ejb}/build.xml" inheritall="false" target="dist"/>
  18.368 +        <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="jar"/>
  18.369 +    </target>
  18.370 +    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
  18.371 +        <ant antfile="${project.HibernateDemo1-ejb}/build.xml" inheritall="false" target="dist-ear">
  18.372 +            <property location="${build.dir}" name="dist.ear.dir"/>
  18.373 +        </ant>
  18.374 +        <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="jar"/>
  18.375 +    </target>
  18.376 +    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
  18.377 +    <target depends="init,deps-jar" name="-pre-pre-compile">
  18.378 +        <mkdir dir="${build.classes.dir}"/>
  18.379 +    </target>
  18.380 +    <target name="-pre-compile">
  18.381 +        <!-- Empty placeholder for easier customization. -->
  18.382 +        <!-- You can override this target in the ../build.xml file. -->
  18.383 +    </target>
  18.384 +    <target name="-copy-webdir">
  18.385 +        <copy todir="${build.web.dir}">
  18.386 +            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
  18.387 +        </copy>
  18.388 +        <copy todir="${build.web.dir}/WEB-INF">
  18.389 +            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
  18.390 +        </copy>
  18.391 +    </target>
  18.392 +    <target name="-do-ws-compile"/>
  18.393 +    <target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest,-do-ws-compile" if="have.sources" name="-do-compile">
  18.394 +        <webproject2:javac destdir="${build.classes.dir}"/>
  18.395 +        <copy todir="${build.classes.dir}">
  18.396 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  18.397 +        </copy>
  18.398 +    </target>
  18.399 +    <target if="has.custom.manifest" name="-copy-manifest">
  18.400 +        <mkdir dir="${build.meta.inf.dir}"/>
  18.401 +        <copy todir="${build.meta.inf.dir}">
  18.402 +            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
  18.403 +        </copy>
  18.404 +    </target>
  18.405 +    <target if="has.persistence.xml" name="-copy-persistence-xml">
  18.406 +        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
  18.407 +        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
  18.408 +            <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
  18.409 +        </copy>
  18.410 +    </target>
  18.411 +    <target name="-post-compile">
  18.412 +        <!-- Empty placeholder for easier customization. -->
  18.413 +        <!-- You can override this target in the ../build.xml file. -->
  18.414 +    </target>
  18.415 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  18.416 +    <target name="-pre-compile-single">
  18.417 +        <!-- Empty placeholder for easier customization. -->
  18.418 +        <!-- You can override this target in the ../build.xml file. -->
  18.419 +    </target>
  18.420 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  18.421 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  18.422 +        <webproject2:javac excludes="" includes="${javac.includes}"/>
  18.423 +        <copy todir="${build.classes.dir}">
  18.424 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  18.425 +        </copy>
  18.426 +    </target>
  18.427 +    <target name="-post-compile-single">
  18.428 +        <!-- Empty placeholder for easier customization. -->
  18.429 +        <!-- You can override this target in the ../build.xml file. -->
  18.430 +    </target>
  18.431 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  18.432 +    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
  18.433 +        <mkdir dir="${build.generated.dir}/src"/>
  18.434 +        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
  18.435 +            <arg value="-uriroot"/>
  18.436 +            <arg file="${basedir}/${build.web.dir}"/>
  18.437 +            <arg value="-d"/>
  18.438 +            <arg file="${basedir}/${build.generated.dir}/src"/>
  18.439 +            <arg value="-die1"/>
  18.440 +            <arg value="-compilerSourceVM ${javac.source}"/>
  18.441 +            <arg value="-compilerTargetVM ${javac.target}"/>
  18.442 +            <arg value="-javaEncoding ${source.encoding}"/>
  18.443 +            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
  18.444 +        </java>
  18.445 +        <mkdir dir="${build.generated.dir}/classes"/>
  18.446 +        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
  18.447 +    </target>
  18.448 +    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
  18.449 +        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
  18.450 +        <mkdir dir="${build.generated.dir}/src"/>
  18.451 +        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
  18.452 +            <arg value="-uriroot"/>
  18.453 +            <arg file="${basedir}/${build.web.dir}"/>
  18.454 +            <arg value="-d"/>
  18.455 +            <arg file="${basedir}/${build.generated.dir}/src"/>
  18.456 +            <arg value="-die1"/>
  18.457 +            <arg value="-jspc.files"/>
  18.458 +            <arg path="${jsp.includes}"/>
  18.459 +            <arg value="-compilerSourceVM ${javac.source}"/>
  18.460 +            <arg value="-compilerTargetVM ${javac.target}"/>
  18.461 +            <arg value="-javaEncoding ${source.encoding}"/>
  18.462 +            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
  18.463 +        </java>
  18.464 +        <mkdir dir="${build.generated.dir}/classes"/>
  18.465 +        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
  18.466 +            <customize>
  18.467 +                <patternset includes="${javac.jsp.includes}"/>
  18.468 +            </customize>
  18.469 +        </webproject2:javac>
  18.470 +    </target>
  18.471 +    <target name="compile-single-jsp">
  18.472 +        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
  18.473 +        <antcall target="-do-compile-single-jsp"/>
  18.474 +    </target>
  18.475 +    <!--
  18.476 +                DIST BUILDING SECTION
  18.477 +            -->
  18.478 +    <target name="-pre-dist">
  18.479 +        <!-- Empty placeholder for easier customization. -->
  18.480 +        <!-- You can override this target in the ../build.xml file. -->
  18.481 +    </target>
  18.482 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
  18.483 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
  18.484 +        <mkdir dir="${dist.jar.dir}"/>
  18.485 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
  18.486 +            <fileset dir="${build.web.dir}"/>
  18.487 +        </jar>
  18.488 +    </target>
  18.489 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
  18.490 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
  18.491 +        <mkdir dir="${dist.jar.dir}"/>
  18.492 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
  18.493 +            <fileset dir="${build.web.dir}"/>
  18.494 +        </jar>
  18.495 +    </target>
  18.496 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
  18.497 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
  18.498 +        <mkdir dir="${dist.jar.dir}"/>
  18.499 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
  18.500 +            <fileset dir="${build.web.dir}"/>
  18.501 +        </jar>
  18.502 +    </target>
  18.503 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
  18.504 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
  18.505 +        <mkdir dir="${dist.jar.dir}"/>
  18.506 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
  18.507 +            <fileset dir="${build.web.dir}"/>
  18.508 +        </jar>
  18.509 +    </target>
  18.510 +    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
  18.511 +    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
  18.512 +        <copyfiles files="${reference.HibernateDemo1-ejb.dist}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.reference.HibernateDemo1-ejb.dist" todir="${dist.ear.dir}"/>
  18.513 +        <copyfiles files="${reference.HibernateDemo1-lib.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.reference.HibernateDemo1-lib.jar" todir="${dist.ear.dir}"/>
  18.514 +        <mkdir dir="${build.web.dir}/META-INF"/>
  18.515 +        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update">
  18.516 +            <attribute name="Class-Path" value="${manifest.reference.HibernateDemo1-ejb.dist} ${manifest.reference.HibernateDemo1-lib.jar} "/>
  18.517 +        </manifest>
  18.518 +    </target>
  18.519 +    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
  18.520 +        <copyfiles files="${reference.HibernateDemo1-ejb.dist}" todir="${build.web.dir}/WEB-INF/lib"/>
  18.521 +        <copyfiles files="${reference.HibernateDemo1-lib.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
  18.522 +    </target>
  18.523 +    <target depends="init,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" name="do-ear-dist">
  18.524 +        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
  18.525 +        <mkdir dir="${dist.jar.dir}"/>
  18.526 +        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
  18.527 +            <fileset dir="${build.web.dir}"/>
  18.528 +        </jar>
  18.529 +    </target>
  18.530 +    <target name="-post-dist">
  18.531 +        <!-- Empty placeholder for easier customization. -->
  18.532 +        <!-- You can override this target in the ../build.xml file. -->
  18.533 +    </target>
  18.534 +    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
  18.535 +    <target depends="init,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
  18.536 +    <!--
  18.537 +                EXECUTION SECTION
  18.538 +            -->
  18.539 +    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
  18.540 +    <target name="-pre-run-deploy">
  18.541 +        <!-- Empty placeholder for easier customization. -->
  18.542 +        <!-- You can override this target in the ../build.xml file. -->
  18.543 +    </target>
  18.544 +    <target name="-post-run-deploy">
  18.545 +        <!-- Empty placeholder for easier customization. -->
  18.546 +        <!-- You can override this target in the ../build.xml file. -->
  18.547 +    </target>
  18.548 +    <target name="-pre-nbmodule-run-deploy">
  18.549 +        <!-- Empty placeholder for easier customization. -->
  18.550 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
  18.551 +    </target>
  18.552 +    <target name="-post-nbmodule-run-deploy">
  18.553 +        <!-- Empty placeholder for easier customization. -->
  18.554 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
  18.555 +    </target>
  18.556 +    <target name="-run-deploy-am">
  18.557 +        <!-- Task to deploy to the Access Manager runtime. -->
  18.558 +    </target>
  18.559 +    <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">
  18.560 +        <nbjpdaappreloaded/>
  18.561 +    </target>
  18.562 +    <target if="netbeans.home" name="-run-deploy-nb">
  18.563 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
  18.564 +    </target>
  18.565 +    <target name="-init-deploy-ant" unless="netbeans.home">
  18.566 +        <property name="deploy.ant.archive" value="${dist.war}"/>
  18.567 +        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
  18.568 +        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
  18.569 +        <property name="deploy.ant.enabled" value="true"/>
  18.570 +    </target>
  18.571 +    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
  18.572 +    <target if="netbeans.home" name="-run-undeploy-nb">
  18.573 +        <fail message="Undeploy is not supported from within the IDE"/>
  18.574 +    </target>
  18.575 +    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
  18.576 +        <nbverify file="${dist.war}"/>
  18.577 +    </target>
  18.578 +    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
  18.579 +    <target if="do.display.browser" name="-init-display-browser">
  18.580 +        <condition property="do.display.browser.nb">
  18.581 +            <isset property="netbeans.home"/>
  18.582 +        </condition>
  18.583 +        <condition property="do.display.browser.cl">
  18.584 +            <isset property="deploy.ant.enabled"/>
  18.585 +        </condition>
  18.586 +    </target>
  18.587 +    <target if="do.display.browser.nb" name="-display-browser-nb">
  18.588 +        <nbbrowse url="${client.url}"/>
  18.589 +    </target>
  18.590 +    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
  18.591 +        <condition property="browser" value="rundll32">
  18.592 +            <os family="windows"/>
  18.593 +        </condition>
  18.594 +        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
  18.595 +            <os family="windows"/>
  18.596 +        </condition>
  18.597 +        <condition property="browser" value="/usr/bin/open">
  18.598 +            <os family="mac"/>
  18.599 +        </condition>
  18.600 +        <property environment="env"/>
  18.601 +        <condition property="browser" value="${env.BROWSER}">
  18.602 +            <isset property="env.BROWSER"/>
  18.603 +        </condition>
  18.604 +        <condition property="browser" value="/usr/bin/firefox">
  18.605 +            <available file="/usr/bin/firefox"/>
  18.606 +        </condition>
  18.607 +        <condition property="browser" value="/usr/local/firefox/firefox">
  18.608 +            <available file="/usr/local/firefox/firefox"/>
  18.609 +        </condition>
  18.610 +        <condition property="browser" value="/usr/bin/mozilla">
  18.611 +            <available file="/usr/bin/mozilla"/>
  18.612 +        </condition>
  18.613 +        <condition property="browser" value="/usr/local/mozilla/mozilla">
  18.614 +            <available file="/usr/local/mozilla/mozilla"/>
  18.615 +        </condition>
  18.616 +        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
  18.617 +            <available file="/usr/sfw/lib/firefox/firefox"/>
  18.618 +        </condition>
  18.619 +        <condition property="browser" value="/opt/csw/bin/firefox">
  18.620 +            <available file="/opt/csw/bin/firefox"/>
  18.621 +        </condition>
  18.622 +        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
  18.623 +            <available file="/usr/sfw/lib/mozilla/mozilla"/>
  18.624 +        </condition>
  18.625 +        <condition property="browser" value="/opt/csw/bin/mozilla">
  18.626 +            <available file="/opt/csw/bin/mozilla"/>
  18.627 +        </condition>
  18.628 +    </target>
  18.629 +    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
  18.630 +        <fail unless="browser">
  18.631 +                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
  18.632 +                </fail>
  18.633 +        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
  18.634 +        <echo>Launching ${browse.url}</echo>
  18.635 +        <exec executable="${browser}" spawn="true">
  18.636 +            <arg line="${browser.args} ${browse.url}"/>
  18.637 +        </exec>
  18.638 +    </target>
  18.639 +    <target depends="init,-init-cos,compile-single" name="run-main">
  18.640 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  18.641 +        <webproject1:java classname="${run.class}"/>
  18.642 +    </target>
  18.643 +    <!--
  18.644 +                DEBUGGING SECTION
  18.645 +            -->
  18.646 +    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
  18.647 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true"/>
  18.648 +        <antcall target="connect-debugger"/>
  18.649 +        <antcall target="debug-display-browser"/>
  18.650 +        <antcall target="connect-client-debugger"/>
  18.651 +    </target>
  18.652 +    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
  18.653 +        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
  18.654 +            <classpath>
  18.655 +                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
  18.656 +            </classpath>
  18.657 +            <sourcepath>
  18.658 +                <path path="${web.docbase.dir}"/>
  18.659 +            </sourcepath>
  18.660 +        </nbjpdaconnect>
  18.661 +    </target>
  18.662 +    <target if="do.display.browser.debug" name="debug-display-browser">
  18.663 +        <nbbrowse url="${client.url}"/>
  18.664 +    </target>
  18.665 +    <target if="do.debug.client" name="connect-client-debugger">
  18.666 +        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
  18.667 +    </target>
  18.668 +    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
  18.669 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  18.670 +        <webproject1:nbjpdastart name="${debug.class}"/>
  18.671 +    </target>
  18.672 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  18.673 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  18.674 +        <webproject1:debug classname="${debug.class}"/>
  18.675 +    </target>
  18.676 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
  18.677 +    <target depends="init" name="-pre-debug-fix">
  18.678 +        <fail unless="fix.includes">Must set fix.includes</fail>
  18.679 +        <property name="javac.includes" value="${fix.includes}.java"/>
  18.680 +    </target>
  18.681 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  18.682 +        <webproject1:nbjpdareload/>
  18.683 +    </target>
  18.684 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  18.685 +    <!--
  18.686 +                JAVADOC SECTION
  18.687 +            -->
  18.688 +    <target depends="init" name="javadoc-build">
  18.689 +        <mkdir dir="${dist.javadoc.dir}"/>
  18.690 +        <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}">
  18.691 +            <classpath>
  18.692 +                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
  18.693 +            </classpath>
  18.694 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  18.695 +                <filename name="**/*.java"/>
  18.696 +            </fileset>
  18.697 +        </javadoc>
  18.698 +    </target>
  18.699 +    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
  18.700 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  18.701 +    </target>
  18.702 +    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
  18.703 +    <!--
  18.704 +                
  18.705 +                JUNIT COMPILATION SECTION
  18.706 +            -->
  18.707 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  18.708 +        <mkdir dir="${build.test.classes.dir}"/>
  18.709 +    </target>
  18.710 +    <target name="-pre-compile-test">
  18.711 +        <!-- Empty placeholder for easier customization. -->
  18.712 +        <!-- You can override this target in the ../build.xml file. -->
  18.713 +    </target>
  18.714 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
  18.715 +        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  18.716 +        <copy todir="${build.test.classes.dir}">
  18.717 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  18.718 +        </copy>
  18.719 +    </target>
  18.720 +    <target name="-post-compile-test">
  18.721 +        <!-- Empty placeholder for easier customization. -->
  18.722 +        <!-- You can override this target in the ../build.xml file. -->
  18.723 +    </target>
  18.724 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  18.725 +    <target name="-pre-compile-test-single">
  18.726 +        <!-- Empty placeholder for easier customization. -->
  18.727 +        <!-- You can override this target in the ../build.xml file. -->
  18.728 +    </target>
  18.729 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  18.730 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  18.731 +        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
  18.732 +        <copy todir="${build.test.classes.dir}">
  18.733 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  18.734 +        </copy>
  18.735 +    </target>
  18.736 +    <target name="-post-compile-test-single">
  18.737 +        <!-- Empty placeholder for easier customization. -->
  18.738 +        <!-- You can override this target in the ../build.xml file. -->
  18.739 +    </target>
  18.740 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  18.741 +    <!--
  18.742 +                
  18.743 +                JUNIT EXECUTION SECTION
  18.744 +            -->
  18.745 +    <target depends="init" if="have.tests" name="-pre-test-run">
  18.746 +        <mkdir dir="${build.test.results.dir}"/>
  18.747 +    </target>
  18.748 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  18.749 +        <webproject2:junit testincludes="**/*Test.java"/>
  18.750 +    </target>
  18.751 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  18.752 +        <fail if="tests.failed">Some tests failed; see details above.</fail>
  18.753 +    </target>
  18.754 +    <target depends="init" if="have.tests" name="test-report"/>
  18.755 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  18.756 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  18.757 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
  18.758 +        <mkdir dir="${build.test.results.dir}"/>
  18.759 +    </target>
  18.760 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  18.761 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  18.762 +        <webproject2:junit excludes="" includes="${test.includes}"/>
  18.763 +    </target>
  18.764 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  18.765 +        <fail if="tests.failed">Some tests failed; see details above.</fail>
  18.766 +    </target>
  18.767 +    <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"/>
  18.768 +    <!--
  18.769 +                
  18.770 +                JUNIT DEBUGGING SECTION
  18.771 +            -->
  18.772 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
  18.773 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  18.774 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
  18.775 +        <delete file="${test.report.file}"/>
  18.776 +        <!-- must exist, otherwise the XML formatter would fail -->
  18.777 +        <mkdir dir="${build.test.results.dir}"/>
  18.778 +        <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}">
  18.779 +            <customize>
  18.780 +                <arg value="showoutput=true"/>
  18.781 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
  18.782 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
  18.783 +            </customize>
  18.784 +        </webproject1:debug>
  18.785 +    </target>
  18.786 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  18.787 +        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  18.788 +    </target>
  18.789 +    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  18.790 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  18.791 +        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  18.792 +    </target>
  18.793 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  18.794 +    <!--
  18.795 +                
  18.796 +                CLEANUP SECTION
  18.797 +            -->
  18.798 +    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
  18.799 +        <ant antfile="${project.HibernateDemo1-ejb}/build.xml" inheritall="false" target="clean"/>
  18.800 +        <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="clean"/>
  18.801 +    </target>
  18.802 +    <target depends="init" name="do-clean">
  18.803 +        <condition property="build.dir.to.clean" value="${build.web.dir}">
  18.804 +            <isset property="dist.ear.dir"/>
  18.805 +        </condition>
  18.806 +        <property name="build.dir.to.clean" value="${build.web.dir}"/>
  18.807 +        <delete includeEmptyDirs="true" quiet="true">
  18.808 +            <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
  18.809 +        </delete>
  18.810 +        <delete dir="${build.dir}"/>
  18.811 +        <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
  18.812 +        <delete dir="${dist.dir}"/>
  18.813 +    </target>
  18.814 +    <target depends="do-clean" if="status.clean-failed" name="check-clean">
  18.815 +        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
  18.816 +        <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
  18.817 +    </target>
  18.818 +    <target depends="init" if="netbeans.home" name="undeploy-clean">
  18.819 +        <nbundeploy failOnError="false" startServer="false"/>
  18.820 +    </target>
  18.821 +    <target name="-post-clean">
  18.822 +        <!-- Empty placeholder for easier customization. -->
  18.823 +        <!-- You can override this target in the ../build.xml file. -->
  18.824 +    </target>
  18.825 +    <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
  18.826 +    <target depends="clean" description="Clean build products." name="clean-ear"/>
  18.827 +</project>
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/java/HibernateDemo1/HibernateDemo1-war/nbproject/genfiles.properties	Sat Mar 14 21:58:41 2009 +0100
    19.3 @@ -0,0 +1,8 @@
    19.4 +build.xml.data.CRC32=79a976de
    19.5 +build.xml.script.CRC32=c9f21ad6
    19.6 +build.xml.stylesheet.CRC32=c0ebde35
    19.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
    19.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    19.9 +nbproject/build-impl.xml.data.CRC32=79a976de
   19.10 +nbproject/build-impl.xml.script.CRC32=20cb0e44
   19.11 +nbproject/build-impl.xml.stylesheet.CRC32=174458fc
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/java/HibernateDemo1/HibernateDemo1-war/nbproject/project.properties	Sat Mar 14 21:58:41 2009 +0100
    20.3 @@ -0,0 +1,76 @@
    20.4 +build.classes.dir=${build.web.dir}/WEB-INF/classes
    20.5 +build.classes.excludes=**/*.java,**/*.form
    20.6 +build.dir=build
    20.7 +build.generated.dir=${build.dir}/generated
    20.8 +build.test.classes.dir=${build.dir}/test/classes
    20.9 +build.test.results.dir=${build.dir}/test/results
   20.10 +build.web.dir=${build.dir}/web
   20.11 +build.web.excludes=${build.classes.excludes}
   20.12 +client.urlPart=
   20.13 +compile.jsps=false
   20.14 +conf.dir=${source.root}/conf
   20.15 +debug.classpath=${build.classes.dir}:${javac.classpath}
   20.16 +debug.test.classpath=\
   20.17 +    ${run.test.classpath}
   20.18 +display.browser=true
   20.19 +dist.dir=dist
   20.20 +dist.ear.war=${dist.dir}/${war.ear.name}
   20.21 +dist.javadoc.dir=${dist.dir}/javadoc
   20.22 +dist.war=${dist.dir}/${war.name}
   20.23 +excludes=
   20.24 +includes=**
   20.25 +j2ee.deploy.on.save=true
   20.26 +j2ee.platform=1.5
   20.27 +j2ee.server.type=J2EE
   20.28 +jar.compress=false
   20.29 +javac.classpath=\
   20.30 +    ${reference.HibernateDemo1-ejb.dist}:\
   20.31 +    ${reference.HibernateDemo1-lib.jar}
   20.32 +# Space-separated list of extra javac options
   20.33 +javac.compilerargs=
   20.34 +javac.debug=true
   20.35 +javac.deprecation=false
   20.36 +javac.source=1.5
   20.37 +javac.target=1.5
   20.38 +javac.test.classpath=\
   20.39 +    ${javac.classpath}:\
   20.40 +    ${build.classes.dir}:\
   20.41 +    ${libs.junit.classpath}:\
   20.42 +    ${libs.junit_4.classpath}
   20.43 +javadoc.additionalparam=
   20.44 +javadoc.author=false
   20.45 +javadoc.encoding=${source.encoding}
   20.46 +javadoc.noindex=false
   20.47 +javadoc.nonavbar=false
   20.48 +javadoc.notree=false
   20.49 +javadoc.preview=true
   20.50 +javadoc.private=false
   20.51 +javadoc.splitindex=true
   20.52 +javadoc.use=true
   20.53 +javadoc.version=false
   20.54 +javadoc.windowtitle=
   20.55 +jspcompilation.classpath=${jspc.classpath}:${javac.classpath}
   20.56 +lib.dir=${web.docbase.dir}/WEB-INF/lib
   20.57 +no.dependencies=false
   20.58 +persistence.xml.dir=${conf.dir}
   20.59 +platform.active=default_platform
   20.60 +project.HibernateDemo1-ejb=../HibernateDemo1-ejb
   20.61 +project.HibernateDemo1-lib=../HibernateDemo1-lib
   20.62 +reference.HibernateDemo1-ejb.dist=${project.HibernateDemo1-ejb}/dist/HibernateDemo1-ejb.jar
   20.63 +reference.HibernateDemo1-lib.jar=${project.HibernateDemo1-lib}/dist/HibernateDemo1-lib.jar
   20.64 +resource.dir=setup
   20.65 +run.test.classpath=\
   20.66 +    ${javac.test.classpath}:\
   20.67 +    ${build.test.classes.dir}
   20.68 +# Space-separated list of JVM arguments used when running a class with a main method or a unit test
   20.69 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
   20.70 +runmain.jvmargs=
   20.71 +source.encoding=UTF-8
   20.72 +source.root=src
   20.73 +src.dir=${source.root}/java
   20.74 +test.src.dir=test
   20.75 +war.content.additional=
   20.76 +war.ear.name=HibernateDemo1-war.war
   20.77 +war.name=HibernateDemo1-war.war
   20.78 +web.docbase.dir=web
   20.79 +webinf.dir=web/WEB-INF
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/java/HibernateDemo1/HibernateDemo1-war/nbproject/project.xml	Sat Mar 14 21:58:41 2009 +0100
    21.3 @@ -0,0 +1,45 @@
    21.4 +<?xml version="1.0" encoding="UTF-8"?>
    21.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
    21.6 +    <type>org.netbeans.modules.web.project</type>
    21.7 +    <configuration>
    21.8 +        <data xmlns="http://www.netbeans.org/ns/web-project/3">
    21.9 +            <name>HibernateDemo1-war</name>
   21.10 +            <minimum-ant-version>1.6.5</minimum-ant-version>
   21.11 +            <web-module-libraries>
   21.12 +                <library>
   21.13 +                    <file>${reference.HibernateDemo1-ejb.dist}</file>
   21.14 +                    <path-in-war>WEB-INF/lib</path-in-war>
   21.15 +                </library>
   21.16 +                <library>
   21.17 +                    <file>${reference.HibernateDemo1-lib.jar}</file>
   21.18 +                    <path-in-war>WEB-INF/lib</path-in-war>
   21.19 +                </library>
   21.20 +            </web-module-libraries>
   21.21 +            <web-module-additional-libraries/>
   21.22 +            <source-roots>
   21.23 +                <root id="src.dir" name="Source Packages"/>
   21.24 +            </source-roots>
   21.25 +            <test-roots>
   21.26 +                <root id="test.src.dir" name="Test Packages"/>
   21.27 +            </test-roots>
   21.28 +        </data>
   21.29 +        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
   21.30 +            <reference>
   21.31 +                <foreign-project>HibernateDemo1-ejb</foreign-project>
   21.32 +                <artifact-type>jar</artifact-type>
   21.33 +                <script>build.xml</script>
   21.34 +                <target>dist</target>
   21.35 +                <clean-target>clean</clean-target>
   21.36 +                <id>dist</id>
   21.37 +            </reference>
   21.38 +            <reference>
   21.39 +                <foreign-project>HibernateDemo1-lib</foreign-project>
   21.40 +                <artifact-type>jar</artifact-type>
   21.41 +                <script>build.xml</script>
   21.42 +                <target>jar</target>
   21.43 +                <clean-target>clean</clean-target>
   21.44 +                <id>jar</id>
   21.45 +            </reference>
   21.46 +        </references>
   21.47 +    </configuration>
   21.48 +</project>
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/java/HibernateDemo1/HibernateDemo1-war/web/WEB-INF/sun-web.xml	Sat Mar 14 21:58:41 2009 +0100
    22.3 @@ -0,0 +1,11 @@
    22.4 +<?xml version="1.0" encoding="UTF-8"?>
    22.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">
    22.6 +<sun-web-app error-url="">
    22.7 +  <context-root>/HibernateDemo1-war</context-root>
    22.8 +  <class-loader delegate="true"/>
    22.9 +  <jsp-config>
   22.10 +    <property name="keepgenerated" value="true">
   22.11 +      <description>Keep a copy of the generated servlet class' java code.</description>
   22.12 +    </property>
   22.13 +  </jsp-config>
   22.14 +</sun-web-app>
    23.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.2 +++ b/java/HibernateDemo1/HibernateDemo1-war/web/WEB-INF/web.xml	Sat Mar 14 21:58:41 2009 +0100
    23.3 @@ -0,0 +1,11 @@
    23.4 +<?xml version="1.0" encoding="UTF-8"?>
    23.5 +<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    23.6 +    <session-config>
    23.7 +        <session-timeout>
    23.8 +            30
    23.9 +        </session-timeout>
   23.10 +    </session-config>
   23.11 +    <welcome-file-list>
   23.12 +        <welcome-file>index.jsp</welcome-file>
   23.13 +        </welcome-file-list>
   23.14 +    </web-app>
    24.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.2 +++ b/java/HibernateDemo1/HibernateDemo1-war/web/index.jsp	Sat Mar 14 21:58:41 2009 +0100
    24.3 @@ -0,0 +1,19 @@
    24.4 +<%-- 
    24.5 +    Document   : index
    24.6 +    Created on : 14.3.2009, 21:22:28
    24.7 +    Author     : fiki
    24.8 +--%>
    24.9 +
   24.10 +<%@page contentType="text/html" pageEncoding="UTF-8"%>
   24.11 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   24.12 +   "http://www.w3.org/TR/html4/loose.dtd">
   24.13 +
   24.14 +<html>
   24.15 +    <head>
   24.16 +        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   24.17 +        <title>JSP Page</title>
   24.18 +    </head>
   24.19 +    <body>
   24.20 +        <h1>Hello World!</h1>
   24.21 +    </body>
   24.22 +</html>
    25.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.2 +++ b/java/HibernateDemo1/build.xml	Sat Mar 14 21:58:41 2009 +0100
    25.3 @@ -0,0 +1,61 @@
    25.4 +<?xml version="1.0" encoding="UTF-8"?>
    25.5 +<!-- You may freely edit this file. See commented blocks below for -->
    25.6 +<!-- some examples of how to customize the build. -->
    25.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
    25.8 +<!-- By default, only the Clean and Build commands use this build script. -->
    25.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
   25.10 +<!-- the Compile on Save feature is turned off for the project. -->
   25.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
   25.12 +<!-- in the project's Project Properties dialog box.-->
   25.13 +<project name="HibernateDemo1" default="default" basedir="." xmlns:ear="http://www.netbeans.org/ns/j2ee-earproject/2">
   25.14 +    <description>Builds, tests, and runs the project HibernateDemo1.</description>
   25.15 +    <import file="nbproject/build-impl.xml"/>
   25.16 +    <!--
   25.17 +
   25.18 +    There exist several targets which are by default empty and which can be 
   25.19 +    used for execution of your tasks. These targets are usually executed 
   25.20 +    before and after some main targets. They are: 
   25.21 +
   25.22 +      pre-init:                 called before initialization of project properties 
   25.23 +      post-init:                called after initialization of project properties 
   25.24 +      pre-compile:              called before javac compilation 
   25.25 +      post-compile:             called after javac compilation 
   25.26 +      pre-dist:                 called before archive building 
   25.27 +      post-dist:                called after archive building 
   25.28 +      post-clean:               called after cleaning build products 
   25.29 +      pre-run-deploy:           called before deploying
   25.30 +      post-run-deploy:          called after deploying
   25.31 +
   25.32 +    Example of pluging an obfuscator after the compilation could look like 
   25.33 +
   25.34 +        <target name="post-compile">
   25.35 +            <obfuscate>
   25.36 +                <fileset dir="${build.classes.dir}"/>
   25.37 +            </obfuscate>
   25.38 +        </target>
   25.39 +
   25.40 +    For list of available properties check the imported 
   25.41 +    nbproject/build-impl.xml file. 
   25.42 +
   25.43 +
   25.44 +    Other way how to customize the build is by overriding existing main targets.
   25.45 +    The target of interest are: 
   25.46 +
   25.47 +      do-dist:                archive building
   25.48 +      run:                    execution of project 
   25.49 +
   25.50 +    Example of overriding the target for project execution could look like 
   25.51 +
   25.52 +        <target name="run" depends="<PROJNAME>-impl.jar">
   25.53 +            <exec dir="bin" executable="launcher.exe">
   25.54 +                <arg file="${dist.jar}"/>
   25.55 +            </exec>
   25.56 +        </target>
   25.57 +
   25.58 +    Notice that overridden target depends on jar target and not only on 
   25.59 +    compile target as regular run target does. Again, for list of available 
   25.60 +    properties which you can use check the target you are overriding in 
   25.61 +    nbproject/build-impl.xml file. 
   25.62 +
   25.63 +    -->
   25.64 +</project>
    26.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.2 +++ b/java/HibernateDemo1/nbproject/ant-deploy.xml	Sat Mar 14 21:58:41 2009 +0100
    26.3 @@ -0,0 +1,60 @@
    26.4 +<?xml version="1.0" encoding="UTF-8"?>
    26.5 +<project default="-deploy-ant" basedir=".">
    26.6 +    <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
    26.7 +        <property file="${deploy.ant.properties.file}" />
    26.8 +        <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
    26.9 +        <available file="${deploy.ant.resource.dir}" property="has.setup"/>
   26.10 +        <tempfile prefix="sjsas" property="sjsas.password.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   26.11 +        <echo message="AS_ADMIN_PASSWORD=${sjsas.password}" file="${sjsas.password.file}"/>
   26.12 +    </target>
   26.13 +    
   26.14 +    <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
   26.15 +        <tempfile prefix="sjsas" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
   26.16 +        <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
   26.17 +        <!-- The doctype triggers resolution which can fail -->
   26.18 +        <replace file="${temp.sun.web}">
   26.19 +            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
   26.20 +            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
   26.21 +        </replace>
   26.22 +        <replace file="${temp.sun.web}">
   26.23 +            <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
   26.24 +            <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
   26.25 +        </replace>
   26.26 +        <xmlproperty file="${temp.sun.web}" validate="false">
   26.27 +        </xmlproperty>    
   26.28 +        <delete file="${temp.sun.web}"/>
   26.29 +        <property name="deploy.ant.client.url" value="${sjsas.url}${sun-web-app.context-root}"/>
   26.30 +    </target>
   26.31 +    <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
   26.32 +        <tempfile prefix="sjsas" property="sjsas.resources.dir" destdir="${java.io.tmpdir}"/>
   26.33 +        <mkdir dir="${sjsas.resources.dir}"/>
   26.34 +        <mkdir dir="${sjsas.resources.dir}/META-INF"/>
   26.35 +        <property name="sjsas.resources.file" value="${sjsas.resources.dir}/META-INF/sun-resources.xml"/>
   26.36 +        <copy todir="${sjsas.resources.dir}/META-INF">
   26.37 +            <fileset dir="${deploy.ant.resource.dir}"/>
   26.38 +        </copy>
   26.39 +        <jar destfile="${deploy.ant.archive}" update="true">
   26.40 +            <fileset dir="${sjsas.resources.dir}"/>
   26.41 +        </jar>
   26.42 +        <delete dir="${sjsas.resources.dir}"/>
   26.43 +    </target>
   26.44 +    <target name="-deploy-ant" depends="-parse-sun-web,-add-resources" if="deploy.ant.enabled">
   26.45 +        <echo message="Deploying ${deploy.ant.archive}"/>
   26.46 +        <taskdef name="sun-appserv-deploy" classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask"
   26.47 +                 classpath="${sjsas.root}/lib/sun-appserv-ant.jar" />
   26.48 +        <sun-appserv-deploy user="${sjsas.username}"
   26.49 +                passwordfile="${sjsas.password.file}"
   26.50 +                host="${sjsas.host}" port="${sjsas.port}"
   26.51 +                file="${deploy.ant.archive}" asinstalldir="${sjsas.root}"/>
   26.52 +        <delete file="${sjsas.password.file}"/>
   26.53 +    </target>
   26.54 +    <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
   26.55 +        <taskdef name="sun-appserv-undeploy" classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.UndeployTask"
   26.56 +                 classpath="${sjsas.root}/lib/sun-appserv-ant.jar" />
   26.57 +        <sun-appserv-undeploy user="${sjsas.username}"
   26.58 +                passwordfile="${sjsas.password.file}"
   26.59 +                host="${sjsas.host}" port="${sjsas.port}"
   26.60 +                file="${deploy.ant.archive}" asinstalldir="${sjsas.root}"/>
   26.61 +        <delete file="${sjsas.password.file}"/>
   26.62 +    </target>
   26.63 +</project>
    27.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.2 +++ b/java/HibernateDemo1/nbproject/build-impl.xml	Sat Mar 14 21:58:41 2009 +0100
    27.3 @@ -0,0 +1,409 @@
    27.4 +<?xml version="1.0" encoding="UTF-8"?>
    27.5 +<!--
    27.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
    27.7 +***         EDIT ../build.xml INSTEAD         ***
    27.8 +
    27.9 +For the purpose of easier reading the script
   27.10 +is divided into following sections:
   27.11 +
   27.12 +  - initialization
   27.13 +  - compilation
   27.14 +  - dist
   27.15 +  - execution
   27.16 +  - debugging
   27.17 +  - cleanup
   27.18 +
   27.19 +-->
   27.20 +<project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="HibernateDemo1-impl">
   27.21 +    <import file="ant-deploy.xml"/>
   27.22 +    <target depends="dist" description="Build whole project." name="default"/>
   27.23 +    <!-- 
   27.24 +    INITIALIZATION SECTION 
   27.25 +    -->
   27.26 +    <target name="pre-init">
   27.27 +        <!-- Empty placeholder for easier customization. -->
   27.28 +        <!-- You can override this target in the ../build.xml file. -->
   27.29 +    </target>
   27.30 +    <target depends="pre-init" name="init-private">
   27.31 +        <property file="nbproject/private/private.properties"/>
   27.32 +    </target>
   27.33 +    <target depends="pre-init,init-private" name="init-userdir">
   27.34 +        <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
   27.35 +    </target>
   27.36 +    <target depends="pre-init,init-private,init-userdir" name="init-user">
   27.37 +        <property file="${user.properties.file}"/>
   27.38 +    </target>
   27.39 +    <target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
   27.40 +        <property file="nbproject/project.properties"/>
   27.41 +    </target>
   27.42 +    <target depends="pre-init,init-private,init-userdir,init-user,init-project" name="do-init">
   27.43 +        <!-- The two properties below are usually overridden -->
   27.44 +        <!-- by the active platform. Just a fallback. -->
   27.45 +        <property name="default.javac.source" value="1.4"/>
   27.46 +        <property name="default.javac.target" value="1.4"/>
   27.47 +        <condition property="do.compile.jsps">
   27.48 +            <istrue value="${compile.jsps}"/>
   27.49 +        </condition>
   27.50 +        <condition property="do.display.browser">
   27.51 +            <and>
   27.52 +                <istrue value="${display.browser}"/>
   27.53 +                <isset property="client.module.uri"/>
   27.54 +                <not>
   27.55 +                    <isset property="app.client"/>
   27.56 +                </not>
   27.57 +            </and>
   27.58 +        </condition>
   27.59 +        <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
   27.60 +        <condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
   27.61 +            <and>
   27.62 +                <isset property="main.class"/>
   27.63 +                <not>
   27.64 +                    <equals arg1="${main.class}" arg2="" trim="true"/>
   27.65 +                </not>
   27.66 +            </and>
   27.67 +        </condition>
   27.68 +        <condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
   27.69 +            <and>
   27.70 +                <isset property="j2ee.appclient.jvmoptions"/>
   27.71 +                <not>
   27.72 +                    <equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
   27.73 +                </not>
   27.74 +            </and>
   27.75 +        </condition>
   27.76 +        <condition else="" property="application.args.param" value="${application.args}">
   27.77 +            <and>
   27.78 +                <isset property="application.args"/>
   27.79 +                <not>
   27.80 +                    <equals arg1="${application.args}" arg2="" trim="true"/>
   27.81 +                </not>
   27.82 +            </and>
   27.83 +        </condition>
   27.84 +        <condition property="can.debug.appclient">
   27.85 +            <and>
   27.86 +                <isset property="netbeans.home"/>
   27.87 +                <isset property="app.client"/>
   27.88 +            </and>
   27.89 +        </condition>
   27.90 +    </target>
   27.91 +    <target depends="init" name="-init-cos">
   27.92 +        <condition else="false" property="build.deploy.on.save">
   27.93 +            <istrue value="${j2ee.deploy.on.save}"/>
   27.94 +        </condition>
   27.95 +    </target>
   27.96 +    <target name="post-init">
   27.97 +        <!-- Empty placeholder for easier customization. -->
   27.98 +        <!-- You can override this target in the ../build.xml file. -->
   27.99 +    </target>
  27.100 +    <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
  27.101 +        <fail unless="build.dir">Must set build.dir</fail>
  27.102 +        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
  27.103 +        <fail unless="dist.dir">Must set dist.dir</fail>
  27.104 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  27.105 +        <fail unless="dist.jar">Must set dist.jar</fail>
  27.106 +    </target>
  27.107 +    <target name="-init-taskdefs">
  27.108 +        <fail unless="libs.CopyLibs.classpath">
  27.109 +The libs.CopyLibs.classpath property is not set up.
  27.110 +This property must point to 
  27.111 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
  27.112 +of NetBeans IDE installation and is usually located at 
  27.113 +&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
  27.114 +Either open the project in the IDE and make sure CopyLibs library
  27.115 +exists or setup the property manually. For example like this:
  27.116 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
  27.117 +                </fail>
  27.118 +        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
  27.119 +    </target>
  27.120 +    <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
  27.121 +    <!--
  27.122 +    COMPILATION SECTION
  27.123 +    -->
  27.124 +    <target depends="init" name="deps-jar" unless="no.deps"/>
  27.125 +    <target depends="init" name="deps-j2ee-archive" unless="no.deps">
  27.126 +        <condition property="build.deploy.on.save" value="false">
  27.127 +            <not>
  27.128 +                <isset property="build.deploy.on.save"/>
  27.129 +            </not>
  27.130 +        </condition>
  27.131 +        <ant antfile="${project.HibernateDemo1-ejb}/build.xml" inheritall="false" target="dist-ear">
  27.132 +            <property location="${build.dir}" name="dist.ear.dir"/>
  27.133 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  27.134 +        </ant>
  27.135 +        <condition property="build.deploy.on.save" value="false">
  27.136 +            <not>
  27.137 +                <isset property="build.deploy.on.save"/>
  27.138 +            </not>
  27.139 +        </condition>
  27.140 +        <ant antfile="${project.HibernateDemo1-war}/build.xml" inheritall="false" target="dist-ear">
  27.141 +            <property location="${build.dir}" name="dist.ear.dir"/>
  27.142 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  27.143 +        </ant>
  27.144 +    </target>
  27.145 +    <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
  27.146 +    <target name="pre-compile">
  27.147 +        <!-- Empty placeholder for easier customization. -->
  27.148 +        <!-- You can override this target in the ../build.xml file. -->
  27.149 +    </target>
  27.150 +    <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="do-compile">
  27.151 +        <copy todir="${build.dir}/META-INF">
  27.152 +            <fileset dir="${meta.inf}"/>
  27.153 +        </copy>
  27.154 +        <copyfiles files="${reference.HibernateDemo1-war.dist-ear}" todir="${build.dir}//"/>
  27.155 +        <copyfiles files="${reference.HibernateDemo1-ejb.dist-ear}" todir="${build.dir}//"/>
  27.156 +    </target>
  27.157 +    <target name="post-compile">
  27.158 +        <!-- Empty placeholder for easier customization. -->
  27.159 +        <!-- You can override this target in the ../build.xml file. -->
  27.160 +    </target>
  27.161 +    <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
  27.162 +    <!--
  27.163 +    DIST BUILDING SECTION
  27.164 +    -->
  27.165 +    <target name="pre-dist">
  27.166 +        <!-- Empty placeholder for easier customization. -->
  27.167 +        <!-- You can override this target in the ../build.xml file. -->
  27.168 +    </target>
  27.169 +    <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
  27.170 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
  27.171 +        <mkdir dir="${dist.jar.dir}"/>
  27.172 +        <jar compress="${jar.compress}" jarfile="${dist.jar}">
  27.173 +            <fileset dir="${build.dir}"/>
  27.174 +        </jar>
  27.175 +    </target>
  27.176 +    <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
  27.177 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
  27.178 +        <mkdir dir="${dist.jar.dir}"/>
  27.179 +        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
  27.180 +            <fileset dir="${build.dir}"/>
  27.181 +        </jar>
  27.182 +    </target>
  27.183 +    <target name="post-dist">
  27.184 +        <!-- Empty placeholder for easier customization. -->
  27.185 +        <!-- You can override this target in the ../build.xml file. -->
  27.186 +    </target>
  27.187 +    <target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
  27.188 +    <!--
  27.189 +    EXECUTION SECTION
  27.190 +    -->
  27.191 +    <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
  27.192 +    <target name="pre-run-deploy">
  27.193 +        <!-- Empty placeholder for easier customization. -->
  27.194 +        <!-- You can override this target in the ../build.xml file. -->
  27.195 +    </target>
  27.196 +    <target name="post-run-deploy">
  27.197 +        <!-- Empty placeholder for easier customization. -->
  27.198 +        <!-- You can override this target in the ../build.xml file. -->
  27.199 +    </target>
  27.200 +    <target name="-pre-nbmodule-run-deploy">
  27.201 +        <!-- Empty placeholder for easier customization. -->
  27.202 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
  27.203 +    </target>
  27.204 +    <target name="-post-nbmodule-run-deploy">
  27.205 +        <!-- Empty placeholder for easier customization. -->
  27.206 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
  27.207 +    </target>
  27.208 +    <target name="-run-deploy-am" unless="no.deps">
  27.209 +        <!-- Task to deploy to the Access Manager runtime. -->
  27.210 +        <ant antfile="${project.HibernateDemo1-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
  27.211 +        <ant antfile="${project.HibernateDemo1-war}/build.xml" inheritall="false" target="-run-deploy-am"/>
  27.212 +    </target>
  27.213 +    <target depends="-init-cos,dist,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"/>
  27.214 +    <target if="netbeans.home" name="-run-deploy-nb">
  27.215 +        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
  27.216 +    </target>
  27.217 +    <target name="-init-deploy-ant" unless="netbeans.home">
  27.218 +        <property name="deploy.ant.archive" value="${dist.jar}"/>
  27.219 +        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
  27.220 +        <property name="deploy.ant.enabled" value="true"/>
  27.221 +    </target>
  27.222 +    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
  27.223 +    <target if="netbeans.home" name="-run-undeploy-nb">
  27.224 +        <fail message="Undeploy is not supported from within the IDE"/>
  27.225 +    </target>
  27.226 +    <target depends="dist" name="verify">
  27.227 +        <nbverify file="${dist.jar}"/>
  27.228 +    </target>
  27.229 +    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
  27.230 +    <target if="do.display.browser" name="-init-display-browser">
  27.231 +        <condition property="do.display.browser.nb">
  27.232 +            <isset property="netbeans.home"/>
  27.233 +        </condition>
  27.234 +        <condition property="do.display.browser.cl">
  27.235 +            <and>
  27.236 +                <isset property="deploy.ant.enabled"/>
  27.237 +                <isset property="deploy.ant.client.url"/>
  27.238 +            </and>
  27.239 +        </condition>
  27.240 +    </target>
  27.241 +    <target if="do.display.browser.nb" name="-display-browser-nb">
  27.242 +        <nbbrowse url="${client.url}"/>
  27.243 +    </target>
  27.244 +    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
  27.245 +        <condition property="browser" value="rundll32">
  27.246 +            <os family="windows"/>
  27.247 +        </condition>
  27.248 +        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
  27.249 +            <os family="windows"/>
  27.250 +        </condition>
  27.251 +        <condition property="browser" value="/usr/bin/open">
  27.252 +            <os family="mac"/>
  27.253 +        </condition>
  27.254 +        <property environment="env"/>
  27.255 +        <condition property="browser" value="${env.BROWSER}">
  27.256 +            <isset property="env.BROWSER"/>
  27.257 +        </condition>
  27.258 +        <condition property="browser" value="/usr/bin/firefox">
  27.259 +            <available file="/usr/bin/firefox"/>
  27.260 +        </condition>
  27.261 +        <condition property="browser" value="/usr/local/firefox/firefox">
  27.262 +            <available file="/usr/local/firefox/firefox"/>
  27.263 +        </condition>
  27.264 +        <condition property="browser" value="/usr/bin/mozilla">
  27.265 +            <available file="/usr/bin/mozilla"/>
  27.266 +        </condition>
  27.267 +        <condition property="browser" value="/usr/local/mozilla/mozilla">
  27.268 +            <available file="/usr/local/mozilla/mozilla"/>
  27.269 +        </condition>
  27.270 +        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
  27.271 +            <available file="/usr/sfw/lib/firefox/firefox"/>
  27.272 +        </condition>
  27.273 +        <condition property="browser" value="/opt/csw/bin/firefox">
  27.274 +            <available file="/opt/csw/bin/firefox"/>
  27.275 +        </condition>
  27.276 +        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
  27.277 +            <available file="/usr/sfw/lib/mozilla/mozilla"/>
  27.278 +        </condition>
  27.279 +        <condition property="browser" value="/opt/csw/bin/mozilla">
  27.280 +            <available file="/opt/csw/bin/mozilla"/>
  27.281 +        </condition>
  27.282 +    </target>
  27.283 +    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
  27.284 +        <fail unless="browser">
  27.285 +            Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
  27.286 +        </fail>
  27.287 +        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
  27.288 +        <echo>Launching ${browse.url}</echo>
  27.289 +        <exec executable="${browser}" spawn="true">
  27.290 +            <arg line="${browser.args} ${browse.url}"/>
  27.291 +        </exec>
  27.292 +    </target>
  27.293 +    <target depends="init" if="app.client" name="run-ac">
  27.294 +        <antcall target="run-${app.client}"/>
  27.295 +    </target>
  27.296 +    <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
  27.297 +        <property name="client.jar" value="${dist.dir}/HibernateDemo1Client.jar"/>
  27.298 +        <sleep seconds="3"/>
  27.299 +        <copy file="${wa.copy.client.jar.from}/HibernateDemo1/HibernateDemo1Client.jar" todir="${dist.dir}"/>
  27.300 +    </target>
  27.301 +    <!--
  27.302 +    DEBUGGING SECTION
  27.303 +    -->
  27.304 +    <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
  27.305 +    <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
  27.306 +        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
  27.307 +        <antcall target="connect-debugger"/>
  27.308 +        <antcall target="debug-display-browser"/>
  27.309 +    </target>
  27.310 +    <target name="connect-debugger" unless="is.debugged">
  27.311 +        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
  27.312 +            <classpath>
  27.313 +                <path path="${debug.classpath}"/>
  27.314 +            </classpath>
  27.315 +            <sourcepath>
  27.316 +                <path path="${ear.docbase.dirs}"/>
  27.317 +            </sourcepath>
  27.318 +        </nbjpdaconnect>
  27.319 +    </target>
  27.320 +    <target if="do.display.browser" name="debug-display-browser">
  27.321 +        <nbbrowse url="${client.url}"/>
  27.322 +    </target>
  27.323 +    <target name="-init-debug-args">
  27.324 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
  27.325 +        <condition property="have-jdk-older-than-1.4">
  27.326 +            <or>
  27.327 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
  27.328 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
  27.329 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
  27.330 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
  27.331 +            </or>
  27.332 +        </condition>
  27.333 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  27.334 +            <istrue value="${have-jdk-older-than-1.4}"/>
  27.335 +        </condition>
  27.336 +    </target>
  27.337 +    <target depends="init,-init-debug-args" if="can.debug.appclient" name="run-debug-appclient">
  27.338 +        <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
  27.339 +            <attribute name="mainclass"/>
  27.340 +            <attribute default="${debug.classpath}" name="classpath"/>
  27.341 +            <element name="customize" optional="true"/>
  27.342 +            <attribute default="${application.args.param}" name="args"/>
  27.343 +            <sequential>
  27.344 +                <parallel>
  27.345 +                    <java classname="@{mainclass}" fork="true">
  27.346 +                        <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
  27.347 +                        <jvmarg line="${debug-args-line}"/>
  27.348 +                        <jvmarg value="-Xrunjdwp:transport=${jpda.transport},server=y,address=${jpda.address},suspend=y"/>
  27.349 +                        <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
  27.350 +                        <arg line="@{args}"/>
  27.351 +                        <classpath>
  27.352 +                            <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
  27.353 +                            <path path="@{classpath}"/>
  27.354 +                        </classpath>
  27.355 +                        <syspropertyset>
  27.356 +                            <propertyref prefix="run-sys-prop."/>
  27.357 +                            <mapper from="run-sys-prop.*" to="*" type="glob"/>
  27.358 +                        </syspropertyset>
  27.359 +                        <customize/>
  27.360 +                    </java>
  27.361 +                    <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
  27.362 +                        <classpath>
  27.363 +                            <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
  27.364 +                            <path path="@{classpath}"/>
  27.365 +                        </classpath>
  27.366 +                        <sourcepath>
  27.367 +                            <path path="${src.dir}"/>
  27.368 +                        </sourcepath>
  27.369 +                    </nbjpdaconnect>
  27.370 +                </parallel>
  27.371 +            </sequential>
  27.372 +        </macrodef>
  27.373 +        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false"/>
  27.374 +        <antcall target="debug-${app.client}"/>
  27.375 +    </target>
  27.376 +    <!--
  27.377 +    CLEANUP SECTION
  27.378 +    -->
  27.379 +    <target depends="init" name="deps-clean" unless="no.deps">
  27.380 +        <condition property="build.deploy.on.save" value="false">
  27.381 +            <not>
  27.382 +                <isset property="build.deploy.on.save"/>
  27.383 +            </not>
  27.384 +        </condition>
  27.385 +        <ant antfile="${project.HibernateDemo1-ejb}/build.xml" inheritall="false" target="clean-ear">
  27.386 +            <property location="${build.dir}" name="dist.ear.dir"/>
  27.387 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  27.388 +        </ant>
  27.389 +        <condition property="build.deploy.on.save" value="false">
  27.390 +            <not>
  27.391 +                <isset property="build.deploy.on.save"/>
  27.392 +            </not>
  27.393 +        </condition>
  27.394 +        <ant antfile="${project.HibernateDemo1-war}/build.xml" inheritall="false" target="clean-ear">
  27.395 +            <property location="${build.dir}" name="dist.ear.dir"/>
  27.396 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  27.397 +        </ant>
  27.398 +    </target>
  27.399 +    <target depends="init" name="do-clean">
  27.400 +        <delete dir="${build.dir}"/>
  27.401 +        <delete dir="${dist.dir}"/>
  27.402 +        <delete dir="${build.dir}"/>
  27.403 +    </target>
  27.404 +    <target depends="init" if="netbeans.home" name="undeploy-clean">
  27.405 +        <nbundeploy failOnError="false" startServer="false"/>
  27.406 +    </target>
  27.407 +    <target name="post-clean">
  27.408 +        <!-- Empty placeholder for easier customization. -->
  27.409 +        <!-- You can override this target in the ../build.xml file. -->
  27.410 +    </target>
  27.411 +    <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
  27.412 +</project>
    28.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.2 +++ b/java/HibernateDemo1/nbproject/genfiles.properties	Sat Mar 14 21:58:41 2009 +0100
    28.3 @@ -0,0 +1,8 @@
    28.4 +build.xml.data.CRC32=8c87ccb0
    28.5 +build.xml.script.CRC32=320a8340
    28.6 +build.xml.stylesheet.CRC32=475c2a62
    28.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
    28.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    28.9 +nbproject/build-impl.xml.data.CRC32=8c87ccb0
   28.10 +nbproject/build-impl.xml.script.CRC32=0cb17bf2
   28.11 +nbproject/build-impl.xml.stylesheet.CRC32=47a529d0
    29.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.2 +++ b/java/HibernateDemo1/nbproject/project.properties	Sat Mar 14 21:58:41 2009 +0100
    29.3 @@ -0,0 +1,31 @@
    29.4 +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs
    29.5 +build.dir=build
    29.6 +build.generated.dir=${build.dir}/generated
    29.7 +client.module.uri=HibernateDemo1-war
    29.8 +client.urlPart=
    29.9 +debug.classpath=${javac.classpath}::${jar.content.additional}:${run.classpath}
   29.10 +display.browser=true
   29.11 +dist.dir=dist
   29.12 +dist.jar=${dist.dir}/${jar.name}
   29.13 +j2ee.appclient.mainclass.args=-client ${dist.jar} ${j2ee.appclient.tool.args}
   29.14 +j2ee.deploy.on.save=true
   29.15 +j2ee.platform=1.5
   29.16 +j2ee.server.type=J2EE
   29.17 +jar.compress=false
   29.18 +jar.content.additional=\
   29.19 +    ${reference.HibernateDemo1-war.dist-ear}:\
   29.20 +    ${reference.HibernateDemo1-ejb.dist-ear}
   29.21 +jar.name=HibernateDemo1.ear
   29.22 +javac.debug=true
   29.23 +javac.deprecation=false
   29.24 +javac.source=1.5
   29.25 +javac.target=1.5
   29.26 +meta.inf=src/conf
   29.27 +no.dependencies=false
   29.28 +platform.active=default_platform
   29.29 +project.HibernateDemo1-ejb=HibernateDemo1-ejb
   29.30 +project.HibernateDemo1-war=HibernateDemo1-war
   29.31 +reference.HibernateDemo1-ejb.dist-ear=${project.HibernateDemo1-ejb}/dist/HibernateDemo1-ejb.jar
   29.32 +reference.HibernateDemo1-war.dist-ear=${project.HibernateDemo1-war}/dist/HibernateDemo1-war.war
   29.33 +resource.dir=setup
   29.34 +source.root=.
    30.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    30.2 +++ b/java/HibernateDemo1/nbproject/project.xml	Sat Mar 14 21:58:41 2009 +0100
    30.3 @@ -0,0 +1,39 @@
    30.4 +<?xml version="1.0" encoding="UTF-8"?>
    30.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
    30.6 +    <type>org.netbeans.modules.j2ee.earproject</type>
    30.7 +    <configuration>
    30.8 +        <data xmlns="http://www.netbeans.org/ns/j2ee-earproject/2">
    30.9 +            <name>HibernateDemo1</name>
   30.10 +            <minimum-ant-version>1.6.5</minimum-ant-version>
   30.11 +            <web-module-libraries/>
   30.12 +            <web-module-additional-libraries>
   30.13 +                <library>
   30.14 +                    <file>${reference.HibernateDemo1-war.dist-ear}</file>
   30.15 +                    <path-in-war>/</path-in-war>
   30.16 +                </library>
   30.17 +                <library>
   30.18 +                    <file>${reference.HibernateDemo1-ejb.dist-ear}</file>
   30.19 +                    <path-in-war>/</path-in-war>
   30.20 +                </library>
   30.21 +            </web-module-additional-libraries>
   30.22 +        </data>
   30.23 +        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
   30.24 +            <reference>
   30.25 +                <foreign-project>HibernateDemo1-ejb</foreign-project>
   30.26 +                <artifact-type>j2ee_ear_archive</artifact-type>
   30.27 +                <script>build.xml</script>
   30.28 +                <target>dist-ear</target>
   30.29 +                <clean-target>clean-ear</clean-target>
   30.30 +                <id>dist-ear</id>
   30.31 +            </reference>
   30.32 +            <reference>
   30.33 +                <foreign-project>HibernateDemo1-war</foreign-project>
   30.34 +                <artifact-type>j2ee_ear_archive</artifact-type>
   30.35 +                <script>build.xml</script>
   30.36 +                <target>dist-ear</target>
   30.37 +                <clean-target>clean-ear</clean-target>
   30.38 +                <id>dist-ear</id>
   30.39 +            </reference>
   30.40 +        </references>
   30.41 +    </configuration>
   30.42 +</project>