Přechod na EAR, EJB.
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed, 10 Feb 2010 20:55:08 +0100
changeset 19a3fced9634d
parent 0 b8ecf1ac63fb
child 2 d549a4eb6aa9
Přechod na EAR, EJB.
.hgignore
java/SpringDemo1/SpringDemo1-ejb/nbproject/ant-deploy.xml
java/SpringDemo1/SpringDemo1-ejb/nbproject/build-impl.xml
java/SpringDemo1/SpringDemo1-ejb/nbproject/genfiles.properties
java/SpringDemo1/SpringDemo1-ejb/nbproject/project.properties
java/SpringDemo1/SpringDemo1-ejb/nbproject/project.xml
java/SpringDemo1/SpringDemo1-ejb/src/conf/MANIFEST.MF
java/SpringDemo1/SpringDemo1-ejb/src/conf/beans.xml
java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/dao/KnihaDAO.java
java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/dto/Kniha.java
java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/web/SpringDemo1Bean.java
java/SpringDemo1/SpringDemo1-lib/nbproject/build-impl.xml
java/SpringDemo1/SpringDemo1-lib/nbproject/genfiles.properties
java/SpringDemo1/SpringDemo1-lib/nbproject/project.properties
java/SpringDemo1/SpringDemo1-lib/nbproject/project.xml
java/SpringDemo1/SpringDemo1-war/nbproject/ant-deploy.xml
java/SpringDemo1/SpringDemo1-war/nbproject/build-impl.xml
java/SpringDemo1/SpringDemo1-war/nbproject/genfiles.properties
java/SpringDemo1/SpringDemo1-war/nbproject/project.properties
java/SpringDemo1/SpringDemo1-war/nbproject/project.xml
java/SpringDemo1/SpringDemo1-war/src/conf/MANIFEST.MF
java/SpringDemo1/SpringDemo1-war/web/WEB-INF/beans.xml
java/SpringDemo1/SpringDemo1-war/web/WEB-INF/sun-web.xml
java/SpringDemo1/SpringDemo1-war/web/index.jsp
java/SpringDemo1/nbproject/build-impl.xml
java/SpringDemo1/nbproject/genfiles.properties
java/SpringDemo1/nbproject/project.properties
java/SpringDemo1/nbproject/project.xml
java/SpringDemo1/src/java/cz/frantovo/springDemo1/dao/KnihaDAO.java
java/SpringDemo1/src/java/cz/frantovo/springDemo1/dto/Kniha.java
java/SpringDemo1/src/java/cz/frantovo/springDemo1/web/SpringDemo1Bean.java
java/SpringDemo1/web/WEB-INF/beans.xml
java/SpringDemo1/web/WEB-INF/sun-web.xml
java/SpringDemo1/web/index.jsp
     1.1 --- a/.hgignore	Wed Feb 10 18:25:55 2010 +0100
     1.2 +++ b/.hgignore	Wed Feb 10 20:55:08 2010 +0100
     1.3 @@ -1,5 +1,12 @@
     1.4 +java/SpringDemo1/dist/*
     1.5 +java/SpringDemo1/build/*
     1.6  java/SpringDemo1/nbproject/private
     1.7 -java/SpringDemo1/build
     1.8 -java/SpringDemo1/dist
     1.9 -
    1.10 -
    1.11 +java/SpringDemo1/SpringDemo1-war/build/*
    1.12 +java/SpringDemo1/SpringDemo1-war/dist/*
    1.13 +java/SpringDemo1/SpringDemo1-war/nbproject/private
    1.14 +java/SpringDemo1/SpringDemo1-ejb/build/*
    1.15 +java/SpringDemo1/SpringDemo1-ejb/dist/*
    1.16 +java/SpringDemo1/SpringDemo1-ejb/nbproject/private
    1.17 +java/SpringDemo1/SpringDemo1-lib/build/*
    1.18 +java/SpringDemo1/SpringDemo1-lib/dist/*
    1.19 +java/SpringDemo1/SpringDemo1-lib/nbproject/private
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/java/SpringDemo1/SpringDemo1-ejb/nbproject/ant-deploy.xml	Wed Feb 10 20:55:08 2010 +0100
     2.3 @@ -0,0 +1,60 @@
     2.4 +<?xml version="1.0" encoding="UTF-8"?>
     2.5 +<project default="-deploy-ant" basedir=".">
     2.6 +    <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
     2.7 +        <property file="${deploy.ant.properties.file}" />
     2.8 +        <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
     2.9 +        <available file="${deploy.ant.resource.dir}" property="has.setup"/>
    2.10 +        <tempfile prefix="gfv3" property="gfv3.password.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
    2.11 +        <echo message="AS_ADMIN_PASSWORD=${gfv3.password}" file="${gfv3.password.file}"/>
    2.12 +    </target>
    2.13 +    
    2.14 +    <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
    2.15 +        <tempfile prefix="gfv3" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
    2.16 +        <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
    2.17 +        <!-- The doctype triggers resolution which can fail -->
    2.18 +        <replace file="${temp.sun.web}">
    2.19 +            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
    2.20 +            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
    2.21 +        </replace>
    2.22 +        <replace file="${temp.sun.web}">
    2.23 +            <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
    2.24 +            <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
    2.25 +        </replace>
    2.26 +        <xmlproperty file="${temp.sun.web}" validate="false">
    2.27 +        </xmlproperty>    
    2.28 +        <delete file="${temp.sun.web}"/>
    2.29 +        <property name="deploy.ant.client.url" value="${gfv3.url}${sun-web-app.context-root}"/>
    2.30 +        <property name="deploy.context.root.argument" value="?contextroot=${sun-web-app.context-root}"/>
    2.31 +    </target>
    2.32 +    <target name="-no-parse-sun-web" depends="-init-cl-deployment-env" unless="sun.web.present">
    2.33 +        <property name="deploy.context.root.argument" value=""/>
    2.34 +    </target>
    2.35 +    <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
    2.36 +        <tempfile prefix="gfv3" property="gfv3.resources.dir" destdir="${java.io.tmpdir}"/>
    2.37 +        <mkdir dir="${gfv3.resources.dir}"/>
    2.38 +        <mkdir dir="${gfv3.resources.dir}/META-INF"/>
    2.39 +        <property name="gfv3.resources.file" value="${gfv3.resources.dir}/META-INF/sun-resources.xml"/>
    2.40 +        <copy todir="${gfv3.resources.dir}/META-INF">
    2.41 +            <fileset dir="${deploy.ant.resource.dir}"/>
    2.42 +        </copy>
    2.43 +        <jar destfile="${deploy.ant.archive}" update="true">
    2.44 +            <fileset dir="${gfv3.resources.dir}"/>
    2.45 +        </jar>
    2.46 +        <delete dir="${gfv3.resources.dir}"/>
    2.47 +    </target>
    2.48 +    <target name="-deploy-ant" depends="-parse-sun-web,-no-parse-sun-web,-add-resources" if="deploy.ant.enabled">
    2.49 +        <echo message="Deploying ${deploy.ant.archive}"/>
    2.50 +        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
    2.51 +        <property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
    2.52 +        <get src="${gfv3.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}?force=true?name=${ant.project.name}"
    2.53 +            dest="${gfv3.results.file}"/>
    2.54 +        <delete file="${gfv3.results.file}"/>    
    2.55 +    </target>
    2.56 +    <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
    2.57 +        <echo message="Undeploying ${deploy.ant.archive}"/>
    2.58 +        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
    2.59 +        <get src="${gfv3.url}/__asadmin/undeploy?name=${ant.project.name}"
    2.60 +            dest="${gfv3.results.file}"/>
    2.61 +        <delete file="${gfv3.results.file}"/>    
    2.62 +    </target>
    2.63 +</project>
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/java/SpringDemo1/SpringDemo1-ejb/nbproject/build-impl.xml	Wed Feb 10 20:55:08 2010 +0100
     3.3 @@ -0,0 +1,647 @@
     3.4 +<?xml version="1.0" encoding="UTF-8"?>
     3.5 +<!--
     3.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
     3.7 +***         EDIT ../build.xml INSTEAD         ***
     3.8 +
     3.9 +For the purpose of easier reading the script
    3.10 +is divided into following sections:
    3.11 +
    3.12 +  - initialization
    3.13 +  - compilation
    3.14 +  - dist
    3.15 +  - execution
    3.16 +  - debugging
    3.17 +  - javadoc
    3.18 +  - cleanup
    3.19 +
    3.20 +        -->
    3.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="SpringDemo1-ejb-impl">
    3.22 +    <import file="ant-deploy.xml"/>
    3.23 +    <fail message="Please build using Ant 1.7.1 or higher.">
    3.24 +        <condition>
    3.25 +            <not>
    3.26 +                <antversion atleast="1.7.1"/>
    3.27 +            </not>
    3.28 +        </condition>
    3.29 +    </fail>
    3.30 +    <target depends="dist,javadoc" description="Build whole project." name="default"/>
    3.31 +    <!-- 
    3.32 +                INITIALIZATION SECTION 
    3.33 +            -->
    3.34 +    <target name="-pre-init">
    3.35 +        <!-- Empty placeholder for easier customization. -->
    3.36 +        <!-- You can override this target in the ../build.xml file. -->
    3.37 +    </target>
    3.38 +    <target depends="-pre-init" name="-init-private">
    3.39 +        <property file="nbproject/private/private.properties"/>
    3.40 +    </target>
    3.41 +    <target depends="-pre-init,-init-private" name="-init-userdir">
    3.42 +        <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    3.43 +    </target>
    3.44 +    <target depends="-pre-init,-init-private,-init-userdir" name="-init-user">
    3.45 +        <property file="${user.properties.file}"/>
    3.46 +        <!-- The two properties below are usually overridden -->
    3.47 +        <!-- by the active platform. Just a fallback. -->
    3.48 +        <property name="default.javac.source" value="1.4"/>
    3.49 +        <property name="default.javac.target" value="1.4"/>
    3.50 +    </target>
    3.51 +    <target depends="-pre-init,-init-private,-init-userdir,-init-user" name="-init-project">
    3.52 +        <property file="nbproject/project.properties"/>
    3.53 +    </target>
    3.54 +    <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    3.55 +        <!-- Ensure configuration directory exists. -->
    3.56 +        <mkdir dir="${meta.inf}"/>
    3.57 +        <property name="runmain.jvmargs" value=""/>
    3.58 +        <condition property="have.tests">
    3.59 +            <or>
    3.60 +                <available file="${test.src.dir}"/>
    3.61 +            </or>
    3.62 +        </condition>
    3.63 +        <condition property="have.sources">
    3.64 +            <or>
    3.65 +                <available file="${src.dir}"/>
    3.66 +            </or>
    3.67 +        </condition>
    3.68 +        <condition property="netbeans.home+have.tests">
    3.69 +            <and>
    3.70 +                <isset property="netbeans.home"/>
    3.71 +                <isset property="have.tests"/>
    3.72 +            </and>
    3.73 +        </condition>
    3.74 +        <condition property="no.javadoc.preview">
    3.75 +            <isfalse value="${javadoc.preview}"/>
    3.76 +        </condition>
    3.77 +        <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
    3.78 +        <!--
    3.79 +                    Variables needed to support directory deployment.
    3.80 +                -->
    3.81 +        <condition property="do.package.with.custom.manifest.not.directory.deploy">
    3.82 +            <and>
    3.83 +                <isset property="has.custom.manifest"/>
    3.84 +                <isfalse value="${directory.deployment.supported}"/>
    3.85 +            </and>
    3.86 +        </condition>
    3.87 +        <condition property="do.package.without.custom.manifest.not.directory.deploy">
    3.88 +            <and>
    3.89 +                <not>
    3.90 +                    <isset property="has.custom.manifest"/>
    3.91 +                </not>
    3.92 +                <isfalse value="${directory.deployment.supported}"/>
    3.93 +            </and>
    3.94 +        </condition>
    3.95 +        <!--End Variables needed to support directory deployment.-->
    3.96 +        <condition property="classes.dir" value="${build.ear.classes.dir}">
    3.97 +            <isset property="dist.ear.dir"/>
    3.98 +        </condition>
    3.99 +        <property name="classes.dir" value="${build.classes.dir}"/>
   3.100 +        <condition property="no.deps">
   3.101 +            <and>
   3.102 +                <istrue value="${no.dependencies}"/>
   3.103 +            </and>
   3.104 +        </condition>
   3.105 +        <condition property="no.dist.ear.dir">
   3.106 +            <not>
   3.107 +                <isset property="dist.ear.dir"/>
   3.108 +            </not>
   3.109 +        </condition>
   3.110 +        <property name="source.encoding" value="${file.encoding}"/>
   3.111 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   3.112 +            <and>
   3.113 +                <isset property="javadoc.encoding"/>
   3.114 +                <not>
   3.115 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
   3.116 +                </not>
   3.117 +            </and>
   3.118 +        </condition>
   3.119 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
   3.120 +        <property name="includes" value="**"/>
   3.121 +        <property name="excludes" value=""/>
   3.122 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   3.123 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   3.124 +            <length length="0" string="${endorsed.classpath}" when="greater"/>
   3.125 +        </condition>
   3.126 +    </target>
   3.127 +    <target depends="init" name="-init-cos" unless="deploy.on.save">
   3.128 +        <condition property="deploy.on.save" value="true">
   3.129 +            <istrue value="${j2ee.deploy.on.save}"/>
   3.130 +        </condition>
   3.131 +    </target>
   3.132 +    <target name="-post-init">
   3.133 +        <!-- Empty placeholder for easier customization. -->
   3.134 +        <!-- You can override this target in the ../build.xml file. -->
   3.135 +    </target>
   3.136 +    <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
   3.137 +        <fail unless="src.dir">Must set src.dir</fail>
   3.138 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
   3.139 +        <fail unless="build.dir">Must set build.dir</fail>
   3.140 +        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
   3.141 +        <fail unless="dist.dir">Must set dist.dir</fail>
   3.142 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   3.143 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   3.144 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   3.145 +        <fail unless="dist.jar">Must set dist.jar</fail>
   3.146 +        <fail unless="j2ee.platform.classpath">
   3.147 +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
   3.148 +Either open the project in the IDE and assign the server or setup the server classpath manually.
   3.149 +For example like this:
   3.150 +   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
   3.151 +or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
   3.152 +                </fail>
   3.153 +    </target>
   3.154 +    <target name="-init-macrodef-property">
   3.155 +        <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   3.156 +            <attribute name="name"/>
   3.157 +            <attribute name="value"/>
   3.158 +            <sequential>
   3.159 +                <property name="@{name}" value="${@{value}}"/>
   3.160 +            </sequential>
   3.161 +        </macrodef>
   3.162 +    </target>
   3.163 +    <target name="-init-macrodef-javac">
   3.164 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   3.165 +            <attribute default="${src.dir}" name="srcdir"/>
   3.166 +            <attribute default="${build.classes.dir}" name="destdir"/>
   3.167 +            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   3.168 +            <attribute default="${includes}" name="includes"/>
   3.169 +            <attribute default="${excludes}" name="excludes"/>
   3.170 +            <attribute default="${javac.debug}" name="debug"/>
   3.171 +            <attribute default="${empty.dir}" name="gensrcdir"/>
   3.172 +            <element name="customize" optional="true"/>
   3.173 +            <sequential>
   3.174 +                <property name="javac.compilerargs" value=""/>
   3.175 +                <property location="${build.dir}/empty" name="empty.dir"/>
   3.176 +                <mkdir dir="${empty.dir}"/>
   3.177 +                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
   3.178 +                    <src>
   3.179 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   3.180 +                            <include name="*"/>
   3.181 +                        </dirset>
   3.182 +                    </src>
   3.183 +                    <classpath>
   3.184 +                        <path path="@{classpath}"/>
   3.185 +                    </classpath>
   3.186 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   3.187 +                    <compilerarg line="${javac.compilerargs}"/>
   3.188 +                    <customize/>
   3.189 +                </javac>
   3.190 +            </sequential>
   3.191 +        </macrodef>
   3.192 +    </target>
   3.193 +    <target name="-init-macrodef-junit">
   3.194 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   3.195 +            <attribute default="${includes}" name="includes"/>
   3.196 +            <attribute default="${excludes}" name="excludes"/>
   3.197 +            <attribute default="**" name="testincludes"/>
   3.198 +            <sequential>
   3.199 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
   3.200 +                    <batchtest todir="${build.test.results.dir}">
   3.201 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   3.202 +                            <filename name="@{testincludes}"/>
   3.203 +                        </fileset>
   3.204 +                    </batchtest>
   3.205 +                    <classpath>
   3.206 +                        <path path="${run.test.classpath}"/>
   3.207 +                        <path path="${j2ee.platform.classpath}"/>
   3.208 +                        <path path="${j2ee.platform.embeddableejb.classpath}"/>
   3.209 +                    </classpath>
   3.210 +                    <syspropertyset>
   3.211 +                        <propertyref prefix="test-sys-prop."/>
   3.212 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   3.213 +                    </syspropertyset>
   3.214 +                    <formatter type="brief" usefile="false"/>
   3.215 +                    <formatter type="xml"/>
   3.216 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   3.217 +                    <jvmarg line="${runmain.jvmargs}"/>
   3.218 +                </junit>
   3.219 +            </sequential>
   3.220 +        </macrodef>
   3.221 +    </target>
   3.222 +    <target name="-init-macrodef-java">
   3.223 +        <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
   3.224 +            <attribute default="${main.class}" name="classname"/>
   3.225 +            <element name="customize" optional="true"/>
   3.226 +            <sequential>
   3.227 +                <java classname="@{classname}" fork="true">
   3.228 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   3.229 +                    <jvmarg line="${runmain.jvmargs}"/>
   3.230 +                    <classpath>
   3.231 +                        <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
   3.232 +                    </classpath>
   3.233 +                    <syspropertyset>
   3.234 +                        <propertyref prefix="run-sys-prop."/>
   3.235 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   3.236 +                    </syspropertyset>
   3.237 +                    <customize/>
   3.238 +                </java>
   3.239 +            </sequential>
   3.240 +        </macrodef>
   3.241 +    </target>
   3.242 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   3.243 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   3.244 +            <attribute default="${main.class}" name="name"/>
   3.245 +            <attribute default="${debug.classpath}" name="classpath"/>
   3.246 +            <sequential>
   3.247 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
   3.248 +                    <classpath>
   3.249 +                        <path path="@{classpath}"/>
   3.250 +                    </classpath>
   3.251 +                </nbjpdastart>
   3.252 +            </sequential>
   3.253 +        </macrodef>
   3.254 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   3.255 +            <attribute default="${build.classes.dir}" name="dir"/>
   3.256 +            <sequential>
   3.257 +                <nbjpdareload>
   3.258 +                    <fileset dir="@{dir}" includes="${fix.classes}">
   3.259 +                        <include name="${fix.includes}*.class"/>
   3.260 +                    </fileset>
   3.261 +                </nbjpdareload>
   3.262 +            </sequential>
   3.263 +        </macrodef>
   3.264 +        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
   3.265 +            <sequential>
   3.266 +                <nbjpdaappreloaded/>
   3.267 +            </sequential>
   3.268 +        </macrodef>
   3.269 +    </target>
   3.270 +    <target name="-init-debug-args">
   3.271 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   3.272 +        <condition property="have-jdk-older-than-1.4">
   3.273 +            <or>
   3.274 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
   3.275 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
   3.276 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
   3.277 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
   3.278 +            </or>
   3.279 +        </condition>
   3.280 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   3.281 +            <istrue value="${have-jdk-older-than-1.4}"/>
   3.282 +        </condition>
   3.283 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   3.284 +            <os family="windows"/>
   3.285 +        </condition>
   3.286 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   3.287 +            <isset property="debug.transport"/>
   3.288 +        </condition>
   3.289 +    </target>
   3.290 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
   3.291 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   3.292 +            <attribute default="${main.class}" name="classname"/>
   3.293 +            <attribute default="${debug.classpath}" name="classpath"/>
   3.294 +            <attribute default="${application.args}" name="args"/>
   3.295 +            <element name="customize" optional="true"/>
   3.296 +            <sequential>
   3.297 +                <java classname="@{classname}" fork="true">
   3.298 +                    <jvmarg line="${debug-args-line}"/>
   3.299 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   3.300 +                    <classpath>
   3.301 +                        <path path="@{classpath}"/>
   3.302 +                    </classpath>
   3.303 +                    <arg line="@{args}"/>
   3.304 +                    <customize/>
   3.305 +                </java>
   3.306 +            </sequential>
   3.307 +        </macrodef>
   3.308 +    </target>
   3.309 +    <target name="-init-taskdefs">
   3.310 +        <fail unless="libs.CopyLibs.classpath">
   3.311 +The libs.CopyLibs.classpath property is not set up.
   3.312 +This property must point to 
   3.313 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   3.314 +of NetBeans IDE installation and is usually located at 
   3.315 +&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   3.316 +Either open the project in the IDE and make sure CopyLibs library
   3.317 +exists or setup the property manually. For example like this:
   3.318 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   3.319 +                </fail>
   3.320 +        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   3.321 +    </target>
   3.322 +    <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"/>
   3.323 +    <!--
   3.324 +                COMPILATION SECTION
   3.325 +            -->
   3.326 +    <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
   3.327 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
   3.328 +            <property name="deploy.on.save" value="false"/>
   3.329 +        </ant>
   3.330 +    </target>
   3.331 +    <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
   3.332 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
   3.333 +            <property name="deploy.on.save" value="false"/>
   3.334 +        </ant>
   3.335 +    </target>
   3.336 +    <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
   3.337 +    <target depends="init,deps-jar" name="-pre-pre-compile">
   3.338 +        <mkdir dir="${build.classes.dir}"/>
   3.339 +        <mkdir dir="${build.ear.classes.dir}"/>
   3.340 +    </target>
   3.341 +    <target name="-pre-compile">
   3.342 +        <!-- Empty placeholder for easier customization. -->
   3.343 +        <!-- You can override this target in the ../build.xml file. -->
   3.344 +    </target>
   3.345 +    <target depends="compile" name="library-inclusion-in-archive">
   3.346 +        <copyfiles files="${reference.SpringDemo1-lib.jar}" todir="${build.classes.dir}"/>
   3.347 +        <copyfiles files="${libs.spring-framework.classpath}" todir="${build.classes.dir}"/>
   3.348 +    </target>
   3.349 +    <target depends="compile" name="library-inclusion-in-manifest">
   3.350 +        <copyfiles files="${reference.SpringDemo1-lib.jar}" todir="${dist.ear.dir}/lib"/>
   3.351 +        <copyfiles files="${libs.spring-framework.classpath}" todir="${dist.ear.dir}/lib"/>
   3.352 +        <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
   3.353 +    </target>
   3.354 +    <target name="-copy-meta-inf">
   3.355 +        <copy todir="${classes.dir}">
   3.356 +            <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
   3.357 +        </copy>
   3.358 +        <copy todir="${classes.dir}/META-INF">
   3.359 +            <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
   3.360 +        </copy>
   3.361 +    </target>
   3.362 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
   3.363 +        <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
   3.364 +        <copy todir="${classes.dir}">
   3.365 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   3.366 +        </copy>
   3.367 +    </target>
   3.368 +    <target name="-post-compile">
   3.369 +        <!-- Empty placeholder for easier customization. -->
   3.370 +        <!-- You can override this target in the ../build.xml file. -->
   3.371 +    </target>
   3.372 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   3.373 +    <target name="-pre-compile-single">
   3.374 +        <!-- Empty placeholder for easier customization. -->
   3.375 +        <!-- You can override this target in the ../build.xml file. -->
   3.376 +    </target>
   3.377 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   3.378 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   3.379 +        <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
   3.380 +    </target>
   3.381 +    <target name="-post-compile-single">
   3.382 +        <!-- Empty placeholder for easier customization. -->
   3.383 +        <!-- You can override this target in the ../build.xml file. -->
   3.384 +    </target>
   3.385 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   3.386 +    <!--
   3.387 +                DIST BUILDING SECTION
   3.388 +            -->
   3.389 +    <target name="-pre-dist">
   3.390 +        <!-- Empty placeholder for easier customization. -->
   3.391 +        <!-- You can override this target in the ../build.xml file. -->
   3.392 +    </target>
   3.393 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
   3.394 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   3.395 +        <mkdir dir="${dist.jar.dir}"/>
   3.396 +        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   3.397 +            <fileset dir="${build.classes.dir}"/>
   3.398 +        </jar>
   3.399 +    </target>
   3.400 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
   3.401 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   3.402 +        <mkdir dir="${dist.jar.dir}"/>
   3.403 +        <jar compress="${jar.compress}" jarfile="${dist.jar}">
   3.404 +            <fileset dir="${build.classes.dir}"/>
   3.405 +        </jar>
   3.406 +    </target>
   3.407 +    <!--
   3.408 +                TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   3.409 +            -->
   3.410 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
   3.411 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   3.412 +        <mkdir dir="${dist.jar.dir}"/>
   3.413 +        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   3.414 +            <fileset dir="${build.classes.dir}"/>
   3.415 +        </jar>
   3.416 +    </target>
   3.417 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
   3.418 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   3.419 +        <mkdir dir="${dist.jar.dir}"/>
   3.420 +        <jar compress="${jar.compress}" jarfile="${dist.jar}">
   3.421 +            <fileset dir="${build.classes.dir}"/>
   3.422 +        </jar>
   3.423 +    </target>
   3.424 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-tmp-dist-without-manifest, -do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
   3.425 +    <target depends="init,compile,-pre-dist,-do-dist-directory-deploy,-post-dist" description="Build distribution (JAR) - if directory deployment is not supported." name="dist-directory-deploy"/>
   3.426 +    <!--
   3.427 +                END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   3.428 +            -->
   3.429 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
   3.430 +    <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
   3.431 +        <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
   3.432 +        <mkdir dir="${dist.jar.dir}"/>
   3.433 +        <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
   3.434 +            <fileset dir="${build.ear.classes.dir}"/>
   3.435 +        </jar>
   3.436 +    </target>
   3.437 +    <target name="-post-dist">
   3.438 +        <!-- Empty placeholder for easier customization. -->
   3.439 +        <!-- You can override this target in the ../build.xml file. -->
   3.440 +    </target>
   3.441 +    <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
   3.442 +    <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"/>
   3.443 +    <!--
   3.444 +                EXECUTION SECTION
   3.445 +            -->
   3.446 +    <target depends="run-deploy" description="Deploy to server." name="run"/>
   3.447 +    <target name="-init-deploy">
   3.448 +        <property name="include.jar.manifest" value=""/>
   3.449 +    </target>
   3.450 +    <target name="pre-run-deploy">
   3.451 +        <!-- Empty placeholder for easier customization. -->
   3.452 +        <!-- You can override this target in the ../build.xml file. -->
   3.453 +    </target>
   3.454 +    <target name="post-run-deploy">
   3.455 +        <!-- Empty placeholder for easier customization. -->
   3.456 +        <!-- You can override this target in the ../build.xml file. -->
   3.457 +    </target>
   3.458 +    <target name="-pre-nbmodule-run-deploy">
   3.459 +        <!-- Empty placeholder for easier customization. -->
   3.460 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   3.461 +    </target>
   3.462 +    <target name="-post-nbmodule-run-deploy">
   3.463 +        <!-- Empty placeholder for easier customization. -->
   3.464 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   3.465 +    </target>
   3.466 +    <target name="-run-deploy-am">
   3.467 +        <!-- Task to deploy to the Access Manager runtime. -->
   3.468 +    </target>
   3.469 +    <target depends="init,-init-cos,-init-deploy,compile,library-inclusion-in-archive,dist-directory-deploy,pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,post-run-deploy" name="run-deploy">
   3.470 +        <nbjpdaappreloaded/>
   3.471 +    </target>
   3.472 +    <target if="netbeans.home" name="-run-deploy-nb">
   3.473 +        <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
   3.474 +    </target>
   3.475 +    <target name="-init-deploy-ant" unless="netbeans.home">
   3.476 +        <property name="deploy.ant.archive" value="${dist.jar}"/>
   3.477 +        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   3.478 +        <property name="deploy.ant.enabled" value="true"/>
   3.479 +    </target>
   3.480 +    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   3.481 +    <target if="netbeans.home" name="-run-undeploy-nb">
   3.482 +        <fail message="Undeploy is not supported from within the IDE"/>
   3.483 +    </target>
   3.484 +    <target depends="dist" name="verify">
   3.485 +        <nbverify file="${dist.jar}"/>
   3.486 +    </target>
   3.487 +    <target depends="init,compile-single" name="run-main">
   3.488 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   3.489 +        <ejbjarproject3:java classname="${run.class}"/>
   3.490 +    </target>
   3.491 +    <!--
   3.492 +                DEBUGGING SECTION
   3.493 +            -->
   3.494 +    <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
   3.495 +        <nbdeploy debugmode="true"/>
   3.496 +        <antcall target="connect-debugger"/>
   3.497 +    </target>
   3.498 +    <target name="connect-debugger" unless="is.debugged">
   3.499 +        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   3.500 +            <classpath>
   3.501 +                <path path="${debug.classpath}"/>
   3.502 +            </classpath>
   3.503 +            <sourcepath>
   3.504 +                <path path="${web.docbase.dir}"/>
   3.505 +            </sourcepath>
   3.506 +        </nbjpdaconnect>
   3.507 +    </target>
   3.508 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   3.509 +        <ejbjarproject1:nbjpdastart/>
   3.510 +    </target>
   3.511 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   3.512 +        <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
   3.513 +        <ejbjarproject1:debug/>
   3.514 +    </target>
   3.515 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
   3.516 +    <target depends="init" name="-pre-debug-fix">
   3.517 +        <fail unless="fix.includes">Must set fix.includes</fail>
   3.518 +        <property name="javac.includes" value="${fix.includes}.java"/>
   3.519 +    </target>
   3.520 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   3.521 +        <ejbjarproject1:nbjpdareload/>
   3.522 +    </target>
   3.523 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   3.524 +    <!--
   3.525 +                JAVADOC SECTION
   3.526 +            -->
   3.527 +    <target depends="init" name="javadoc-build">
   3.528 +        <mkdir dir="${dist.javadoc.dir}"/>
   3.529 +        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
   3.530 +            <classpath>
   3.531 +                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
   3.532 +            </classpath>
   3.533 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   3.534 +                <filename name="**/*.java"/>
   3.535 +            </fileset>
   3.536 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   3.537 +                <include name="**/*.java"/>
   3.538 +            </fileset>
   3.539 +        </javadoc>
   3.540 +    </target>
   3.541 +    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
   3.542 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   3.543 +    </target>
   3.544 +    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
   3.545 +    <!--
   3.546 +                JUNIT COMPILATION SECTION
   3.547 +            -->
   3.548 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   3.549 +        <mkdir dir="${build.test.classes.dir}"/>
   3.550 +        <property name="j2ee.platform.embeddableejb.classpath" value=""/>
   3.551 +    </target>
   3.552 +    <target name="-pre-compile-test">
   3.553 +        <!-- Empty placeholder for easier customization. -->
   3.554 +        <!-- You can override this target in the ../build.xml file. -->
   3.555 +    </target>
   3.556 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
   3.557 +        <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   3.558 +        <copy todir="${build.test.classes.dir}">
   3.559 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   3.560 +        </copy>
   3.561 +    </target>
   3.562 +    <target name="-post-compile-test">
   3.563 +        <!-- Empty placeholder for easier customization. -->
   3.564 +        <!-- You can override this target in the ../build.xml file. -->
   3.565 +    </target>
   3.566 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   3.567 +    <target name="-pre-compile-test-single">
   3.568 +        <!-- Empty placeholder for easier customization. -->
   3.569 +        <!-- You can override this target in the ../build.xml file. -->
   3.570 +    </target>
   3.571 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   3.572 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   3.573 +        <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
   3.574 +    </target>
   3.575 +    <target name="-post-compile-test-single">
   3.576 +        <!-- Empty placeholder for easier customization. -->
   3.577 +        <!-- You can override this target in the ../build.xml file. -->
   3.578 +    </target>
   3.579 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   3.580 +    <!--
   3.581 +                JUNIT EXECUTION SECTION
   3.582 +            -->
   3.583 +    <target depends="init" if="have.tests" name="-pre-test-run">
   3.584 +        <mkdir dir="${build.test.results.dir}"/>
   3.585 +    </target>
   3.586 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   3.587 +        <ejbjarproject2:junit testincludes="**/*Test.java"/>
   3.588 +    </target>
   3.589 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   3.590 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   3.591 +    </target>
   3.592 +    <target depends="init" if="have.tests" name="test-report"/>
   3.593 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   3.594 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   3.595 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
   3.596 +        <mkdir dir="${build.test.results.dir}"/>
   3.597 +    </target>
   3.598 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   3.599 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   3.600 +        <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
   3.601 +    </target>
   3.602 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   3.603 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   3.604 +    </target>
   3.605 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
   3.606 +    <!--
   3.607 +                JUNIT DEBUGGING SECTION
   3.608 +            -->
   3.609 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   3.610 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   3.611 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   3.612 +        <delete file="${test.report.file}"/>
   3.613 +        <!-- the directory must exist, otherwise the XML formatter would fail -->
   3.614 +        <mkdir dir="${build.test.results.dir}"/>
   3.615 +        <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}:${j2ee.platform.embeddableejb.classpath}">
   3.616 +            <customize>
   3.617 +                <arg value="showoutput=true"/>
   3.618 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   3.619 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   3.620 +            </customize>
   3.621 +        </ejbjarproject1:debug>
   3.622 +    </target>
   3.623 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   3.624 +        <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   3.625 +    </target>
   3.626 +    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   3.627 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   3.628 +        <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   3.629 +    </target>
   3.630 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   3.631 +    <!--
   3.632 +                CLEANUP SECTION
   3.633 +            -->
   3.634 +    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
   3.635 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="clean"/>
   3.636 +    </target>
   3.637 +    <target depends="init" name="-do-clean">
   3.638 +        <delete dir="${build.dir}"/>
   3.639 +        <delete dir="${dist.dir}"/>
   3.640 +    </target>
   3.641 +    <target name="-post-clean">
   3.642 +        <!-- Empty placeholder for easier customization. -->
   3.643 +        <!-- You can override this target in the ../build.xml file. -->
   3.644 +    </target>
   3.645 +    <target depends="init" if="netbeans.home" name="undeploy-clean">
   3.646 +        <nbundeploy failOnError="false" startServer="false"/>
   3.647 +    </target>
   3.648 +    <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
   3.649 +    <target depends="clean" name="clean-ear"/>
   3.650 +</project>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/java/SpringDemo1/SpringDemo1-ejb/nbproject/genfiles.properties	Wed Feb 10 20:55:08 2010 +0100
     4.3 @@ -0,0 +1,8 @@
     4.4 +build.xml.data.CRC32=c1354544
     4.5 +build.xml.script.CRC32=7add87d2
     4.6 +build.xml.stylesheet.CRC32=e5f4c432@1.19.2
     4.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     4.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
     4.9 +nbproject/build-impl.xml.data.CRC32=c1354544
    4.10 +nbproject/build-impl.xml.script.CRC32=34921854
    4.11 +nbproject/build-impl.xml.stylesheet.CRC32=b9c9cfe1@1.19.2
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/java/SpringDemo1/SpringDemo1-ejb/nbproject/project.properties	Wed Feb 10 20:55:08 2010 +0100
     5.3 @@ -0,0 +1,64 @@
     5.4 +build.classes.dir=${build.dir}/classes
     5.5 +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs
     5.6 +build.dir=build
     5.7 +build.ear.classes.dir=${build.dir}/classes
     5.8 +build.generated.dir=${build.dir}/generated
     5.9 +build.generated.sources.dir=${build.dir}/generated-sources
    5.10 +build.test.classes.dir=${build.dir}/test/classes
    5.11 +build.test.results.dir=${build.dir}/test/results
    5.12 +debug.classpath=${javac.classpath}:${build.classes.dir}
    5.13 +debug.test.classpath=\
    5.14 +    ${run.test.classpath}
    5.15 +dist.dir=dist
    5.16 +dist.ear.jar=${dist.dir}/${jar.name}
    5.17 +dist.jar=${dist.dir}/${jar.name}
    5.18 +dist.javadoc.dir=${dist.dir}/javadoc
    5.19 +endorsed.classpath=\
    5.20 +    ${libs.javaee-endorsed-api-6.0.classpath}
    5.21 +excludes=
    5.22 +includes=**
    5.23 +j2ee.deploy.on.save=false
    5.24 +j2ee.platform=1.6
    5.25 +j2ee.server.type=gfv3ee6
    5.26 +jar.compress=false
    5.27 +jar.name=SpringDemo1-ejb.jar
    5.28 +javac.classpath=\
    5.29 +    ${reference.SpringDemo1-lib.jar}:\
    5.30 +    ${libs.spring-framework.classpath}
    5.31 +javac.debug=true
    5.32 +javac.deprecation=false
    5.33 +javac.source=1.5
    5.34 +javac.target=1.5
    5.35 +javac.test.classpath=\
    5.36 +    ${javac.classpath}:\
    5.37 +    ${build.classes.dir}:\
    5.38 +    ${libs.junit.classpath}:\
    5.39 +    ${libs.junit_4.classpath}
    5.40 +javadoc.additionalparam=
    5.41 +javadoc.author=false
    5.42 +javadoc.encoding=${source.encoding}
    5.43 +javadoc.noindex=false
    5.44 +javadoc.nonavbar=false
    5.45 +javadoc.notree=false
    5.46 +javadoc.preview=true
    5.47 +javadoc.private=false
    5.48 +javadoc.splitindex=true
    5.49 +javadoc.use=true
    5.50 +javadoc.version=false
    5.51 +javadoc.windowtitle=
    5.52 +meta.inf=${source.root}/conf
    5.53 +meta.inf.excludes=sun-cmp-mappings.xml
    5.54 +platform.active=default_platform
    5.55 +project.SpringDemo1-lib=../SpringDemo1-lib
    5.56 +reference.SpringDemo1-lib.jar=${project.SpringDemo1-lib}/dist/SpringDemo1-lib.jar
    5.57 +resource.dir=setup
    5.58 +run.test.classpath=\
    5.59 +    ${javac.test.classpath}:\
    5.60 +    ${build.test.classes.dir}
    5.61 +# Space-separated list of JVM arguments used when running a class with a main method or a unit test
    5.62 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
    5.63 +runmain.jvmargs=
    5.64 +source.encoding=UTF-8
    5.65 +source.root=src
    5.66 +src.dir=${source.root}/java
    5.67 +test.src.dir=test
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/java/SpringDemo1/SpringDemo1-ejb/nbproject/project.xml	Wed Feb 10 20:55:08 2010 +0100
     6.3 @@ -0,0 +1,28 @@
     6.4 +<?xml version="1.0" encoding="UTF-8"?>
     6.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
     6.6 +    <type>org.netbeans.modules.j2ee.ejbjarproject</type>
     6.7 +    <configuration>
     6.8 +        <data xmlns="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
     6.9 +            <name>SpringDemo1-ejb</name>
    6.10 +            <minimum-ant-version>1.6.5</minimum-ant-version>
    6.11 +            <included-library dirs="200">reference.SpringDemo1-lib.jar</included-library>
    6.12 +            <included-library dirs="200">libs.spring-framework.classpath</included-library>
    6.13 +            <source-roots>
    6.14 +                <root id="src.dir" name="Source Packages"/>
    6.15 +            </source-roots>
    6.16 +            <test-roots>
    6.17 +                <root id="test.src.dir" name="Test Packages"/>
    6.18 +            </test-roots>
    6.19 +        </data>
    6.20 +        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
    6.21 +            <reference>
    6.22 +                <foreign-project>SpringDemo1-lib</foreign-project>
    6.23 +                <artifact-type>jar</artifact-type>
    6.24 +                <script>build.xml</script>
    6.25 +                <target>jar</target>
    6.26 +                <clean-target>clean</clean-target>
    6.27 +                <id>jar</id>
    6.28 +            </reference>
    6.29 +        </references>
    6.30 +    </configuration>
    6.31 +</project>
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/java/SpringDemo1/SpringDemo1-ejb/src/conf/MANIFEST.MF	Wed Feb 10 20:55:08 2010 +0100
     7.3 @@ -0,0 +1,2 @@
     7.4 +Manifest-Version: 1.0
     7.5 +
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/java/SpringDemo1/SpringDemo1-ejb/src/conf/beans.xml	Wed Feb 10 20:55:08 2010 +0100
     8.3 @@ -0,0 +1,5 @@
     8.4 +<?xml version="1.0" encoding="UTF-8"?>
     8.5 +<beans xmlns="http://java.sun.com/xml/ns/javaee"
     8.6 +       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     8.7 +       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
     8.8 +</beans>
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/dao/KnihaDAO.java	Wed Feb 10 20:55:08 2010 +0100
     9.3 @@ -0,0 +1,38 @@
     9.4 +package cz.frantovo.springDemo1.dao;
     9.5 +
     9.6 +import cz.frantovo.springDemo1.dto.Kniha;
     9.7 +import java.util.ArrayList;
     9.8 +import java.util.Collection;
     9.9 +import javax.annotation.Resource;
    9.10 +import javax.sql.DataSource;
    9.11 +import org.springframework.jdbc.core.JdbcTemplate;
    9.12 +import org.springframework.stereotype.Repository;
    9.13 +
    9.14 +/**
    9.15 + *
    9.16 + * @author fiki
    9.17 + */
    9.18 +@Repository("knihaDAO")
    9.19 +public class KnihaDAO {
    9.20 +
    9.21 +    private DataSource dataSource;
    9.22 +
    9.23 +    @Resource
    9.24 +    public void setDataSource(DataSource dataSource) {
    9.25 +	this.dataSource = dataSource;
    9.26 +    }
    9.27 +
    9.28 +    public Collection<Kniha> getKnihy() {
    9.29 +	Collection<Kniha> vysledek = new ArrayList<Kniha>();
    9.30 +
    9.31 +	JdbcTemplate t = new JdbcTemplate(dataSource);
    9.32 +
    9.33 +	t.queryForInt("SELECT 1;");
    9.34 +
    9.35 +	Kniha k = new Kniha();
    9.36 +	k.setNazev("Pokusná kniha");
    9.37 +	vysledek.add(k);
    9.38 +
    9.39 +	return vysledek;
    9.40 +    }
    9.41 +}
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/dto/Kniha.java	Wed Feb 10 20:55:08 2010 +0100
    10.3 @@ -0,0 +1,74 @@
    10.4 +package cz.frantovo.springDemo1.dto;
    10.5 +
    10.6 +import java.util.Date;
    10.7 +
    10.8 +/**
    10.9 + *
   10.10 + * @author fiki
   10.11 + */
   10.12 +public class Kniha {
   10.13 +    private int id;
   10.14 +    private String nazev;
   10.15 +    private String isbn;
   10.16 +    private int pocetStran;
   10.17 +    private Date datumAktualizace;
   10.18 +    private int rokVydani;
   10.19 +    private int autor;
   10.20 +
   10.21 +    public int getId() {
   10.22 +	return id;
   10.23 +    }
   10.24 +
   10.25 +    public void setId(int id) {
   10.26 +	this.id = id;
   10.27 +    }
   10.28 +
   10.29 +    public String getNazev() {
   10.30 +	return nazev;
   10.31 +    }
   10.32 +
   10.33 +    public void setNazev(String nazev) {
   10.34 +	this.nazev = nazev;
   10.35 +    }
   10.36 +
   10.37 +    public String getIsbn() {
   10.38 +	return isbn;
   10.39 +    }
   10.40 +
   10.41 +    public void setIsbn(String isbn) {
   10.42 +	this.isbn = isbn;
   10.43 +    }
   10.44 +
   10.45 +    public int getPocetStran() {
   10.46 +	return pocetStran;
   10.47 +    }
   10.48 +
   10.49 +    public void setPocetStran(int pocetStran) {
   10.50 +	this.pocetStran = pocetStran;
   10.51 +    }
   10.52 +
   10.53 +    public Date getDatumAktualizace() {
   10.54 +	return datumAktualizace;
   10.55 +    }
   10.56 +
   10.57 +    public void setDatumAktualizace(Date datumAktualizace) {
   10.58 +	this.datumAktualizace = datumAktualizace;
   10.59 +    }
   10.60 +
   10.61 +    public int getRokVydani() {
   10.62 +	return rokVydani;
   10.63 +    }
   10.64 +
   10.65 +    public void setRokVydani(int rokVydani) {
   10.66 +	this.rokVydani = rokVydani;
   10.67 +    }
   10.68 +
   10.69 +    public int getAutor() {
   10.70 +	return autor;
   10.71 +    }
   10.72 +
   10.73 +    public void setAutor(int autor) {
   10.74 +	this.autor = autor;
   10.75 +    }
   10.76 +
   10.77 +}
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/web/SpringDemo1Bean.java	Wed Feb 10 20:55:08 2010 +0100
    11.3 @@ -0,0 +1,18 @@
    11.4 +package cz.frantovo.springDemo1.web;
    11.5 +
    11.6 +import cz.frantovo.springDemo1.dao.KnihaDAO;
    11.7 +import cz.frantovo.springDemo1.dto.Kniha;
    11.8 +import java.util.Collection;
    11.9 +
   11.10 +/**
   11.11 + *
   11.12 + * @author fiki
   11.13 + */
   11.14 +public class SpringDemo1Bean {
   11.15 +
   11.16 +    public Collection<Kniha> getKnihy() {
   11.17 +	KnihaDAO dao = new KnihaDAO();
   11.18 +	return dao.getKnihy();
   11.19 +    }
   11.20 +
   11.21 +}
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/java/SpringDemo1/SpringDemo1-lib/nbproject/build-impl.xml	Wed Feb 10 20:55:08 2010 +0100
    12.3 @@ -0,0 +1,805 @@
    12.4 +<?xml version="1.0" encoding="UTF-8"?>
    12.5 +<!--
    12.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
    12.7 +***         EDIT ../build.xml INSTEAD         ***
    12.8 +
    12.9 +For the purpose of easier reading the script
   12.10 +is divided into following sections:
   12.11 +
   12.12 +  - initialization
   12.13 +  - compilation
   12.14 +  - jar
   12.15 +  - execution
   12.16 +  - debugging
   12.17 +  - javadoc
   12.18 +  - junit compilation
   12.19 +  - junit execution
   12.20 +  - junit debugging
   12.21 +  - applet
   12.22 +  - cleanup
   12.23 +
   12.24 +        -->
   12.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="SpringDemo1-lib-impl">
   12.26 +    <fail message="Please build using Ant 1.7.1 or higher.">
   12.27 +        <condition>
   12.28 +            <not>
   12.29 +                <antversion atleast="1.7.1"/>
   12.30 +            </not>
   12.31 +        </condition>
   12.32 +    </fail>
   12.33 +    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
   12.34 +    <!-- 
   12.35 +                ======================
   12.36 +                INITIALIZATION SECTION 
   12.37 +                ======================
   12.38 +            -->
   12.39 +    <target name="-pre-init">
   12.40 +        <!-- Empty placeholder for easier customization. -->
   12.41 +        <!-- You can override this target in the ../build.xml file. -->
   12.42 +    </target>
   12.43 +    <target depends="-pre-init" name="-init-private">
   12.44 +        <property file="nbproject/private/config.properties"/>
   12.45 +        <property file="nbproject/private/configs/${config}.properties"/>
   12.46 +        <property file="nbproject/private/private.properties"/>
   12.47 +    </target>
   12.48 +    <target depends="-pre-init,-init-private" name="-init-user">
   12.49 +        <property file="${user.properties.file}"/>
   12.50 +        <!-- The two properties below are usually overridden -->
   12.51 +        <!-- by the active platform. Just a fallback. -->
   12.52 +        <property name="default.javac.source" value="1.4"/>
   12.53 +        <property name="default.javac.target" value="1.4"/>
   12.54 +    </target>
   12.55 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
   12.56 +        <property file="nbproject/configs/${config}.properties"/>
   12.57 +        <property file="nbproject/project.properties"/>
   12.58 +    </target>
   12.59 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
   12.60 +        <available file="${manifest.file}" property="manifest.available"/>
   12.61 +        <condition property="main.class.available">
   12.62 +            <and>
   12.63 +                <isset property="main.class"/>
   12.64 +                <not>
   12.65 +                    <equals arg1="${main.class}" arg2="" trim="true"/>
   12.66 +                </not>
   12.67 +            </and>
   12.68 +        </condition>
   12.69 +        <condition property="manifest.available+main.class">
   12.70 +            <and>
   12.71 +                <isset property="manifest.available"/>
   12.72 +                <isset property="main.class.available"/>
   12.73 +            </and>
   12.74 +        </condition>
   12.75 +        <condition property="do.mkdist">
   12.76 +            <and>
   12.77 +                <isset property="libs.CopyLibs.classpath"/>
   12.78 +                <not>
   12.79 +                    <istrue value="${mkdist.disabled}"/>
   12.80 +                </not>
   12.81 +            </and>
   12.82 +        </condition>
   12.83 +        <condition property="manifest.available+main.class+mkdist.available">
   12.84 +            <and>
   12.85 +                <istrue value="${manifest.available+main.class}"/>
   12.86 +                <isset property="do.mkdist"/>
   12.87 +            </and>
   12.88 +        </condition>
   12.89 +        <condition property="manifest.available+mkdist.available">
   12.90 +            <and>
   12.91 +                <istrue value="${manifest.available}"/>
   12.92 +                <isset property="do.mkdist"/>
   12.93 +            </and>
   12.94 +        </condition>
   12.95 +        <condition property="manifest.available-mkdist.available">
   12.96 +            <or>
   12.97 +                <istrue value="${manifest.available}"/>
   12.98 +                <isset property="do.mkdist"/>
   12.99 +            </or>
  12.100 +        </condition>
  12.101 +        <condition property="manifest.available+main.class-mkdist.available">
  12.102 +            <or>
  12.103 +                <istrue value="${manifest.available+main.class}"/>
  12.104 +                <isset property="do.mkdist"/>
  12.105 +            </or>
  12.106 +        </condition>
  12.107 +        <condition property="have.tests">
  12.108 +            <or>
  12.109 +                <available file="${test.src.dir}"/>
  12.110 +            </or>
  12.111 +        </condition>
  12.112 +        <condition property="have.sources">
  12.113 +            <or>
  12.114 +                <available file="${src.dir}"/>
  12.115 +            </or>
  12.116 +        </condition>
  12.117 +        <condition property="netbeans.home+have.tests">
  12.118 +            <and>
  12.119 +                <isset property="netbeans.home"/>
  12.120 +                <isset property="have.tests"/>
  12.121 +            </and>
  12.122 +        </condition>
  12.123 +        <condition property="no.javadoc.preview">
  12.124 +            <and>
  12.125 +                <isset property="javadoc.preview"/>
  12.126 +                <isfalse value="${javadoc.preview}"/>
  12.127 +            </and>
  12.128 +        </condition>
  12.129 +        <property name="run.jvmargs" value=""/>
  12.130 +        <property name="javac.compilerargs" value=""/>
  12.131 +        <property name="work.dir" value="${basedir}"/>
  12.132 +        <condition property="no.deps">
  12.133 +            <and>
  12.134 +                <istrue value="${no.dependencies}"/>
  12.135 +            </and>
  12.136 +        </condition>
  12.137 +        <property name="javac.debug" value="true"/>
  12.138 +        <property name="javadoc.preview" value="true"/>
  12.139 +        <property name="application.args" value=""/>
  12.140 +        <property name="source.encoding" value="${file.encoding}"/>
  12.141 +        <property name="runtime.encoding" value="${source.encoding}"/>
  12.142 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  12.143 +            <and>
  12.144 +                <isset property="javadoc.encoding"/>
  12.145 +                <not>
  12.146 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
  12.147 +                </not>
  12.148 +            </and>
  12.149 +        </condition>
  12.150 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
  12.151 +        <property name="includes" value="**"/>
  12.152 +        <property name="excludes" value=""/>
  12.153 +        <property name="do.depend" value="false"/>
  12.154 +        <condition property="do.depend.true">
  12.155 +            <istrue value="${do.depend}"/>
  12.156 +        </condition>
  12.157 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
  12.158 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
  12.159 +            <length length="0" string="${endorsed.classpath}" when="greater"/>
  12.160 +        </condition>
  12.161 +        <property name="javac.fork" value="false"/>
  12.162 +    </target>
  12.163 +    <target name="-post-init">
  12.164 +        <!-- Empty placeholder for easier customization. -->
  12.165 +        <!-- You can override this target in the ../build.xml file. -->
  12.166 +    </target>
  12.167 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  12.168 +        <fail unless="src.dir">Must set src.dir</fail>
  12.169 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
  12.170 +        <fail unless="build.dir">Must set build.dir</fail>
  12.171 +        <fail unless="dist.dir">Must set dist.dir</fail>
  12.172 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  12.173 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  12.174 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  12.175 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  12.176 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  12.177 +        <fail unless="dist.jar">Must set dist.jar</fail>
  12.178 +    </target>
  12.179 +    <target name="-init-macrodef-property">
  12.180 +        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
  12.181 +            <attribute name="name"/>
  12.182 +            <attribute name="value"/>
  12.183 +            <sequential>
  12.184 +                <property name="@{name}" value="${@{value}}"/>
  12.185 +            </sequential>
  12.186 +        </macrodef>
  12.187 +    </target>
  12.188 +    <target name="-init-macrodef-javac">
  12.189 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  12.190 +            <attribute default="${src.dir}" name="srcdir"/>
  12.191 +            <attribute default="${build.classes.dir}" name="destdir"/>
  12.192 +            <attribute default="${javac.classpath}" name="classpath"/>
  12.193 +            <attribute default="${includes}" name="includes"/>
  12.194 +            <attribute default="${excludes}" name="excludes"/>
  12.195 +            <attribute default="${javac.debug}" name="debug"/>
  12.196 +            <attribute default="${empty.dir}" name="sourcepath"/>
  12.197 +            <attribute default="${empty.dir}" name="gensrcdir"/>
  12.198 +            <element name="customize" optional="true"/>
  12.199 +            <sequential>
  12.200 +                <property location="${build.dir}/empty" name="empty.dir"/>
  12.201 +                <mkdir dir="${empty.dir}"/>
  12.202 +                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
  12.203 +                    <src>
  12.204 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  12.205 +                            <include name="*"/>
  12.206 +                        </dirset>
  12.207 +                    </src>
  12.208 +                    <classpath>
  12.209 +                        <path path="@{classpath}"/>
  12.210 +                    </classpath>
  12.211 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  12.212 +                    <compilerarg line="${javac.compilerargs}"/>
  12.213 +                    <customize/>
  12.214 +                </javac>
  12.215 +            </sequential>
  12.216 +        </macrodef>
  12.217 +        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
  12.218 +            <attribute default="${src.dir}" name="srcdir"/>
  12.219 +            <attribute default="${build.classes.dir}" name="destdir"/>
  12.220 +            <attribute default="${javac.classpath}" name="classpath"/>
  12.221 +            <sequential>
  12.222 +                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
  12.223 +                    <classpath>
  12.224 +                        <path path="@{classpath}"/>
  12.225 +                    </classpath>
  12.226 +                </depend>
  12.227 +            </sequential>
  12.228 +        </macrodef>
  12.229 +        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
  12.230 +            <attribute default="${build.classes.dir}" name="destdir"/>
  12.231 +            <sequential>
  12.232 +                <fail unless="javac.includes">Must set javac.includes</fail>
  12.233 +                <pathconvert pathsep="," property="javac.includes.binary">
  12.234 +                    <path>
  12.235 +                        <filelist dir="@{destdir}" files="${javac.includes}"/>
  12.236 +                    </path>
  12.237 +                    <globmapper from="*.java" to="*.class"/>
  12.238 +                </pathconvert>
  12.239 +                <delete>
  12.240 +                    <files includes="${javac.includes.binary}"/>
  12.241 +                </delete>
  12.242 +            </sequential>
  12.243 +        </macrodef>
  12.244 +    </target>
  12.245 +    <target name="-init-macrodef-junit">
  12.246 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
  12.247 +            <attribute default="${includes}" name="includes"/>
  12.248 +            <attribute default="${excludes}" name="excludes"/>
  12.249 +            <attribute default="**" name="testincludes"/>
  12.250 +            <sequential>
  12.251 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
  12.252 +                    <batchtest todir="${build.test.results.dir}">
  12.253 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  12.254 +                            <filename name="@{testincludes}"/>
  12.255 +                        </fileset>
  12.256 +                    </batchtest>
  12.257 +                    <classpath>
  12.258 +                        <path path="${run.test.classpath}"/>
  12.259 +                    </classpath>
  12.260 +                    <syspropertyset>
  12.261 +                        <propertyref prefix="test-sys-prop."/>
  12.262 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  12.263 +                    </syspropertyset>
  12.264 +                    <formatter type="brief" usefile="false"/>
  12.265 +                    <formatter type="xml"/>
  12.266 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  12.267 +                    <jvmarg line="${run.jvmargs}"/>
  12.268 +                </junit>
  12.269 +            </sequential>
  12.270 +        </macrodef>
  12.271 +    </target>
  12.272 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  12.273 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
  12.274 +            <attribute default="${main.class}" name="name"/>
  12.275 +            <attribute default="${debug.classpath}" name="classpath"/>
  12.276 +            <attribute default="" name="stopclassname"/>
  12.277 +            <sequential>
  12.278 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
  12.279 +                    <classpath>
  12.280 +                        <path path="@{classpath}"/>
  12.281 +                    </classpath>
  12.282 +                </nbjpdastart>
  12.283 +            </sequential>
  12.284 +        </macrodef>
  12.285 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
  12.286 +            <attribute default="${build.classes.dir}" name="dir"/>
  12.287 +            <sequential>
  12.288 +                <nbjpdareload>
  12.289 +                    <fileset dir="@{dir}" includes="${fix.classes}">
  12.290 +                        <include name="${fix.includes}*.class"/>
  12.291 +                    </fileset>
  12.292 +                </nbjpdareload>
  12.293 +            </sequential>
  12.294 +        </macrodef>
  12.295 +    </target>
  12.296 +    <target name="-init-debug-args">
  12.297 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
  12.298 +        <condition property="have-jdk-older-than-1.4">
  12.299 +            <or>
  12.300 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
  12.301 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
  12.302 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
  12.303 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
  12.304 +            </or>
  12.305 +        </condition>
  12.306 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  12.307 +            <istrue value="${have-jdk-older-than-1.4}"/>
  12.308 +        </condition>
  12.309 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  12.310 +            <os family="windows"/>
  12.311 +        </condition>
  12.312 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  12.313 +            <isset property="debug.transport"/>
  12.314 +        </condition>
  12.315 +    </target>
  12.316 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
  12.317 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  12.318 +            <attribute default="${main.class}" name="classname"/>
  12.319 +            <attribute default="${debug.classpath}" name="classpath"/>
  12.320 +            <element name="customize" optional="true"/>
  12.321 +            <sequential>
  12.322 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
  12.323 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  12.324 +                    <jvmarg line="${debug-args-line}"/>
  12.325 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  12.326 +                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  12.327 +                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  12.328 +                    <jvmarg line="${run.jvmargs}"/>
  12.329 +                    <classpath>
  12.330 +                        <path path="@{classpath}"/>
  12.331 +                    </classpath>
  12.332 +                    <syspropertyset>
  12.333 +                        <propertyref prefix="run-sys-prop."/>
  12.334 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  12.335 +                    </syspropertyset>
  12.336 +                    <customize/>
  12.337 +                </java>
  12.338 +            </sequential>
  12.339 +        </macrodef>
  12.340 +    </target>
  12.341 +    <target name="-init-macrodef-java">
  12.342 +        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
  12.343 +            <attribute default="${main.class}" name="classname"/>
  12.344 +            <attribute default="${run.classpath}" name="classpath"/>
  12.345 +            <element name="customize" optional="true"/>
  12.346 +            <sequential>
  12.347 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
  12.348 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  12.349 +                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  12.350 +                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  12.351 +                    <jvmarg line="${run.jvmargs}"/>
  12.352 +                    <classpath>
  12.353 +                        <path path="@{classpath}"/>
  12.354 +                    </classpath>
  12.355 +                    <syspropertyset>
  12.356 +                        <propertyref prefix="run-sys-prop."/>
  12.357 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  12.358 +                    </syspropertyset>
  12.359 +                    <customize/>
  12.360 +                </java>
  12.361 +            </sequential>
  12.362 +        </macrodef>
  12.363 +    </target>
  12.364 +    <target name="-init-presetdef-jar">
  12.365 +        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
  12.366 +            <jar compress="${jar.compress}" jarfile="${dist.jar}">
  12.367 +                <j2seproject1:fileset dir="${build.classes.dir}"/>
  12.368 +            </jar>
  12.369 +        </presetdef>
  12.370 +    </target>
  12.371 +    <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"/>
  12.372 +    <!--
  12.373 +                ===================
  12.374 +                COMPILATION SECTION
  12.375 +                ===================
  12.376 +            -->
  12.377 +    <target name="-deps-jar-init" unless="built-jar.properties">
  12.378 +        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
  12.379 +        <delete file="${built-jar.properties}" quiet="true"/>
  12.380 +    </target>
  12.381 +    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
  12.382 +        <echo level="warn" message="Cycle detected: SpringDemo1-lib was already built"/>
  12.383 +    </target>
  12.384 +    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
  12.385 +        <mkdir dir="${build.dir}"/>
  12.386 +        <touch file="${built-jar.properties}" verbose="false"/>
  12.387 +        <property file="${built-jar.properties}" prefix="already.built.jar."/>
  12.388 +        <antcall target="-warn-already-built-jar"/>
  12.389 +        <propertyfile file="${built-jar.properties}">
  12.390 +            <entry key="${basedir}" value=""/>
  12.391 +        </propertyfile>
  12.392 +    </target>
  12.393 +    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
  12.394 +    <target depends="init" name="-check-automatic-build">
  12.395 +        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
  12.396 +    </target>
  12.397 +    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
  12.398 +        <antcall target="clean"/>
  12.399 +    </target>
  12.400 +    <target depends="init,deps-jar" name="-pre-pre-compile">
  12.401 +        <mkdir dir="${build.classes.dir}"/>
  12.402 +    </target>
  12.403 +    <target name="-pre-compile">
  12.404 +        <!-- Empty placeholder for easier customization. -->
  12.405 +        <!-- You can override this target in the ../build.xml file. -->
  12.406 +    </target>
  12.407 +    <target if="do.depend.true" name="-compile-depend">
  12.408 +        <pathconvert property="build.generated.subdirs">
  12.409 +            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  12.410 +                <include name="*"/>
  12.411 +            </dirset>
  12.412 +        </pathconvert>
  12.413 +        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
  12.414 +    </target>
  12.415 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
  12.416 +        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
  12.417 +        <copy todir="${build.classes.dir}">
  12.418 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  12.419 +        </copy>
  12.420 +    </target>
  12.421 +    <target name="-post-compile">
  12.422 +        <!-- Empty placeholder for easier customization. -->
  12.423 +        <!-- You can override this target in the ../build.xml file. -->
  12.424 +    </target>
  12.425 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  12.426 +    <target name="-pre-compile-single">
  12.427 +        <!-- Empty placeholder for easier customization. -->
  12.428 +        <!-- You can override this target in the ../build.xml file. -->
  12.429 +    </target>
  12.430 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  12.431 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  12.432 +        <j2seproject3:force-recompile/>
  12.433 +        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
  12.434 +    </target>
  12.435 +    <target name="-post-compile-single">
  12.436 +        <!-- Empty placeholder for easier customization. -->
  12.437 +        <!-- You can override this target in the ../build.xml file. -->
  12.438 +    </target>
  12.439 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  12.440 +    <!--
  12.441 +                ====================
  12.442 +                JAR BUILDING SECTION
  12.443 +                ====================
  12.444 +            -->
  12.445 +    <target depends="init" name="-pre-pre-jar">
  12.446 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
  12.447 +        <mkdir dir="${dist.jar.dir}"/>
  12.448 +    </target>
  12.449 +    <target name="-pre-jar">
  12.450 +        <!-- Empty placeholder for easier customization. -->
  12.451 +        <!-- You can override this target in the ../build.xml file. -->
  12.452 +    </target>
  12.453 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
  12.454 +        <j2seproject1:jar/>
  12.455 +    </target>
  12.456 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
  12.457 +        <j2seproject1:jar manifest="${manifest.file}"/>
  12.458 +    </target>
  12.459 +    <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">
  12.460 +        <j2seproject1:jar manifest="${manifest.file}">
  12.461 +            <j2seproject1:manifest>
  12.462 +                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
  12.463 +            </j2seproject1:manifest>
  12.464 +        </j2seproject1:jar>
  12.465 +        <echo>To run this application from the command line without Ant, try:</echo>
  12.466 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  12.467 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
  12.468 +        <pathconvert property="run.classpath.with.dist.jar">
  12.469 +            <path path="${run.classpath}"/>
  12.470 +            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
  12.471 +        </pathconvert>
  12.472 +        <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
  12.473 +    </target>
  12.474 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
  12.475 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  12.476 +        <pathconvert property="run.classpath.without.build.classes.dir">
  12.477 +            <path path="${run.classpath}"/>
  12.478 +            <map from="${build.classes.dir.resolved}" to=""/>
  12.479 +        </pathconvert>
  12.480 +        <pathconvert pathsep=" " property="jar.classpath">
  12.481 +            <path path="${run.classpath.without.build.classes.dir}"/>
  12.482 +            <chainedmapper>
  12.483 +                <flattenmapper/>
  12.484 +                <globmapper from="*" to="lib/*"/>
  12.485 +            </chainedmapper>
  12.486 +        </pathconvert>
  12.487 +        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
  12.488 +        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
  12.489 +            <fileset dir="${build.classes.dir}"/>
  12.490 +            <manifest>
  12.491 +                <attribute name="Main-Class" value="${main.class}"/>
  12.492 +                <attribute name="Class-Path" value="${jar.classpath}"/>
  12.493 +            </manifest>
  12.494 +        </copylibs>
  12.495 +        <echo>To run this application from the command line without Ant, try:</echo>
  12.496 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
  12.497 +        <echo>java -jar "${dist.jar.resolved}"</echo>
  12.498 +    </target>
  12.499 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+mkdist.available" name="-do-jar-with-libraries-without-mainclass" unless="main.class.available">
  12.500 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  12.501 +        <pathconvert property="run.classpath.without.build.classes.dir">
  12.502 +            <path path="${run.classpath}"/>
  12.503 +            <map from="${build.classes.dir.resolved}" to=""/>
  12.504 +        </pathconvert>
  12.505 +        <pathconvert pathsep=" " property="jar.classpath">
  12.506 +            <path path="${run.classpath.without.build.classes.dir}"/>
  12.507 +            <chainedmapper>
  12.508 +                <flattenmapper/>
  12.509 +                <globmapper from="*" to="lib/*"/>
  12.510 +            </chainedmapper>
  12.511 +        </pathconvert>
  12.512 +        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
  12.513 +        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
  12.514 +            <fileset dir="${build.classes.dir}"/>
  12.515 +            <manifest>
  12.516 +                <attribute name="Class-Path" value="${jar.classpath}"/>
  12.517 +            </manifest>
  12.518 +        </copylibs>
  12.519 +    </target>
  12.520 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.mkdist" name="-do-jar-with-libraries-without-manifest" unless="manifest.available">
  12.521 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  12.522 +        <pathconvert property="run.classpath.without.build.classes.dir">
  12.523 +            <path path="${run.classpath}"/>
  12.524 +            <map from="${build.classes.dir.resolved}" to=""/>
  12.525 +        </pathconvert>
  12.526 +        <pathconvert pathsep=" " property="jar.classpath">
  12.527 +            <path path="${run.classpath.without.build.classes.dir}"/>
  12.528 +            <chainedmapper>
  12.529 +                <flattenmapper/>
  12.530 +                <globmapper from="*" to="lib/*"/>
  12.531 +            </chainedmapper>
  12.532 +        </pathconvert>
  12.533 +        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
  12.534 +        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
  12.535 +            <fileset dir="${build.classes.dir}"/>
  12.536 +            <manifest>
  12.537 +                <attribute name="Class-Path" value="${jar.classpath}"/>
  12.538 +            </manifest>
  12.539 +        </copylibs>
  12.540 +    </target>
  12.541 +    <target name="-post-jar">
  12.542 +        <!-- Empty placeholder for easier customization. -->
  12.543 +        <!-- You can override this target in the ../build.xml file. -->
  12.544 +    </target>
  12.545 +    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-jar-with-libraries-without-mainclass,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/>
  12.546 +    <!--
  12.547 +                =================
  12.548 +                EXECUTION SECTION
  12.549 +                =================
  12.550 +            -->
  12.551 +    <target depends="init,compile" description="Run a main class." name="run">
  12.552 +        <j2seproject1:java>
  12.553 +            <customize>
  12.554 +                <arg line="${application.args}"/>
  12.555 +            </customize>
  12.556 +        </j2seproject1:java>
  12.557 +    </target>
  12.558 +    <target name="-do-not-recompile">
  12.559 +        <property name="javac.includes.binary" value=""/>
  12.560 +    </target>
  12.561 +    <target depends="init,compile-single" name="run-single">
  12.562 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  12.563 +        <j2seproject1:java classname="${run.class}"/>
  12.564 +    </target>
  12.565 +    <target depends="init,compile-test-single" name="run-test-with-main">
  12.566 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  12.567 +        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  12.568 +    </target>
  12.569 +    <!--
  12.570 +                =================
  12.571 +                DEBUGGING SECTION
  12.572 +                =================
  12.573 +            -->
  12.574 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  12.575 +        <j2seproject1:nbjpdastart name="${debug.class}"/>
  12.576 +    </target>
  12.577 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  12.578 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  12.579 +    </target>
  12.580 +    <target depends="init,compile" name="-debug-start-debuggee">
  12.581 +        <j2seproject3:debug>
  12.582 +            <customize>
  12.583 +                <arg line="${application.args}"/>
  12.584 +            </customize>
  12.585 +        </j2seproject3:debug>
  12.586 +    </target>
  12.587 +    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
  12.588 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
  12.589 +        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
  12.590 +    </target>
  12.591 +    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
  12.592 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  12.593 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  12.594 +        <j2seproject3:debug classname="${debug.class}"/>
  12.595 +    </target>
  12.596 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
  12.597 +    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  12.598 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  12.599 +        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  12.600 +    </target>
  12.601 +    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  12.602 +    <target depends="init" name="-pre-debug-fix">
  12.603 +        <fail unless="fix.includes">Must set fix.includes</fail>
  12.604 +        <property name="javac.includes" value="${fix.includes}.java"/>
  12.605 +    </target>
  12.606 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  12.607 +        <j2seproject1:nbjpdareload/>
  12.608 +    </target>
  12.609 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  12.610 +    <!--
  12.611 +                ===============
  12.612 +                JAVADOC SECTION
  12.613 +                ===============
  12.614 +            -->
  12.615 +    <target depends="init" name="-javadoc-build">
  12.616 +        <mkdir dir="${dist.javadoc.dir}"/>
  12.617 +        <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}">
  12.618 +            <classpath>
  12.619 +                <path path="${javac.classpath}"/>
  12.620 +            </classpath>
  12.621 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  12.622 +                <filename name="**/*.java"/>
  12.623 +            </fileset>
  12.624 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  12.625 +                <include name="**/*.java"/>
  12.626 +            </fileset>
  12.627 +        </javadoc>
  12.628 +    </target>
  12.629 +    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
  12.630 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  12.631 +    </target>
  12.632 +    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
  12.633 +    <!--
  12.634 +                =========================
  12.635 +                JUNIT COMPILATION SECTION
  12.636 +                =========================
  12.637 +            -->
  12.638 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  12.639 +        <mkdir dir="${build.test.classes.dir}"/>
  12.640 +    </target>
  12.641 +    <target name="-pre-compile-test">
  12.642 +        <!-- Empty placeholder for easier customization. -->
  12.643 +        <!-- You can override this target in the ../build.xml file. -->
  12.644 +    </target>
  12.645 +    <target if="do.depend.true" name="-compile-test-depend">
  12.646 +        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  12.647 +    </target>
  12.648 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
  12.649 +        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  12.650 +        <copy todir="${build.test.classes.dir}">
  12.651 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  12.652 +        </copy>
  12.653 +    </target>
  12.654 +    <target name="-post-compile-test">
  12.655 +        <!-- Empty placeholder for easier customization. -->
  12.656 +        <!-- You can override this target in the ../build.xml file. -->
  12.657 +    </target>
  12.658 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  12.659 +    <target name="-pre-compile-test-single">
  12.660 +        <!-- Empty placeholder for easier customization. -->
  12.661 +        <!-- You can override this target in the ../build.xml file. -->
  12.662 +    </target>
  12.663 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  12.664 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  12.665 +        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
  12.666 +        <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}"/>
  12.667 +        <copy todir="${build.test.classes.dir}">
  12.668 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  12.669 +        </copy>
  12.670 +    </target>
  12.671 +    <target name="-post-compile-test-single">
  12.672 +        <!-- Empty placeholder for easier customization. -->
  12.673 +        <!-- You can override this target in the ../build.xml file. -->
  12.674 +    </target>
  12.675 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  12.676 +    <!--
  12.677 +                =======================
  12.678 +                JUNIT EXECUTION SECTION
  12.679 +                =======================
  12.680 +            -->
  12.681 +    <target depends="init" if="have.tests" name="-pre-test-run">
  12.682 +        <mkdir dir="${build.test.results.dir}"/>
  12.683 +    </target>
  12.684 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  12.685 +        <j2seproject3:junit testincludes="**/*Test.java"/>
  12.686 +    </target>
  12.687 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  12.688 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  12.689 +    </target>
  12.690 +    <target depends="init" if="have.tests" name="test-report"/>
  12.691 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  12.692 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  12.693 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
  12.694 +        <mkdir dir="${build.test.results.dir}"/>
  12.695 +    </target>
  12.696 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  12.697 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  12.698 +        <j2seproject3:junit excludes="" includes="${test.includes}"/>
  12.699 +    </target>
  12.700 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  12.701 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  12.702 +    </target>
  12.703 +    <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"/>
  12.704 +    <!--
  12.705 +                =======================
  12.706 +                JUNIT DEBUGGING SECTION
  12.707 +                =======================
  12.708 +            -->
  12.709 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
  12.710 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  12.711 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
  12.712 +        <delete file="${test.report.file}"/>
  12.713 +        <mkdir dir="${build.test.results.dir}"/>
  12.714 +        <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}">
  12.715 +            <customize>
  12.716 +                <syspropertyset>
  12.717 +                    <propertyref prefix="test-sys-prop."/>
  12.718 +                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
  12.719 +                </syspropertyset>
  12.720 +                <arg value="${test.class}"/>
  12.721 +                <arg value="showoutput=true"/>
  12.722 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
  12.723 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
  12.724 +            </customize>
  12.725 +        </j2seproject3:debug>
  12.726 +    </target>
  12.727 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  12.728 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  12.729 +    </target>
  12.730 +    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  12.731 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  12.732 +        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  12.733 +    </target>
  12.734 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  12.735 +    <!--
  12.736 +                =========================
  12.737 +                APPLET EXECUTION SECTION
  12.738 +                =========================
  12.739 +            -->
  12.740 +    <target depends="init,compile-single" name="run-applet">
  12.741 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  12.742 +        <j2seproject1:java classname="sun.applet.AppletViewer">
  12.743 +            <customize>
  12.744 +                <arg value="${applet.url}"/>
  12.745 +            </customize>
  12.746 +        </j2seproject1:java>
  12.747 +    </target>
  12.748 +    <!--
  12.749 +                =========================
  12.750 +                APPLET DEBUGGING  SECTION
  12.751 +                =========================
  12.752 +            -->
  12.753 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
  12.754 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  12.755 +        <j2seproject3:debug classname="sun.applet.AppletViewer">
  12.756 +            <customize>
  12.757 +                <arg value="${applet.url}"/>
  12.758 +            </customize>
  12.759 +        </j2seproject3:debug>
  12.760 +    </target>
  12.761 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
  12.762 +    <!--
  12.763 +                ===============
  12.764 +                CLEANUP SECTION
  12.765 +                ===============
  12.766 +            -->
  12.767 +    <target name="-deps-clean-init" unless="built-clean.properties">
  12.768 +        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
  12.769 +        <delete file="${built-clean.properties}" quiet="true"/>
  12.770 +    </target>
  12.771 +    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
  12.772 +        <echo level="warn" message="Cycle detected: SpringDemo1-lib was already built"/>
  12.773 +    </target>
  12.774 +    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
  12.775 +        <mkdir dir="${build.dir}"/>
  12.776 +        <touch file="${built-clean.properties}" verbose="false"/>
  12.777 +        <property file="${built-clean.properties}" prefix="already.built.clean."/>
  12.778 +        <antcall target="-warn-already-built-clean"/>
  12.779 +        <propertyfile file="${built-clean.properties}">
  12.780 +            <entry key="${basedir}" value=""/>
  12.781 +        </propertyfile>
  12.782 +    </target>
  12.783 +    <target depends="init" name="-do-clean">
  12.784 +        <delete dir="${build.dir}"/>
  12.785 +        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
  12.786 +    </target>
  12.787 +    <target name="-post-clean">
  12.788 +        <!-- Empty placeholder for easier customization. -->
  12.789 +        <!-- You can override this target in the ../build.xml file. -->
  12.790 +    </target>
  12.791 +    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
  12.792 +    <target name="-check-call-dep">
  12.793 +        <property file="${call.built.properties}" prefix="already.built."/>
  12.794 +        <condition property="should.call.dep">
  12.795 +            <not>
  12.796 +                <isset property="already.built.${call.subproject}"/>
  12.797 +            </not>
  12.798 +        </condition>
  12.799 +    </target>
  12.800 +    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
  12.801 +        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
  12.802 +            <propertyset>
  12.803 +                <propertyref prefix="transfer."/>
  12.804 +                <mapper from="transfer.*" to="*" type="glob"/>
  12.805 +            </propertyset>
  12.806 +        </ant>
  12.807 +    </target>
  12.808 +</project>
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/java/SpringDemo1/SpringDemo1-lib/nbproject/genfiles.properties	Wed Feb 10 20:55:08 2010 +0100
    13.3 @@ -0,0 +1,8 @@
    13.4 +build.xml.data.CRC32=ebdd84f9
    13.5 +build.xml.script.CRC32=36f04480
    13.6 +build.xml.stylesheet.CRC32=958a1d3e@1.32.1.45
    13.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
    13.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    13.9 +nbproject/build-impl.xml.data.CRC32=ebdd84f9
   13.10 +nbproject/build-impl.xml.script.CRC32=000da4e6
   13.11 +nbproject/build-impl.xml.stylesheet.CRC32=576378a2@1.32.1.45
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/java/SpringDemo1/SpringDemo1-lib/nbproject/project.properties	Wed Feb 10 20:55:08 2010 +0100
    14.3 @@ -0,0 +1,61 @@
    14.4 +build.classes.dir=${build.dir}/classes
    14.5 +build.classes.excludes=**/*.java,**/*.form
    14.6 +# This directory is removed when the project is cleaned:
    14.7 +build.dir=build
    14.8 +build.generated.dir=${build.dir}/generated
    14.9 +build.generated.sources.dir=${build.dir}/generated-sources
   14.10 +# Only compile against the classpath explicitly listed here:
   14.11 +build.sysclasspath=ignore
   14.12 +build.test.classes.dir=${build.dir}/test/classes
   14.13 +build.test.results.dir=${build.dir}/test/results
   14.14 +# Uncomment to specify the preferred debugger connection transport:
   14.15 +#debug.transport=dt_socket
   14.16 +debug.classpath=\
   14.17 +    ${run.classpath}
   14.18 +debug.test.classpath=\
   14.19 +    ${run.test.classpath}
   14.20 +# This directory is removed when the project is cleaned:
   14.21 +dist.dir=dist
   14.22 +dist.jar=${dist.dir}/SpringDemo1-lib.jar
   14.23 +dist.javadoc.dir=${dist.dir}/javadoc
   14.24 +excludes=
   14.25 +includes=**
   14.26 +jar.compress=false
   14.27 +javac.classpath=\
   14.28 +    ${libs.JavaEE.classpath}
   14.29 +# Space-separated list of extra javac options
   14.30 +javac.compilerargs=
   14.31 +javac.deprecation=false
   14.32 +javac.source=1.5
   14.33 +javac.target=1.5
   14.34 +javac.test.classpath=\
   14.35 +    ${javac.classpath}:\
   14.36 +    ${build.classes.dir}:\
   14.37 +    ${libs.junit.classpath}:\
   14.38 +    ${libs.junit_4.classpath}
   14.39 +javadoc.additionalparam=
   14.40 +javadoc.author=false
   14.41 +javadoc.encoding=${source.encoding}
   14.42 +javadoc.noindex=false
   14.43 +javadoc.nonavbar=false
   14.44 +javadoc.notree=false
   14.45 +javadoc.private=false
   14.46 +javadoc.splitindex=true
   14.47 +javadoc.use=true
   14.48 +javadoc.version=false
   14.49 +javadoc.windowtitle=
   14.50 +meta.inf.dir=${src.dir}/META-INF
   14.51 +platform.active=default_platform
   14.52 +run.classpath=\
   14.53 +    ${javac.classpath}:\
   14.54 +    ${build.classes.dir}
   14.55 +# Space-separated list of JVM arguments used when running the project
   14.56 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
   14.57 +# or test-sys-prop.name=value to set system properties for unit tests):
   14.58 +run.jvmargs=
   14.59 +run.test.classpath=\
   14.60 +    ${javac.test.classpath}:\
   14.61 +    ${build.test.classes.dir}
   14.62 +source.encoding=UTF-8
   14.63 +src.dir=src
   14.64 +test.src.dir=test
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/java/SpringDemo1/SpringDemo1-lib/nbproject/project.xml	Wed Feb 10 20:55:08 2010 +0100
    15.3 @@ -0,0 +1,15 @@
    15.4 +<?xml version="1.0" encoding="UTF-8"?>
    15.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
    15.6 +    <type>org.netbeans.modules.java.j2seproject</type>
    15.7 +    <configuration>
    15.8 +        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
    15.9 +            <name>SpringDemo1-lib</name>
   15.10 +            <source-roots>
   15.11 +                <root id="src.dir"/>
   15.12 +            </source-roots>
   15.13 +            <test-roots>
   15.14 +                <root id="test.src.dir"/>
   15.15 +            </test-roots>
   15.16 +        </data>
   15.17 +    </configuration>
   15.18 +</project>
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/java/SpringDemo1/SpringDemo1-war/nbproject/ant-deploy.xml	Wed Feb 10 20:55:08 2010 +0100
    16.3 @@ -0,0 +1,60 @@
    16.4 +<?xml version="1.0" encoding="UTF-8"?>
    16.5 +<project default="-deploy-ant" basedir=".">
    16.6 +    <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
    16.7 +        <property file="${deploy.ant.properties.file}" />
    16.8 +        <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
    16.9 +        <available file="${deploy.ant.resource.dir}" property="has.setup"/>
   16.10 +        <tempfile prefix="gfv3" property="gfv3.password.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   16.11 +        <echo message="AS_ADMIN_PASSWORD=${gfv3.password}" file="${gfv3.password.file}"/>
   16.12 +    </target>
   16.13 +    
   16.14 +    <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
   16.15 +        <tempfile prefix="gfv3" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
   16.16 +        <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
   16.17 +        <!-- The doctype triggers resolution which can fail -->
   16.18 +        <replace file="${temp.sun.web}">
   16.19 +            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
   16.20 +            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
   16.21 +        </replace>
   16.22 +        <replace file="${temp.sun.web}">
   16.23 +            <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
   16.24 +            <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
   16.25 +        </replace>
   16.26 +        <xmlproperty file="${temp.sun.web}" validate="false">
   16.27 +        </xmlproperty>    
   16.28 +        <delete file="${temp.sun.web}"/>
   16.29 +        <property name="deploy.ant.client.url" value="${gfv3.url}${sun-web-app.context-root}"/>
   16.30 +        <property name="deploy.context.root.argument" value="?contextroot=${sun-web-app.context-root}"/>
   16.31 +    </target>
   16.32 +    <target name="-no-parse-sun-web" depends="-init-cl-deployment-env" unless="sun.web.present">
   16.33 +        <property name="deploy.context.root.argument" value=""/>
   16.34 +    </target>
   16.35 +    <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
   16.36 +        <tempfile prefix="gfv3" property="gfv3.resources.dir" destdir="${java.io.tmpdir}"/>
   16.37 +        <mkdir dir="${gfv3.resources.dir}"/>
   16.38 +        <mkdir dir="${gfv3.resources.dir}/META-INF"/>
   16.39 +        <property name="gfv3.resources.file" value="${gfv3.resources.dir}/META-INF/sun-resources.xml"/>
   16.40 +        <copy todir="${gfv3.resources.dir}/META-INF">
   16.41 +            <fileset dir="${deploy.ant.resource.dir}"/>
   16.42 +        </copy>
   16.43 +        <jar destfile="${deploy.ant.archive}" update="true">
   16.44 +            <fileset dir="${gfv3.resources.dir}"/>
   16.45 +        </jar>
   16.46 +        <delete dir="${gfv3.resources.dir}"/>
   16.47 +    </target>
   16.48 +    <target name="-deploy-ant" depends="-parse-sun-web,-no-parse-sun-web,-add-resources" if="deploy.ant.enabled">
   16.49 +        <echo message="Deploying ${deploy.ant.archive}"/>
   16.50 +        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   16.51 +        <property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
   16.52 +        <get src="${gfv3.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}?force=true?name=${ant.project.name}"
   16.53 +            dest="${gfv3.results.file}"/>
   16.54 +        <delete file="${gfv3.results.file}"/>    
   16.55 +    </target>
   16.56 +    <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
   16.57 +        <echo message="Undeploying ${deploy.ant.archive}"/>
   16.58 +        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   16.59 +        <get src="${gfv3.url}/__asadmin/undeploy?name=${ant.project.name}"
   16.60 +            dest="${gfv3.results.file}"/>
   16.61 +        <delete file="${gfv3.results.file}"/>    
   16.62 +    </target>
   16.63 +</project>
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/java/SpringDemo1/SpringDemo1-war/nbproject/build-impl.xml	Wed Feb 10 20:55:08 2010 +0100
    17.3 @@ -0,0 +1,875 @@
    17.4 +<?xml version="1.0" encoding="UTF-8"?>
    17.5 +<!--
    17.6 +        *** GENERATED FROM project.xml - DO NOT EDIT  ***
    17.7 +        ***         EDIT ../build.xml INSTEAD         ***
    17.8 +
    17.9 +        For the purpose of easier reading the script
   17.10 +        is divided into following sections:
   17.11 +        - initialization
   17.12 +        - compilation
   17.13 +        - dist
   17.14 +        - execution
   17.15 +        - debugging
   17.16 +        - javadoc
   17.17 +        - junit compilation
   17.18 +        - junit execution
   17.19 +        - junit debugging
   17.20 +        - cleanup
   17.21 +
   17.22 +        -->
   17.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="SpringDemo1-war-impl">
   17.24 +    <import file="ant-deploy.xml"/>
   17.25 +    <fail message="Please build using Ant 1.7.1 or higher.">
   17.26 +        <condition>
   17.27 +            <not>
   17.28 +                <antversion atleast="1.7.1"/>
   17.29 +            </not>
   17.30 +        </condition>
   17.31 +    </fail>
   17.32 +    <target depends="dist,javadoc" description="Build whole project." name="default"/>
   17.33 +    <!--
   17.34 +                INITIALIZATION SECTION
   17.35 +            -->
   17.36 +    <target name="-pre-init">
   17.37 +        <!-- Empty placeholder for easier customization. -->
   17.38 +        <!-- You can override this target in the ../build.xml file. -->
   17.39 +    </target>
   17.40 +    <target depends="-pre-init" name="-init-private">
   17.41 +        <property file="nbproject/private/private.properties"/>
   17.42 +    </target>
   17.43 +    <target depends="-pre-init,-init-private" name="-init-user">
   17.44 +        <property file="${user.properties.file}"/>
   17.45 +        <!-- The two properties below are usually overridden -->
   17.46 +        <!-- by the active platform. Just a fallback. -->
   17.47 +        <property name="default.javac.source" value="1.4"/>
   17.48 +        <property name="default.javac.target" value="1.4"/>
   17.49 +    </target>
   17.50 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
   17.51 +        <property file="nbproject/project.properties"/>
   17.52 +    </target>
   17.53 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
   17.54 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
   17.55 +        <condition property="have.tests">
   17.56 +            <or>
   17.57 +                <available file="${test.src.dir}"/>
   17.58 +            </or>
   17.59 +        </condition>
   17.60 +        <condition property="have.sources">
   17.61 +            <or>
   17.62 +                <available file="${src.dir}"/>
   17.63 +            </or>
   17.64 +        </condition>
   17.65 +        <condition property="netbeans.home+have.tests">
   17.66 +            <and>
   17.67 +                <isset property="netbeans.home"/>
   17.68 +                <isset property="have.tests"/>
   17.69 +            </and>
   17.70 +        </condition>
   17.71 +        <condition property="no.javadoc.preview">
   17.72 +            <isfalse value="${javadoc.preview}"/>
   17.73 +        </condition>
   17.74 +        <property name="javac.compilerargs" value=""/>
   17.75 +        <condition property="no.deps">
   17.76 +            <and>
   17.77 +                <istrue value="${no.dependencies}"/>
   17.78 +            </and>
   17.79 +        </condition>
   17.80 +        <condition property="no.dist.ear.dir">
   17.81 +            <not>
   17.82 +                <isset property="dist.ear.dir"/>
   17.83 +            </not>
   17.84 +        </condition>
   17.85 +        <property name="build.web.excludes" value="${build.classes.excludes}"/>
   17.86 +        <condition property="do.compile.jsps">
   17.87 +            <istrue value="${compile.jsps}"/>
   17.88 +        </condition>
   17.89 +        <condition property="do.debug.server">
   17.90 +            <or>
   17.91 +                <not>
   17.92 +                    <isset property="debug.server"/>
   17.93 +                </not>
   17.94 +                <istrue value="${debug.server}"/>
   17.95 +                <and>
   17.96 +                    <not>
   17.97 +                        <istrue value="${debug.server}"/>
   17.98 +                    </not>
   17.99 +                    <not>
  17.100 +                        <istrue value="${debug.client}"/>
  17.101 +                    </not>
  17.102 +                </and>
  17.103 +            </or>
  17.104 +        </condition>
  17.105 +        <condition property="do.debug.client">
  17.106 +            <istrue value="${debug.client}"/>
  17.107 +        </condition>
  17.108 +        <condition property="do.display.browser">
  17.109 +            <istrue value="${display.browser}"/>
  17.110 +        </condition>
  17.111 +        <condition property="do.display.browser.debug">
  17.112 +            <and>
  17.113 +                <isset property="do.display.browser"/>
  17.114 +                <not>
  17.115 +                    <isset property="do.debug.client"/>
  17.116 +                </not>
  17.117 +            </and>
  17.118 +        </condition>
  17.119 +        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
  17.120 +        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
  17.121 +        <condition property="do.war.package.with.custom.manifest">
  17.122 +            <isset property="has.custom.manifest"/>
  17.123 +        </condition>
  17.124 +        <condition property="do.war.package.without.custom.manifest">
  17.125 +            <not>
  17.126 +                <isset property="has.custom.manifest"/>
  17.127 +            </not>
  17.128 +        </condition>
  17.129 +        <condition property="do.tmp.war.package.with.custom.manifest">
  17.130 +            <and>
  17.131 +                <isset property="has.custom.manifest"/>
  17.132 +                <or>
  17.133 +                    <isfalse value="${directory.deployment.supported}"/>
  17.134 +                    <isset property="dist.ear.dir"/>
  17.135 +                </or>
  17.136 +            </and>
  17.137 +        </condition>
  17.138 +        <condition property="do.tmp.war.package.without.custom.manifest">
  17.139 +            <and>
  17.140 +                <not>
  17.141 +                    <isset property="has.custom.manifest"/>
  17.142 +                </not>
  17.143 +                <or>
  17.144 +                    <isfalse value="${directory.deployment.supported}"/>
  17.145 +                    <isset property="dist.ear.dir"/>
  17.146 +                </or>
  17.147 +            </and>
  17.148 +        </condition>
  17.149 +        <condition property="do.tmp.war.package">
  17.150 +            <or>
  17.151 +                <isfalse value="${directory.deployment.supported}"/>
  17.152 +                <isset property="dist.ear.dir"/>
  17.153 +            </or>
  17.154 +        </condition>
  17.155 +        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
  17.156 +        <condition else="" property="application.args.param" value="${application.args}">
  17.157 +            <and>
  17.158 +                <isset property="application.args"/>
  17.159 +                <not>
  17.160 +                    <equals arg1="${application.args}" arg2="" trim="true"/>
  17.161 +                </not>
  17.162 +            </and>
  17.163 +        </condition>
  17.164 +        <property name="source.encoding" value="${file.encoding}"/>
  17.165 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  17.166 +            <and>
  17.167 +                <isset property="javadoc.encoding"/>
  17.168 +                <not>
  17.169 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
  17.170 +                </not>
  17.171 +            </and>
  17.172 +        </condition>
  17.173 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
  17.174 +        <property name="includes" value="**"/>
  17.175 +        <property name="excludes" value=""/>
  17.176 +        <property name="runmain.jvmargs" value=""/>
  17.177 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
  17.178 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
  17.179 +            <length length="0" string="${endorsed.classpath}" when="greater"/>
  17.180 +        </condition>
  17.181 +    </target>
  17.182 +    <target depends="init" name="-init-cos" unless="deploy.on.save">
  17.183 +        <condition property="deploy.on.save" value="true">
  17.184 +            <istrue value="${j2ee.deploy.on.save}"/>
  17.185 +        </condition>
  17.186 +    </target>
  17.187 +    <target name="-post-init">
  17.188 +        <!-- Empty placeholder for easier customization. -->
  17.189 +        <!-- You can override this target in the ../build.xml file. -->
  17.190 +    </target>
  17.191 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  17.192 +        <fail unless="src.dir">Must set src.dir</fail>
  17.193 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
  17.194 +        <fail unless="build.dir">Must set build.dir</fail>
  17.195 +        <fail unless="build.web.dir">Must set build.web.dir</fail>
  17.196 +        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
  17.197 +        <fail unless="dist.dir">Must set dist.dir</fail>
  17.198 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  17.199 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  17.200 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  17.201 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  17.202 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  17.203 +        <fail unless="dist.war">Must set dist.war</fail>
  17.204 +        <fail unless="j2ee.platform.classpath">
  17.205 +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
  17.206 +Either open the project in the IDE and assign the server or setup the server classpath manually.
  17.207 +For example like this:
  17.208 +   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
  17.209 +or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
  17.210 +                </fail>
  17.211 +    </target>
  17.212 +    <target name="-init-macrodef-property">
  17.213 +        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
  17.214 +            <attribute name="name"/>
  17.215 +            <attribute name="value"/>
  17.216 +            <sequential>
  17.217 +                <property name="@{name}" value="${@{value}}"/>
  17.218 +            </sequential>
  17.219 +        </macrodef>
  17.220 +    </target>
  17.221 +    <target name="-init-macrodef-javac">
  17.222 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
  17.223 +            <attribute default="${src.dir}" name="srcdir"/>
  17.224 +            <attribute default="${build.classes.dir}" name="destdir"/>
  17.225 +            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  17.226 +            <attribute default="${includes}" name="includes"/>
  17.227 +            <attribute default="${excludes}" name="excludes"/>
  17.228 +            <attribute default="${javac.debug}" name="debug"/>
  17.229 +            <attribute default="${empty.dir}" name="gensrcdir"/>
  17.230 +            <element name="customize" optional="true"/>
  17.231 +            <sequential>
  17.232 +                <property location="${build.dir}/empty" name="empty.dir"/>
  17.233 +                <mkdir dir="${empty.dir}"/>
  17.234 +                <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}">
  17.235 +                    <src>
  17.236 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  17.237 +                            <include name="*"/>
  17.238 +                        </dirset>
  17.239 +                    </src>
  17.240 +                    <classpath>
  17.241 +                        <path path="@{classpath}"/>
  17.242 +                    </classpath>
  17.243 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  17.244 +                    <compilerarg line="${javac.compilerargs}"/>
  17.245 +                    <customize/>
  17.246 +                </javac>
  17.247 +            </sequential>
  17.248 +        </macrodef>
  17.249 +    </target>
  17.250 +    <target name="-init-macrodef-junit">
  17.251 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
  17.252 +            <attribute default="${includes}" name="includes"/>
  17.253 +            <attribute default="${excludes}" name="excludes"/>
  17.254 +            <attribute default="**" name="testincludes"/>
  17.255 +            <sequential>
  17.256 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
  17.257 +                    <batchtest todir="${build.test.results.dir}">
  17.258 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  17.259 +                            <filename name="@{testincludes}"/>
  17.260 +                        </fileset>
  17.261 +                    </batchtest>
  17.262 +                    <classpath>
  17.263 +                        <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
  17.264 +                    </classpath>
  17.265 +                    <syspropertyset>
  17.266 +                        <propertyref prefix="test-sys-prop."/>
  17.267 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  17.268 +                    </syspropertyset>
  17.269 +                    <formatter type="brief" usefile="false"/>
  17.270 +                    <formatter type="xml"/>
  17.271 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  17.272 +                    <jvmarg line="${runmain.jvmargs}"/>
  17.273 +                </junit>
  17.274 +            </sequential>
  17.275 +        </macrodef>
  17.276 +    </target>
  17.277 +    <target name="-init-macrodef-java">
  17.278 +        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
  17.279 +            <attribute default="${main.class}" name="classname"/>
  17.280 +            <attribute default="${debug.classpath}" name="classpath"/>
  17.281 +            <element name="customize" optional="true"/>
  17.282 +            <sequential>
  17.283 +                <java classname="@{classname}" fork="true">
  17.284 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  17.285 +                    <jvmarg line="${runmain.jvmargs}"/>
  17.286 +                    <classpath>
  17.287 +                        <path path="@{classpath}:${j2ee.platform.classpath}"/>
  17.288 +                    </classpath>
  17.289 +                    <syspropertyset>
  17.290 +                        <propertyref prefix="run-sys-prop."/>
  17.291 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  17.292 +                    </syspropertyset>
  17.293 +                    <customize/>
  17.294 +                </java>
  17.295 +            </sequential>
  17.296 +        </macrodef>
  17.297 +    </target>
  17.298 +    <target name="-init-macrodef-nbjsdebug">
  17.299 +        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
  17.300 +            <attribute default="${client.url}" name="webUrl"/>
  17.301 +            <sequential>
  17.302 +                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
  17.303 +            </sequential>
  17.304 +        </macrodef>
  17.305 +    </target>
  17.306 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  17.307 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
  17.308 +            <attribute default="${main.class}" name="name"/>
  17.309 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  17.310 +            <sequential>
  17.311 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
  17.312 +                    <classpath>
  17.313 +                        <path path="@{classpath}"/>
  17.314 +                    </classpath>
  17.315 +                </nbjpdastart>
  17.316 +            </sequential>
  17.317 +        </macrodef>
  17.318 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
  17.319 +            <attribute default="${build.classes.dir}" name="dir"/>
  17.320 +            <sequential>
  17.321 +                <nbjpdareload>
  17.322 +                    <fileset dir="@{dir}" includes="${fix.classes}">
  17.323 +                        <include name="${fix.includes}*.class"/>
  17.324 +                    </fileset>
  17.325 +                </nbjpdareload>
  17.326 +            </sequential>
  17.327 +        </macrodef>
  17.328 +        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
  17.329 +            <sequential>
  17.330 +                <nbjpdaappreloaded/>
  17.331 +            </sequential>
  17.332 +        </macrodef>
  17.333 +    </target>
  17.334 +    <target name="-init-debug-args">
  17.335 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
  17.336 +        <condition property="have-jdk-older-than-1.4">
  17.337 +            <or>
  17.338 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
  17.339 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
  17.340 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
  17.341 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
  17.342 +            </or>
  17.343 +        </condition>
  17.344 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  17.345 +            <istrue value="${have-jdk-older-than-1.4}"/>
  17.346 +        </condition>
  17.347 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  17.348 +            <os family="windows"/>
  17.349 +        </condition>
  17.350 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  17.351 +            <isset property="debug.transport"/>
  17.352 +        </condition>
  17.353 +    </target>
  17.354 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
  17.355 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
  17.356 +            <attribute default="${main.class}" name="classname"/>
  17.357 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  17.358 +            <attribute default="${application.args.param}" name="args"/>
  17.359 +            <element name="customize" optional="true"/>
  17.360 +            <sequential>
  17.361 +                <java classname="@{classname}" fork="true">
  17.362 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  17.363 +                    <jvmarg line="${debug-args-line}"/>
  17.364 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  17.365 +                    <jvmarg line="${runmain.jvmargs}"/>
  17.366 +                    <classpath>
  17.367 +                        <path path="@{classpath}"/>
  17.368 +                    </classpath>
  17.369 +                    <syspropertyset>
  17.370 +                        <propertyref prefix="run-sys-prop."/>
  17.371 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  17.372 +                    </syspropertyset>
  17.373 +                    <arg line="@{args}"/>
  17.374 +                    <customize/>
  17.375 +                </java>
  17.376 +            </sequential>
  17.377 +        </macrodef>
  17.378 +    </target>
  17.379 +    <target name="-init-taskdefs">
  17.380 +        <fail unless="libs.CopyLibs.classpath">
  17.381 +The libs.CopyLibs.classpath property is not set up.
  17.382 +This property must point to 
  17.383 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
  17.384 +of NetBeans IDE installation and is usually located at 
  17.385 +&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
  17.386 +Either open the project in the IDE and make sure CopyLibs library
  17.387 +exists or setup the property manually. For example like this:
  17.388 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
  17.389 +                </fail>
  17.390 +        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
  17.391 +    </target>
  17.392 +    <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"/>
  17.393 +    <!--
  17.394 +                COMPILATION SECTION
  17.395 +            -->
  17.396 +    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
  17.397 +        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="dist"/>
  17.398 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
  17.399 +            <property name="deploy.on.save" value="false"/>
  17.400 +        </ant>
  17.401 +    </target>
  17.402 +    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
  17.403 +        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="dist-ear">
  17.404 +            <property location="${build.dir}" name="dist.ear.dir"/>
  17.405 +        </ant>
  17.406 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
  17.407 +            <property name="deploy.on.save" value="false"/>
  17.408 +        </ant>
  17.409 +    </target>
  17.410 +    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
  17.411 +    <target depends="init,deps-jar" name="-pre-pre-compile">
  17.412 +        <mkdir dir="${build.classes.dir}"/>
  17.413 +    </target>
  17.414 +    <target name="-pre-compile">
  17.415 +        <!-- Empty placeholder for easier customization. -->
  17.416 +        <!-- You can override this target in the ../build.xml file. -->
  17.417 +    </target>
  17.418 +    <target name="-copy-webdir">
  17.419 +        <copy todir="${build.web.dir}">
  17.420 +            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
  17.421 +        </copy>
  17.422 +        <copy todir="${build.web.dir}/WEB-INF">
  17.423 +            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
  17.424 +        </copy>
  17.425 +    </target>
  17.426 +    <target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest" if="have.sources" name="-do-compile">
  17.427 +        <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
  17.428 +        <copy todir="${build.classes.dir}">
  17.429 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  17.430 +        </copy>
  17.431 +    </target>
  17.432 +    <target if="has.custom.manifest" name="-copy-manifest">
  17.433 +        <mkdir dir="${build.meta.inf.dir}"/>
  17.434 +        <copy todir="${build.meta.inf.dir}">
  17.435 +            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
  17.436 +        </copy>
  17.437 +    </target>
  17.438 +    <target if="has.persistence.xml" name="-copy-persistence-xml">
  17.439 +        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
  17.440 +        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
  17.441 +            <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
  17.442 +        </copy>
  17.443 +    </target>
  17.444 +    <target name="-post-compile">
  17.445 +        <!-- Empty placeholder for easier customization. -->
  17.446 +        <!-- You can override this target in the ../build.xml file. -->
  17.447 +    </target>
  17.448 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  17.449 +    <target name="-pre-compile-single">
  17.450 +        <!-- Empty placeholder for easier customization. -->
  17.451 +        <!-- You can override this target in the ../build.xml file. -->
  17.452 +    </target>
  17.453 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  17.454 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  17.455 +        <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
  17.456 +        <copy todir="${build.classes.dir}">
  17.457 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  17.458 +        </copy>
  17.459 +    </target>
  17.460 +    <target name="-post-compile-single">
  17.461 +        <!-- Empty placeholder for easier customization. -->
  17.462 +        <!-- You can override this target in the ../build.xml file. -->
  17.463 +    </target>
  17.464 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  17.465 +    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
  17.466 +        <mkdir dir="${build.generated.dir}/src"/>
  17.467 +        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
  17.468 +            <arg value="-uriroot"/>
  17.469 +            <arg file="${basedir}/${build.web.dir}"/>
  17.470 +            <arg value="-d"/>
  17.471 +            <arg file="${basedir}/${build.generated.dir}/src"/>
  17.472 +            <arg value="-die1"/>
  17.473 +            <arg value="-compilerSourceVM ${javac.source}"/>
  17.474 +            <arg value="-compilerTargetVM ${javac.target}"/>
  17.475 +            <arg value="-javaEncoding ${source.encoding}"/>
  17.476 +            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
  17.477 +        </java>
  17.478 +        <mkdir dir="${build.generated.dir}/classes"/>
  17.479 +        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
  17.480 +    </target>
  17.481 +    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
  17.482 +        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
  17.483 +        <mkdir dir="${build.generated.dir}/src"/>
  17.484 +        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
  17.485 +            <arg value="-uriroot"/>
  17.486 +            <arg file="${basedir}/${build.web.dir}"/>
  17.487 +            <arg value="-d"/>
  17.488 +            <arg file="${basedir}/${build.generated.dir}/src"/>
  17.489 +            <arg value="-die1"/>
  17.490 +            <arg value="-jspc.files"/>
  17.491 +            <arg path="${jsp.includes}"/>
  17.492 +            <arg value="-compilerSourceVM ${javac.source}"/>
  17.493 +            <arg value="-compilerTargetVM ${javac.target}"/>
  17.494 +            <arg value="-javaEncoding ${source.encoding}"/>
  17.495 +            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
  17.496 +        </java>
  17.497 +        <mkdir dir="${build.generated.dir}/classes"/>
  17.498 +        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
  17.499 +            <customize>
  17.500 +                <patternset includes="${javac.jsp.includes}"/>
  17.501 +            </customize>
  17.502 +        </webproject2:javac>
  17.503 +    </target>
  17.504 +    <target name="compile-single-jsp">
  17.505 +        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
  17.506 +        <antcall target="-do-compile-single-jsp"/>
  17.507 +    </target>
  17.508 +    <!--
  17.509 +                DIST BUILDING SECTION
  17.510 +            -->
  17.511 +    <target name="-pre-dist">
  17.512 +        <!-- Empty placeholder for easier customization. -->
  17.513 +        <!-- You can override this target in the ../build.xml file. -->
  17.514 +    </target>
  17.515 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
  17.516 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
  17.517 +        <mkdir dir="${dist.jar.dir}"/>
  17.518 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
  17.519 +            <fileset dir="${build.web.dir}"/>
  17.520 +        </jar>
  17.521 +    </target>
  17.522 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
  17.523 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
  17.524 +        <mkdir dir="${dist.jar.dir}"/>
  17.525 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
  17.526 +            <fileset dir="${build.web.dir}"/>
  17.527 +        </jar>
  17.528 +    </target>
  17.529 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
  17.530 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
  17.531 +        <mkdir dir="${dist.jar.dir}"/>
  17.532 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
  17.533 +            <fileset dir="${build.web.dir}"/>
  17.534 +        </jar>
  17.535 +    </target>
  17.536 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
  17.537 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
  17.538 +        <mkdir dir="${dist.jar.dir}"/>
  17.539 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
  17.540 +            <fileset dir="${build.web.dir}"/>
  17.541 +        </jar>
  17.542 +    </target>
  17.543 +    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
  17.544 +    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
  17.545 +        <copyfiles files="${reference.SpringDemo1-ejb.dist}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}"/>
  17.546 +        <copyfiles files="${reference.SpringDemo1-lib.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
  17.547 +        <mkdir dir="${build.web.dir}/META-INF"/>
  17.548 +        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
  17.549 +    </target>
  17.550 +    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
  17.551 +        <copyfiles files="${reference.SpringDemo1-ejb.dist}" todir="${build.web.dir}/WEB-INF/lib"/>
  17.552 +        <copyfiles files="${reference.SpringDemo1-lib.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
  17.553 +    </target>
  17.554 +    <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
  17.555 +        <delete dir="${build.web.dir}/WEB-INF/lib"/>
  17.556 +    </target>
  17.557 +    <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
  17.558 +        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
  17.559 +        <mkdir dir="${dist.jar.dir}"/>
  17.560 +        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
  17.561 +            <fileset dir="${build.web.dir}"/>
  17.562 +        </jar>
  17.563 +    </target>
  17.564 +    <target name="-post-dist">
  17.565 +        <!-- Empty placeholder for easier customization. -->
  17.566 +        <!-- You can override this target in the ../build.xml file. -->
  17.567 +    </target>
  17.568 +    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
  17.569 +    <target depends="init,-clean-webinf-lib,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
  17.570 +    <!--
  17.571 +                EXECUTION SECTION
  17.572 +            -->
  17.573 +    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
  17.574 +    <target name="-pre-run-deploy">
  17.575 +        <!-- Empty placeholder for easier customization. -->
  17.576 +        <!-- You can override this target in the ../build.xml file. -->
  17.577 +    </target>
  17.578 +    <target name="-post-run-deploy">
  17.579 +        <!-- Empty placeholder for easier customization. -->
  17.580 +        <!-- You can override this target in the ../build.xml file. -->
  17.581 +    </target>
  17.582 +    <target name="-pre-nbmodule-run-deploy">
  17.583 +        <!-- Empty placeholder for easier customization. -->
  17.584 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
  17.585 +    </target>
  17.586 +    <target name="-post-nbmodule-run-deploy">
  17.587 +        <!-- Empty placeholder for easier customization. -->
  17.588 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
  17.589 +    </target>
  17.590 +    <target name="-run-deploy-am">
  17.591 +        <!-- Task to deploy to the Access Manager runtime. -->
  17.592 +    </target>
  17.593 +    <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">
  17.594 +        <nbjpdaappreloaded/>
  17.595 +    </target>
  17.596 +    <target if="netbeans.home" name="-run-deploy-nb">
  17.597 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
  17.598 +    </target>
  17.599 +    <target name="-init-deploy-ant" unless="netbeans.home">
  17.600 +        <property name="deploy.ant.archive" value="${dist.war}"/>
  17.601 +        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
  17.602 +        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
  17.603 +        <property name="deploy.ant.enabled" value="true"/>
  17.604 +    </target>
  17.605 +    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
  17.606 +    <target if="netbeans.home" name="-run-undeploy-nb">
  17.607 +        <fail message="Undeploy is not supported from within the IDE"/>
  17.608 +    </target>
  17.609 +    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
  17.610 +        <nbverify file="${dist.war}"/>
  17.611 +    </target>
  17.612 +    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
  17.613 +    <target if="do.display.browser" name="-init-display-browser">
  17.614 +        <condition property="do.display.browser.nb">
  17.615 +            <isset property="netbeans.home"/>
  17.616 +        </condition>
  17.617 +        <condition property="do.display.browser.cl">
  17.618 +            <isset property="deploy.ant.enabled"/>
  17.619 +        </condition>
  17.620 +    </target>
  17.621 +    <target if="do.display.browser.nb" name="-display-browser-nb">
  17.622 +        <nbbrowse url="${client.url}"/>
  17.623 +    </target>
  17.624 +    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
  17.625 +        <condition property="browser" value="rundll32">
  17.626 +            <os family="windows"/>
  17.627 +        </condition>
  17.628 +        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
  17.629 +            <os family="windows"/>
  17.630 +        </condition>
  17.631 +        <condition property="browser" value="/usr/bin/open">
  17.632 +            <os family="mac"/>
  17.633 +        </condition>
  17.634 +        <property environment="env"/>
  17.635 +        <condition property="browser" value="${env.BROWSER}">
  17.636 +            <isset property="env.BROWSER"/>
  17.637 +        </condition>
  17.638 +        <condition property="browser" value="/usr/bin/firefox">
  17.639 +            <available file="/usr/bin/firefox"/>
  17.640 +        </condition>
  17.641 +        <condition property="browser" value="/usr/local/firefox/firefox">
  17.642 +            <available file="/usr/local/firefox/firefox"/>
  17.643 +        </condition>
  17.644 +        <condition property="browser" value="/usr/bin/mozilla">
  17.645 +            <available file="/usr/bin/mozilla"/>
  17.646 +        </condition>
  17.647 +        <condition property="browser" value="/usr/local/mozilla/mozilla">
  17.648 +            <available file="/usr/local/mozilla/mozilla"/>
  17.649 +        </condition>
  17.650 +        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
  17.651 +            <available file="/usr/sfw/lib/firefox/firefox"/>
  17.652 +        </condition>
  17.653 +        <condition property="browser" value="/opt/csw/bin/firefox">
  17.654 +            <available file="/opt/csw/bin/firefox"/>
  17.655 +        </condition>
  17.656 +        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
  17.657 +            <available file="/usr/sfw/lib/mozilla/mozilla"/>
  17.658 +        </condition>
  17.659 +        <condition property="browser" value="/opt/csw/bin/mozilla">
  17.660 +            <available file="/opt/csw/bin/mozilla"/>
  17.661 +        </condition>
  17.662 +    </target>
  17.663 +    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
  17.664 +        <fail unless="browser">
  17.665 +                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
  17.666 +                </fail>
  17.667 +        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
  17.668 +        <echo>Launching ${browse.url}</echo>
  17.669 +        <exec executable="${browser}" spawn="true">
  17.670 +            <arg line="${browser.args} ${browse.url}"/>
  17.671 +        </exec>
  17.672 +    </target>
  17.673 +    <target depends="init,-init-cos,compile-single" name="run-main">
  17.674 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  17.675 +        <webproject1:java classname="${run.class}"/>
  17.676 +    </target>
  17.677 +    <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
  17.678 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  17.679 +        <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  17.680 +    </target>
  17.681 +    <!--
  17.682 +                DEBUGGING SECTION
  17.683 +            -->
  17.684 +    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
  17.685 +        <nbstartserver debugmode="true"/>
  17.686 +        <antcall target="connect-debugger"/>
  17.687 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
  17.688 +        <antcall target="debug-display-browser"/>
  17.689 +        <antcall target="connect-client-debugger"/>
  17.690 +    </target>
  17.691 +    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
  17.692 +        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
  17.693 +            <classpath>
  17.694 +                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
  17.695 +            </classpath>
  17.696 +            <sourcepath>
  17.697 +                <path path="${web.docbase.dir}"/>
  17.698 +            </sourcepath>
  17.699 +        </nbjpdaconnect>
  17.700 +    </target>
  17.701 +    <target if="do.display.browser.debug" name="debug-display-browser">
  17.702 +        <nbbrowse url="${client.url}"/>
  17.703 +    </target>
  17.704 +    <target if="do.debug.client" name="connect-client-debugger">
  17.705 +        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
  17.706 +    </target>
  17.707 +    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  17.708 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  17.709 +        <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  17.710 +    </target>
  17.711 +    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  17.712 +    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
  17.713 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  17.714 +        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  17.715 +    </target>
  17.716 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  17.717 +        <webproject1:nbjpdastart name="${debug.class}"/>
  17.718 +    </target>
  17.719 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  17.720 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  17.721 +        <webproject1:debug classname="${debug.class}"/>
  17.722 +    </target>
  17.723 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
  17.724 +    <target depends="init" name="-pre-debug-fix">
  17.725 +        <fail unless="fix.includes">Must set fix.includes</fail>
  17.726 +        <property name="javac.includes" value="${fix.includes}.java"/>
  17.727 +    </target>
  17.728 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  17.729 +        <webproject1:nbjpdareload/>
  17.730 +    </target>
  17.731 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  17.732 +    <!--
  17.733 +                JAVADOC SECTION
  17.734 +            -->
  17.735 +    <target depends="init" name="javadoc-build">
  17.736 +        <mkdir dir="${dist.javadoc.dir}"/>
  17.737 +        <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}">
  17.738 +            <classpath>
  17.739 +                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
  17.740 +            </classpath>
  17.741 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  17.742 +                <filename name="**/*.java"/>
  17.743 +            </fileset>
  17.744 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  17.745 +                <include name="**/*.java"/>
  17.746 +            </fileset>
  17.747 +        </javadoc>
  17.748 +    </target>
  17.749 +    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
  17.750 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  17.751 +    </target>
  17.752 +    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
  17.753 +    <!--
  17.754 +                
  17.755 +                JUNIT COMPILATION SECTION
  17.756 +            -->
  17.757 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  17.758 +        <mkdir dir="${build.test.classes.dir}"/>
  17.759 +        <property name="j2ee.platform.embeddableejb.classpath" value=""/>
  17.760 +    </target>
  17.761 +    <target name="-pre-compile-test">
  17.762 +        <!-- Empty placeholder for easier customization. -->
  17.763 +        <!-- You can override this target in the ../build.xml file. -->
  17.764 +    </target>
  17.765 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
  17.766 +        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  17.767 +        <copy todir="${build.test.classes.dir}">
  17.768 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  17.769 +        </copy>
  17.770 +    </target>
  17.771 +    <target name="-post-compile-test">
  17.772 +        <!-- Empty placeholder for easier customization. -->
  17.773 +        <!-- You can override this target in the ../build.xml file. -->
  17.774 +    </target>
  17.775 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  17.776 +    <target name="-pre-compile-test-single">
  17.777 +        <!-- Empty placeholder for easier customization. -->
  17.778 +        <!-- You can override this target in the ../build.xml file. -->
  17.779 +    </target>
  17.780 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  17.781 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  17.782 +        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
  17.783 +        <copy todir="${build.test.classes.dir}">
  17.784 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  17.785 +        </copy>
  17.786 +    </target>
  17.787 +    <target name="-post-compile-test-single">
  17.788 +        <!-- Empty placeholder for easier customization. -->
  17.789 +        <!-- You can override this target in the ../build.xml file. -->
  17.790 +    </target>
  17.791 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  17.792 +    <!--
  17.793 +                
  17.794 +                JUNIT EXECUTION SECTION
  17.795 +            -->
  17.796 +    <target depends="init" if="have.tests" name="-pre-test-run">
  17.797 +        <mkdir dir="${build.test.results.dir}"/>
  17.798 +    </target>
  17.799 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  17.800 +        <webproject2:junit testincludes="**/*Test.java"/>
  17.801 +    </target>
  17.802 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  17.803 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  17.804 +    </target>
  17.805 +    <target depends="init" if="have.tests" name="test-report"/>
  17.806 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  17.807 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  17.808 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
  17.809 +        <mkdir dir="${build.test.results.dir}"/>
  17.810 +    </target>
  17.811 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  17.812 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  17.813 +        <webproject2:junit excludes="" includes="${test.includes}"/>
  17.814 +    </target>
  17.815 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  17.816 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  17.817 +    </target>
  17.818 +    <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"/>
  17.819 +    <!--
  17.820 +                
  17.821 +                JUNIT DEBUGGING SECTION
  17.822 +            -->
  17.823 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
  17.824 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  17.825 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
  17.826 +        <delete file="${test.report.file}"/>
  17.827 +        <!-- must exist, otherwise the XML formatter would fail -->
  17.828 +        <mkdir dir="${build.test.results.dir}"/>
  17.829 +        <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
  17.830 +            <customize>
  17.831 +                <arg value="showoutput=true"/>
  17.832 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
  17.833 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
  17.834 +            </customize>
  17.835 +        </webproject1:debug>
  17.836 +    </target>
  17.837 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  17.838 +        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  17.839 +    </target>
  17.840 +    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  17.841 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  17.842 +        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  17.843 +    </target>
  17.844 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  17.845 +    <!--
  17.846 +                
  17.847 +                CLEANUP SECTION
  17.848 +            -->
  17.849 +    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
  17.850 +        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="clean"/>
  17.851 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="clean"/>
  17.852 +    </target>
  17.853 +    <target depends="init" name="do-clean">
  17.854 +        <condition property="build.dir.to.clean" value="${build.web.dir}">
  17.855 +            <isset property="dist.ear.dir"/>
  17.856 +        </condition>
  17.857 +        <property name="build.dir.to.clean" value="${build.web.dir}"/>
  17.858 +        <delete includeEmptyDirs="true" quiet="true">
  17.859 +            <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
  17.860 +        </delete>
  17.861 +        <delete dir="${build.dir}"/>
  17.862 +        <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
  17.863 +        <delete dir="${dist.dir}"/>
  17.864 +    </target>
  17.865 +    <target depends="do-clean" if="status.clean-failed" name="check-clean">
  17.866 +        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
  17.867 +        <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
  17.868 +    </target>
  17.869 +    <target depends="init" if="netbeans.home" name="undeploy-clean">
  17.870 +        <nbundeploy failOnError="false" startServer="false"/>
  17.871 +    </target>
  17.872 +    <target name="-post-clean">
  17.873 +        <!-- Empty placeholder for easier customization. -->
  17.874 +        <!-- You can override this target in the ../build.xml file. -->
  17.875 +    </target>
  17.876 +    <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
  17.877 +    <target depends="clean" description="Clean build products." name="clean-ear"/>
  17.878 +</project>
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/java/SpringDemo1/SpringDemo1-war/nbproject/genfiles.properties	Wed Feb 10 20:55:08 2010 +0100
    18.3 @@ -0,0 +1,8 @@
    18.4 +build.xml.data.CRC32=dc678faa
    18.5 +build.xml.script.CRC32=8b02e3a0
    18.6 +build.xml.stylesheet.CRC32=c0ebde35@1.21.2.1
    18.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
    18.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    18.9 +nbproject/build-impl.xml.data.CRC32=dc678faa
   18.10 +nbproject/build-impl.xml.script.CRC32=10b6ccbc
   18.11 +nbproject/build-impl.xml.stylesheet.CRC32=b139b33b@1.21.2.1
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/java/SpringDemo1/SpringDemo1-war/nbproject/project.properties	Wed Feb 10 20:55:08 2010 +0100
    19.3 @@ -0,0 +1,79 @@
    19.4 +build.classes.dir=${build.web.dir}/WEB-INF/classes
    19.5 +build.classes.excludes=**/*.java,**/*.form
    19.6 +build.dir=build
    19.7 +build.generated.dir=${build.dir}/generated
    19.8 +build.generated.sources.dir=${build.dir}/generated-sources
    19.9 +build.test.classes.dir=${build.dir}/test/classes
   19.10 +build.test.results.dir=${build.dir}/test/results
   19.11 +build.web.dir=${build.dir}/web
   19.12 +build.web.excludes=${build.classes.excludes}
   19.13 +client.urlPart=
   19.14 +compile.jsps=false
   19.15 +conf.dir=${source.root}/conf
   19.16 +debug.classpath=${build.classes.dir}:${javac.classpath}
   19.17 +debug.test.classpath=\
   19.18 +    ${run.test.classpath}
   19.19 +display.browser=true
   19.20 +dist.dir=dist
   19.21 +dist.ear.war=${dist.dir}/${war.ear.name}
   19.22 +dist.javadoc.dir=${dist.dir}/javadoc
   19.23 +dist.war=${dist.dir}/${war.name}
   19.24 +endorsed.classpath=\
   19.25 +    ${libs.javaee-endorsed-api-6.0.classpath}
   19.26 +excludes=
   19.27 +includes=**
   19.28 +j2ee.deploy.on.save=false
   19.29 +j2ee.platform=1.6
   19.30 +j2ee.server.type=gfv3ee6
   19.31 +jar.compress=false
   19.32 +javac.classpath=\
   19.33 +    ${reference.SpringDemo1-ejb.dist}:\
   19.34 +    ${reference.SpringDemo1-lib.jar}
   19.35 +# Space-separated list of extra javac options
   19.36 +javac.compilerargs=
   19.37 +javac.debug=true
   19.38 +javac.deprecation=false
   19.39 +javac.source=1.5
   19.40 +javac.target=1.5
   19.41 +javac.test.classpath=\
   19.42 +    ${javac.classpath}:\
   19.43 +    ${build.classes.dir}:\
   19.44 +    ${libs.junit.classpath}:\
   19.45 +    ${libs.junit_4.classpath}
   19.46 +javadoc.additionalparam=
   19.47 +javadoc.author=false
   19.48 +javadoc.encoding=${source.encoding}
   19.49 +javadoc.noindex=false
   19.50 +javadoc.nonavbar=false
   19.51 +javadoc.notree=false
   19.52 +javadoc.preview=true
   19.53 +javadoc.private=false
   19.54 +javadoc.splitindex=true
   19.55 +javadoc.use=true
   19.56 +javadoc.version=false
   19.57 +javadoc.windowtitle=
   19.58 +jspcompilation.classpath=${jspc.classpath}:${javac.classpath}
   19.59 +lib.dir=${web.docbase.dir}/WEB-INF/lib
   19.60 +no.dependencies=false
   19.61 +persistence.xml.dir=${conf.dir}
   19.62 +platform.active=default_platform
   19.63 +project.SpringDemo1-ejb=../SpringDemo1-ejb
   19.64 +project.SpringDemo1-lib=../SpringDemo1-lib
   19.65 +reference.SpringDemo1-ejb.dist=${project.SpringDemo1-ejb}/dist/SpringDemo1-ejb.jar
   19.66 +reference.SpringDemo1-lib.jar=${project.SpringDemo1-lib}/dist/SpringDemo1-lib.jar
   19.67 +resource.dir=setup
   19.68 +run.test.classpath=\
   19.69 +    ${javac.test.classpath}:\
   19.70 +    ${build.test.classes.dir}
   19.71 +# Space-separated list of JVM arguments used when running a class with a main method or a unit test
   19.72 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
   19.73 +runmain.jvmargs=
   19.74 +source.encoding=UTF-8
   19.75 +source.root=src
   19.76 +src.dir=${source.root}/java
   19.77 +test.src.dir=test
   19.78 +war.content.additional=
   19.79 +war.ear.name=SpringDemo1-war.war
   19.80 +war.name=SpringDemo1-war.war
   19.81 +web.docbase.dir=web
   19.82 +webinf.dir=web/WEB-INF
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/java/SpringDemo1/SpringDemo1-war/nbproject/project.xml	Wed Feb 10 20:55:08 2010 +0100
    20.3 @@ -0,0 +1,45 @@
    20.4 +<?xml version="1.0" encoding="UTF-8"?>
    20.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
    20.6 +    <type>org.netbeans.modules.web.project</type>
    20.7 +    <configuration>
    20.8 +        <data xmlns="http://www.netbeans.org/ns/web-project/3">
    20.9 +            <name>SpringDemo1-war</name>
   20.10 +            <minimum-ant-version>1.6.5</minimum-ant-version>
   20.11 +            <web-module-libraries>
   20.12 +                <library dirs="100">
   20.13 +                    <file>${reference.SpringDemo1-ejb.dist}</file>
   20.14 +                    <path-in-war>WEB-INF/lib</path-in-war>
   20.15 +                </library>
   20.16 +                <library dirs="200">
   20.17 +                    <file>${reference.SpringDemo1-lib.jar}</file>
   20.18 +                    <path-in-war>WEB-INF/lib</path-in-war>
   20.19 +                </library>
   20.20 +            </web-module-libraries>
   20.21 +            <web-module-additional-libraries/>
   20.22 +            <source-roots>
   20.23 +                <root id="src.dir" name="Source Packages"/>
   20.24 +            </source-roots>
   20.25 +            <test-roots>
   20.26 +                <root id="test.src.dir" name="Test Packages"/>
   20.27 +            </test-roots>
   20.28 +        </data>
   20.29 +        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
   20.30 +            <reference>
   20.31 +                <foreign-project>SpringDemo1-ejb</foreign-project>
   20.32 +                <artifact-type>jar</artifact-type>
   20.33 +                <script>build.xml</script>
   20.34 +                <target>dist</target>
   20.35 +                <clean-target>clean</clean-target>
   20.36 +                <id>dist</id>
   20.37 +            </reference>
   20.38 +            <reference>
   20.39 +                <foreign-project>SpringDemo1-lib</foreign-project>
   20.40 +                <artifact-type>jar</artifact-type>
   20.41 +                <script>build.xml</script>
   20.42 +                <target>jar</target>
   20.43 +                <clean-target>clean</clean-target>
   20.44 +                <id>jar</id>
   20.45 +            </reference>
   20.46 +        </references>
   20.47 +    </configuration>
   20.48 +</project>
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/java/SpringDemo1/SpringDemo1-war/src/conf/MANIFEST.MF	Wed Feb 10 20:55:08 2010 +0100
    21.3 @@ -0,0 +1,2 @@
    21.4 +Manifest-Version: 1.0
    21.5 +
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/java/SpringDemo1/SpringDemo1-war/web/WEB-INF/beans.xml	Wed Feb 10 20:55:08 2010 +0100
    22.3 @@ -0,0 +1,5 @@
    22.4 +<?xml version="1.0" encoding="UTF-8"?>
    22.5 +<beans xmlns="http://java.sun.com/xml/ns/javaee"
    22.6 +       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    22.7 +       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
    22.8 +</beans>
    23.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.2 +++ b/java/SpringDemo1/SpringDemo1-war/web/WEB-INF/sun-web.xml	Wed Feb 10 20:55:08 2010 +0100
    23.3 @@ -0,0 +1,11 @@
    23.4 +<?xml version="1.0" encoding="UTF-8"?>
    23.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">
    23.6 +<sun-web-app error-url="">
    23.7 +  <context-root>/SpringDemo1-war</context-root>
    23.8 +  <class-loader delegate="true"/>
    23.9 +  <jsp-config>
   23.10 +    <property name="keepgenerated" value="true">
   23.11 +      <description>Keep a copy of the generated servlet class' java code.</description>
   23.12 +    </property>
   23.13 +  </jsp-config>
   23.14 +</sun-web-app>
    24.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.2 +++ b/java/SpringDemo1/SpringDemo1-war/web/index.jsp	Wed Feb 10 20:55:08 2010 +0100
    24.3 @@ -0,0 +1,30 @@
    24.4 +<?xml version="1.0" encoding="UTF-8"?>
    24.5 +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    24.6 +	  xmlns:c="http://java.sun.com/jsp/jstl/core"
    24.7 +	  version="2.0">
    24.8 +    <jsp:directive.page contentType="application/xhtml+xml"/>
    24.9 +    <jsp:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
   24.10 +		doctype-root-element="html"
   24.11 +		omit-xml-declaration="false"/>
   24.12 +
   24.13 +    <html xmlns="http://www.w3.org/1999/xhtml">
   24.14 +	<head>
   24.15 +	    <title>SpringDemo1</title>
   24.16 +	</head>
   24.17 +	<body>
   24.18 +	    <h1>SpringDemo1</h1>
   24.19 +	    <p>Spring JDBC…</p>
   24.20 +	    <p>Vypíšeme seznam knih:</p>
   24.21 +
   24.22 +	    <jsp:useBean id="demo" class="cz.frantovo.springDemo1.web.SpringDemo1Bean" scope="request"/>
   24.23 +	    <ul>
   24.24 +		<c:forEach var="kniha" items="${demo.knihy}">
   24.25 +		    <li><c:out value="${kniha.nazev}"/></li>
   24.26 +		</c:forEach>
   24.27 +	    </ul>
   24.28 +
   24.29 +
   24.30 +	</body>
   24.31 +    </html>
   24.32 +
   24.33 +</jsp:root>
    25.1 --- a/java/SpringDemo1/nbproject/build-impl.xml	Wed Feb 10 18:25:55 2010 +0100
    25.2 +++ b/java/SpringDemo1/nbproject/build-impl.xml	Wed Feb 10 20:55:08 2010 +0100
    25.3 @@ -1,23 +1,20 @@
    25.4  <?xml version="1.0" encoding="UTF-8"?>
    25.5  <!--
    25.6 -        *** GENERATED FROM project.xml - DO NOT EDIT  ***
    25.7 -        ***         EDIT ../build.xml INSTEAD         ***
    25.8 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
    25.9 +***         EDIT ../build.xml INSTEAD         ***
   25.10  
   25.11 -        For the purpose of easier reading the script
   25.12 -        is divided into following sections:
   25.13 -        - initialization
   25.14 -        - compilation
   25.15 -        - dist
   25.16 -        - execution
   25.17 -        - debugging
   25.18 -        - javadoc
   25.19 -        - junit compilation
   25.20 -        - junit execution
   25.21 -        - junit debugging
   25.22 -        - cleanup
   25.23 +For the purpose of easier reading the script
   25.24 +is divided into following sections:
   25.25  
   25.26 -        -->
   25.27 -<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="SpringDemo1-impl">
   25.28 +  - initialization
   25.29 +  - compilation
   25.30 +  - dist
   25.31 +  - execution
   25.32 +  - debugging
   25.33 +  - cleanup
   25.34 +
   25.35 +-->
   25.36 +<project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="SpringDemo1-impl">
   25.37      <import file="ant-deploy.xml"/>
   25.38      <fail message="Please build using Ant 1.7.1 or higher.">
   25.39          <condition>
   25.40 @@ -26,130 +23,81 @@
   25.41              </not>
   25.42          </condition>
   25.43      </fail>
   25.44 -    <target depends="dist,javadoc" description="Build whole project." name="default"/>
   25.45 -    <!--
   25.46 -                INITIALIZATION SECTION
   25.47 -            -->
   25.48 -    <target name="-pre-init">
   25.49 +    <target depends="dist" description="Build whole project." name="default"/>
   25.50 +    <!-- 
   25.51 +    INITIALIZATION SECTION 
   25.52 +    -->
   25.53 +    <target name="pre-init">
   25.54          <!-- Empty placeholder for easier customization. -->
   25.55          <!-- You can override this target in the ../build.xml file. -->
   25.56      </target>
   25.57 -    <target depends="-pre-init" name="-init-private">
   25.58 +    <target depends="pre-init" name="init-private">
   25.59          <property file="nbproject/private/private.properties"/>
   25.60      </target>
   25.61 -    <target depends="-pre-init,-init-private" name="-init-user">
   25.62 +    <target depends="pre-init,init-private" name="init-userdir">
   25.63 +        <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
   25.64 +    </target>
   25.65 +    <target depends="pre-init,init-private,init-userdir" name="init-user">
   25.66          <property file="${user.properties.file}"/>
   25.67 +    </target>
   25.68 +    <target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
   25.69 +        <property file="nbproject/project.properties"/>
   25.70 +    </target>
   25.71 +    <target depends="pre-init,init-private,init-userdir,init-user,init-project" name="do-init">
   25.72          <!-- The two properties below are usually overridden -->
   25.73          <!-- by the active platform. Just a fallback. -->
   25.74          <property name="default.javac.source" value="1.4"/>
   25.75          <property name="default.javac.target" value="1.4"/>
   25.76 -    </target>
   25.77 -    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
   25.78 -        <property file="nbproject/project.properties"/>
   25.79 -    </target>
   25.80 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
   25.81 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
   25.82 -        <condition property="have.tests">
   25.83 -            <or>
   25.84 -                <available file="${test.src.dir}"/>
   25.85 -            </or>
   25.86 -        </condition>
   25.87 -        <condition property="have.sources">
   25.88 -            <or>
   25.89 -                <available file="${src.dir}"/>
   25.90 -            </or>
   25.91 -        </condition>
   25.92 -        <condition property="netbeans.home+have.tests">
   25.93 -            <and>
   25.94 -                <isset property="netbeans.home"/>
   25.95 -                <isset property="have.tests"/>
   25.96 -            </and>
   25.97 -        </condition>
   25.98 -        <condition property="no.javadoc.preview">
   25.99 -            <isfalse value="${javadoc.preview}"/>
  25.100 -        </condition>
  25.101 -        <property name="javac.compilerargs" value=""/>
  25.102 -        <condition property="no.deps">
  25.103 -            <and>
  25.104 -                <istrue value="${no.dependencies}"/>
  25.105 -            </and>
  25.106 -        </condition>
  25.107 -        <condition property="no.dist.ear.dir">
  25.108 -            <not>
  25.109 -                <isset property="dist.ear.dir"/>
  25.110 -            </not>
  25.111 -        </condition>
  25.112 -        <property name="build.web.excludes" value="${build.classes.excludes}"/>
  25.113          <condition property="do.compile.jsps">
  25.114              <istrue value="${compile.jsps}"/>
  25.115          </condition>
  25.116 -        <condition property="do.debug.server">
  25.117 -            <or>
  25.118 +        <condition property="do.display.browser">
  25.119 +            <and>
  25.120 +                <istrue value="${display.browser}"/>
  25.121 +                <isset property="client.module.uri"/>
  25.122                  <not>
  25.123 -                    <isset property="debug.server"/>
  25.124 -                </not>
  25.125 -                <istrue value="${debug.server}"/>
  25.126 -                <and>
  25.127 -                    <not>
  25.128 -                        <istrue value="${debug.server}"/>
  25.129 -                    </not>
  25.130 -                    <not>
  25.131 -                        <istrue value="${debug.client}"/>
  25.132 -                    </not>
  25.133 -                </and>
  25.134 -            </or>
  25.135 -        </condition>
  25.136 -        <condition property="do.debug.client">
  25.137 -            <istrue value="${debug.client}"/>
  25.138 -        </condition>
  25.139 -        <condition property="do.display.browser">
  25.140 -            <istrue value="${display.browser}"/>
  25.141 -        </condition>
  25.142 -        <condition property="do.display.browser.debug">
  25.143 -            <and>
  25.144 -                <isset property="do.display.browser"/>
  25.145 -                <not>
  25.146 -                    <isset property="do.debug.client"/>
  25.147 +                    <isset property="app.client"/>
  25.148                  </not>
  25.149              </and>
  25.150          </condition>
  25.151 -        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
  25.152 -        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
  25.153 -        <condition property="do.war.package.with.custom.manifest">
  25.154 -            <isset property="has.custom.manifest"/>
  25.155 -        </condition>
  25.156 -        <condition property="do.war.package.without.custom.manifest">
  25.157 -            <not>
  25.158 -                <isset property="has.custom.manifest"/>
  25.159 -            </not>
  25.160 -        </condition>
  25.161 -        <condition property="do.tmp.war.package.with.custom.manifest">
  25.162 +        <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
  25.163 +        <!--
  25.164 +                    Variables needed to support directory deployment.
  25.165 +                -->
  25.166 +        <condition property="do.package.with.custom.manifest.not.directory.deploy">
  25.167              <and>
  25.168                  <isset property="has.custom.manifest"/>
  25.169 -                <or>
  25.170 -                    <isfalse value="${directory.deployment.supported}"/>
  25.171 -                    <isset property="dist.ear.dir"/>
  25.172 -                </or>
  25.173 +                <isfalse value="${directory.deployment.supported}"/>
  25.174              </and>
  25.175          </condition>
  25.176 -        <condition property="do.tmp.war.package.without.custom.manifest">
  25.177 +        <condition property="do.package.without.custom.manifest.not.directory.deploy">
  25.178              <and>
  25.179                  <not>
  25.180                      <isset property="has.custom.manifest"/>
  25.181                  </not>
  25.182 -                <or>
  25.183 -                    <isfalse value="${directory.deployment.supported}"/>
  25.184 -                    <isset property="dist.ear.dir"/>
  25.185 -                </or>
  25.186 +                <isfalse value="${directory.deployment.supported}"/>
  25.187              </and>
  25.188          </condition>
  25.189 -        <condition property="do.tmp.war.package">
  25.190 -            <or>
  25.191 -                <isfalse value="${directory.deployment.supported}"/>
  25.192 -                <isset property="dist.ear.dir"/>
  25.193 -            </or>
  25.194 +        <condition property="do.package.not.directory.deploy">
  25.195 +            <isfalse value="${directory.deployment.supported}"/>
  25.196          </condition>
  25.197 -        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
  25.198 +        <!--End Variables needed to support directory deployment.-->
  25.199 +        <condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
  25.200 +            <and>
  25.201 +                <isset property="main.class"/>
  25.202 +                <not>
  25.203 +                    <equals arg1="${main.class}" arg2="" trim="true"/>
  25.204 +                </not>
  25.205 +            </and>
  25.206 +        </condition>
  25.207 +        <condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
  25.208 +            <and>
  25.209 +                <isset property="j2ee.appclient.jvmoptions"/>
  25.210 +                <not>
  25.211 +                    <equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
  25.212 +                </not>
  25.213 +            </and>
  25.214 +        </condition>
  25.215          <condition else="" property="application.args.param" value="${application.args}">
  25.216              <and>
  25.217                  <isset property="application.args"/>
  25.218 @@ -158,220 +106,32 @@
  25.219                  </not>
  25.220              </and>
  25.221          </condition>
  25.222 -        <property name="source.encoding" value="${file.encoding}"/>
  25.223 -        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  25.224 +        <condition property="can.debug.appclient">
  25.225              <and>
  25.226 -                <isset property="javadoc.encoding"/>
  25.227 -                <not>
  25.228 -                    <equals arg1="${javadoc.encoding}" arg2=""/>
  25.229 -                </not>
  25.230 +                <isset property="netbeans.home"/>
  25.231 +                <isset property="app.client"/>
  25.232              </and>
  25.233          </condition>
  25.234 -        <property name="javadoc.encoding.used" value="${source.encoding}"/>
  25.235 -        <property name="includes" value="**"/>
  25.236 -        <property name="excludes" value=""/>
  25.237 -        <property name="runmain.jvmargs" value=""/>
  25.238          <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
  25.239          <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
  25.240              <length length="0" string="${endorsed.classpath}" when="greater"/>
  25.241          </condition>
  25.242      </target>
  25.243 -    <target depends="init" name="-init-cos" unless="deploy.on.save">
  25.244 -        <condition property="deploy.on.save" value="true">
  25.245 +    <target depends="init" name="-init-cos">
  25.246 +        <condition else="false" property="build.deploy.on.save">
  25.247              <istrue value="${j2ee.deploy.on.save}"/>
  25.248          </condition>
  25.249      </target>
  25.250 -    <target name="-post-init">
  25.251 +    <target name="post-init">
  25.252          <!-- Empty placeholder for easier customization. -->
  25.253          <!-- You can override this target in the ../build.xml file. -->
  25.254      </target>
  25.255 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  25.256 -        <fail unless="src.dir">Must set src.dir</fail>
  25.257 -        <fail unless="test.src.dir">Must set test.src.dir</fail>
  25.258 +    <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
  25.259          <fail unless="build.dir">Must set build.dir</fail>
  25.260 -        <fail unless="build.web.dir">Must set build.web.dir</fail>
  25.261          <fail unless="build.generated.dir">Must set build.generated.dir</fail>
  25.262          <fail unless="dist.dir">Must set dist.dir</fail>
  25.263 -        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  25.264 -        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  25.265 -        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  25.266 -        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  25.267          <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  25.268 -        <fail unless="dist.war">Must set dist.war</fail>
  25.269 -        <fail unless="j2ee.platform.classpath">
  25.270 -The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
  25.271 -Either open the project in the IDE and assign the server or setup the server classpath manually.
  25.272 -For example like this:
  25.273 -   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
  25.274 -or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
  25.275 -                </fail>
  25.276 -    </target>
  25.277 -    <target name="-init-macrodef-property">
  25.278 -        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
  25.279 -            <attribute name="name"/>
  25.280 -            <attribute name="value"/>
  25.281 -            <sequential>
  25.282 -                <property name="@{name}" value="${@{value}}"/>
  25.283 -            </sequential>
  25.284 -        </macrodef>
  25.285 -    </target>
  25.286 -    <target name="-init-macrodef-javac">
  25.287 -        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
  25.288 -            <attribute default="${src.dir}" name="srcdir"/>
  25.289 -            <attribute default="${build.classes.dir}" name="destdir"/>
  25.290 -            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  25.291 -            <attribute default="${includes}" name="includes"/>
  25.292 -            <attribute default="${excludes}" name="excludes"/>
  25.293 -            <attribute default="${javac.debug}" name="debug"/>
  25.294 -            <attribute default="${empty.dir}" name="gensrcdir"/>
  25.295 -            <element name="customize" optional="true"/>
  25.296 -            <sequential>
  25.297 -                <property location="${build.dir}/empty" name="empty.dir"/>
  25.298 -                <mkdir dir="${empty.dir}"/>
  25.299 -                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
  25.300 -                    <src>
  25.301 -                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  25.302 -                            <include name="*"/>
  25.303 -                        </dirset>
  25.304 -                    </src>
  25.305 -                    <classpath>
  25.306 -                        <path path="@{classpath}"/>
  25.307 -                    </classpath>
  25.308 -                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  25.309 -                    <compilerarg line="${javac.compilerargs}"/>
  25.310 -                    <customize/>
  25.311 -                </javac>
  25.312 -            </sequential>
  25.313 -        </macrodef>
  25.314 -    </target>
  25.315 -    <target name="-init-macrodef-junit">
  25.316 -        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
  25.317 -            <attribute default="${includes}" name="includes"/>
  25.318 -            <attribute default="${excludes}" name="excludes"/>
  25.319 -            <attribute default="**" name="testincludes"/>
  25.320 -            <sequential>
  25.321 -                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
  25.322 -                    <batchtest todir="${build.test.results.dir}">
  25.323 -                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  25.324 -                            <filename name="@{testincludes}"/>
  25.325 -                        </fileset>
  25.326 -                    </batchtest>
  25.327 -                    <classpath>
  25.328 -                        <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
  25.329 -                    </classpath>
  25.330 -                    <syspropertyset>
  25.331 -                        <propertyref prefix="test-sys-prop."/>
  25.332 -                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  25.333 -                    </syspropertyset>
  25.334 -                    <formatter type="brief" usefile="false"/>
  25.335 -                    <formatter type="xml"/>
  25.336 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  25.337 -                    <jvmarg line="${runmain.jvmargs}"/>
  25.338 -                </junit>
  25.339 -            </sequential>
  25.340 -        </macrodef>
  25.341 -    </target>
  25.342 -    <target name="-init-macrodef-java">
  25.343 -        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
  25.344 -            <attribute default="${main.class}" name="classname"/>
  25.345 -            <attribute default="${debug.classpath}" name="classpath"/>
  25.346 -            <element name="customize" optional="true"/>
  25.347 -            <sequential>
  25.348 -                <java classname="@{classname}" fork="true">
  25.349 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  25.350 -                    <jvmarg line="${runmain.jvmargs}"/>
  25.351 -                    <classpath>
  25.352 -                        <path path="@{classpath}:${j2ee.platform.classpath}"/>
  25.353 -                    </classpath>
  25.354 -                    <syspropertyset>
  25.355 -                        <propertyref prefix="run-sys-prop."/>
  25.356 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  25.357 -                    </syspropertyset>
  25.358 -                    <customize/>
  25.359 -                </java>
  25.360 -            </sequential>
  25.361 -        </macrodef>
  25.362 -    </target>
  25.363 -    <target name="-init-macrodef-nbjsdebug">
  25.364 -        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
  25.365 -            <attribute default="${client.url}" name="webUrl"/>
  25.366 -            <sequential>
  25.367 -                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
  25.368 -            </sequential>
  25.369 -        </macrodef>
  25.370 -    </target>
  25.371 -    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  25.372 -        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
  25.373 -            <attribute default="${main.class}" name="name"/>
  25.374 -            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  25.375 -            <sequential>
  25.376 -                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
  25.377 -                    <classpath>
  25.378 -                        <path path="@{classpath}"/>
  25.379 -                    </classpath>
  25.380 -                </nbjpdastart>
  25.381 -            </sequential>
  25.382 -        </macrodef>
  25.383 -        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
  25.384 -            <attribute default="${build.classes.dir}" name="dir"/>
  25.385 -            <sequential>
  25.386 -                <nbjpdareload>
  25.387 -                    <fileset dir="@{dir}" includes="${fix.classes}">
  25.388 -                        <include name="${fix.includes}*.class"/>
  25.389 -                    </fileset>
  25.390 -                </nbjpdareload>
  25.391 -            </sequential>
  25.392 -        </macrodef>
  25.393 -        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
  25.394 -            <sequential>
  25.395 -                <nbjpdaappreloaded/>
  25.396 -            </sequential>
  25.397 -        </macrodef>
  25.398 -    </target>
  25.399 -    <target name="-init-debug-args">
  25.400 -        <property name="version-output" value="java version &quot;${ant.java.version}"/>
  25.401 -        <condition property="have-jdk-older-than-1.4">
  25.402 -            <or>
  25.403 -                <contains string="${version-output}" substring="java version &quot;1.0"/>
  25.404 -                <contains string="${version-output}" substring="java version &quot;1.1"/>
  25.405 -                <contains string="${version-output}" substring="java version &quot;1.2"/>
  25.406 -                <contains string="${version-output}" substring="java version &quot;1.3"/>
  25.407 -            </or>
  25.408 -        </condition>
  25.409 -        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  25.410 -            <istrue value="${have-jdk-older-than-1.4}"/>
  25.411 -        </condition>
  25.412 -        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  25.413 -            <os family="windows"/>
  25.414 -        </condition>
  25.415 -        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  25.416 -            <isset property="debug.transport"/>
  25.417 -        </condition>
  25.418 -    </target>
  25.419 -    <target depends="-init-debug-args" name="-init-macrodef-debug">
  25.420 -        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
  25.421 -            <attribute default="${main.class}" name="classname"/>
  25.422 -            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
  25.423 -            <attribute default="${application.args.param}" name="args"/>
  25.424 -            <element name="customize" optional="true"/>
  25.425 -            <sequential>
  25.426 -                <java classname="@{classname}" fork="true">
  25.427 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  25.428 -                    <jvmarg line="${debug-args-line}"/>
  25.429 -                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  25.430 -                    <jvmarg line="${runmain.jvmargs}"/>
  25.431 -                    <classpath>
  25.432 -                        <path path="@{classpath}"/>
  25.433 -                    </classpath>
  25.434 -                    <syspropertyset>
  25.435 -                        <propertyref prefix="run-sys-prop."/>
  25.436 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  25.437 -                    </syspropertyset>
  25.438 -                    <arg line="@{args}"/>
  25.439 -                    <customize/>
  25.440 -                </java>
  25.441 -            </sequential>
  25.442 -        </macrodef>
  25.443 +        <fail unless="dist.jar">Must set dist.jar</fail>
  25.444      </target>
  25.445      <target name="-init-taskdefs">
  25.446          <fail unless="libs.CopyLibs.classpath">
  25.447 @@ -386,179 +146,107 @@
  25.448                  </fail>
  25.449          <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
  25.450      </target>
  25.451 -    <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"/>
  25.452 +    <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
  25.453      <!--
  25.454 -                COMPILATION SECTION
  25.455 -            -->
  25.456 -    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps"/>
  25.457 -    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps"/>
  25.458 -    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
  25.459 -    <target depends="init,deps-jar" name="-pre-pre-compile">
  25.460 -        <mkdir dir="${build.classes.dir}"/>
  25.461 +    COMPILATION SECTION
  25.462 +    -->
  25.463 +    <target depends="init" name="deps-jar" unless="no.deps"/>
  25.464 +    <target depends="init" name="deps-j2ee-archive" unless="no.deps">
  25.465 +        <condition property="build.deploy.on.save" value="false">
  25.466 +            <not>
  25.467 +                <isset property="build.deploy.on.save"/>
  25.468 +            </not>
  25.469 +        </condition>
  25.470 +        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="dist-ear">
  25.471 +            <property location="${build.dir}" name="dist.ear.dir"/>
  25.472 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  25.473 +        </ant>
  25.474 +        <condition property="build.deploy.on.save" value="false">
  25.475 +            <not>
  25.476 +                <isset property="build.deploy.on.save"/>
  25.477 +            </not>
  25.478 +        </condition>
  25.479 +        <ant antfile="${project.SpringDemo1-war}/build.xml" inheritall="false" target="dist-ear">
  25.480 +            <property location="${build.dir}" name="dist.ear.dir"/>
  25.481 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  25.482 +        </ant>
  25.483      </target>
  25.484 -    <target name="-pre-compile">
  25.485 +    <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
  25.486 +    <target name="pre-compile">
  25.487          <!-- Empty placeholder for easier customization. -->
  25.488          <!-- You can override this target in the ../build.xml file. -->
  25.489      </target>
  25.490 -    <target name="-copy-webdir">
  25.491 -        <copy todir="${build.web.dir}">
  25.492 -            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
  25.493 -        </copy>
  25.494 -        <copy todir="${build.web.dir}/WEB-INF">
  25.495 -            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
  25.496 +    <target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
  25.497 +        <copy todir="${build.dir}/META-INF">
  25.498 +            <fileset dir="${meta.inf}"/>
  25.499          </copy>
  25.500      </target>
  25.501 -    <target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest" if="have.sources" name="-do-compile">
  25.502 -        <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
  25.503 -        <copy todir="${build.classes.dir}">
  25.504 -            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  25.505 -        </copy>
  25.506 +    <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
  25.507 +        <copyfiles files="${reference.SpringDemo1-war.dist-ear}" todir="${build.dir}//"/>
  25.508 +        <copyfiles files="${reference.SpringDemo1-ejb.dist-ear}" todir="${build.dir}//"/>
  25.509      </target>
  25.510 -    <target if="has.custom.manifest" name="-copy-manifest">
  25.511 -        <mkdir dir="${build.meta.inf.dir}"/>
  25.512 -        <copy todir="${build.meta.inf.dir}">
  25.513 -            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
  25.514 -        </copy>
  25.515 -    </target>
  25.516 -    <target if="has.persistence.xml" name="-copy-persistence-xml">
  25.517 -        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
  25.518 -        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
  25.519 -            <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
  25.520 -        </copy>
  25.521 -    </target>
  25.522 -    <target name="-post-compile">
  25.523 +    <target name="post-compile">
  25.524          <!-- Empty placeholder for easier customization. -->
  25.525          <!-- You can override this target in the ../build.xml file. -->
  25.526      </target>
  25.527 -    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  25.528 -    <target name="-pre-compile-single">
  25.529 +    <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
  25.530 +    <!--
  25.531 +                DIST BUILDING SECTION
  25.532 +            -->
  25.533 +    <target name="pre-dist">
  25.534          <!-- Empty placeholder for easier customization. -->
  25.535          <!-- You can override this target in the ../build.xml file. -->
  25.536      </target>
  25.537 -    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  25.538 -        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  25.539 -        <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
  25.540 -        <copy todir="${build.classes.dir}">
  25.541 -            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  25.542 -        </copy>
  25.543 +    <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
  25.544 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
  25.545 +        <mkdir dir="${dist.jar.dir}"/>
  25.546 +        <jar compress="${jar.compress}" jarfile="${dist.jar}">
  25.547 +            <fileset dir="${build.dir}"/>
  25.548 +        </jar>
  25.549      </target>
  25.550 -    <target name="-post-compile-single">
  25.551 +    <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
  25.552 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
  25.553 +        <mkdir dir="${dist.jar.dir}"/>
  25.554 +        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
  25.555 +            <fileset dir="${build.dir}"/>
  25.556 +        </jar>
  25.557 +    </target>
  25.558 +    <!--
  25.559 +                TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
  25.560 +            -->
  25.561 +    <target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
  25.562 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
  25.563 +        <mkdir dir="${dist.jar.dir}"/>
  25.564 +        <jar compress="${jar.compress}" jarfile="${dist.jar}">
  25.565 +            <fileset dir="${build.dir}"/>
  25.566 +        </jar>
  25.567 +    </target>
  25.568 +    <target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
  25.569 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
  25.570 +        <mkdir dir="${dist.jar.dir}"/>
  25.571 +        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
  25.572 +            <fileset dir="${build.dir}"/>
  25.573 +        </jar>
  25.574 +    </target>
  25.575 +    <target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
  25.576 +    <target depends="init,compile,pre-dist,-do-dist-directory-deploy,post-dist" description="Build distribution (JAR) - if directory deployment is not supported." name="dist-directory-deploy"/>
  25.577 +    <!--
  25.578 +                END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
  25.579 +            -->
  25.580 +    <target name="post-dist">
  25.581          <!-- Empty placeholder for easier customization. -->
  25.582          <!-- You can override this target in the ../build.xml file. -->
  25.583      </target>
  25.584 -    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  25.585 -    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
  25.586 -        <mkdir dir="${build.generated.dir}/src"/>
  25.587 -        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
  25.588 -            <arg value="-uriroot"/>
  25.589 -            <arg file="${basedir}/${build.web.dir}"/>
  25.590 -            <arg value="-d"/>
  25.591 -            <arg file="${basedir}/${build.generated.dir}/src"/>
  25.592 -            <arg value="-die1"/>
  25.593 -            <arg value="-compilerSourceVM ${javac.source}"/>
  25.594 -            <arg value="-compilerTargetVM ${javac.target}"/>
  25.595 -            <arg value="-javaEncoding ${source.encoding}"/>
  25.596 -            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
  25.597 -        </java>
  25.598 -        <mkdir dir="${build.generated.dir}/classes"/>
  25.599 -        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
  25.600 -    </target>
  25.601 -    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
  25.602 -        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
  25.603 -        <mkdir dir="${build.generated.dir}/src"/>
  25.604 -        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
  25.605 -            <arg value="-uriroot"/>
  25.606 -            <arg file="${basedir}/${build.web.dir}"/>
  25.607 -            <arg value="-d"/>
  25.608 -            <arg file="${basedir}/${build.generated.dir}/src"/>
  25.609 -            <arg value="-die1"/>
  25.610 -            <arg value="-jspc.files"/>
  25.611 -            <arg path="${jsp.includes}"/>
  25.612 -            <arg value="-compilerSourceVM ${javac.source}"/>
  25.613 -            <arg value="-compilerTargetVM ${javac.target}"/>
  25.614 -            <arg value="-javaEncoding ${source.encoding}"/>
  25.615 -            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
  25.616 -        </java>
  25.617 -        <mkdir dir="${build.generated.dir}/classes"/>
  25.618 -        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
  25.619 -            <customize>
  25.620 -                <patternset includes="${javac.jsp.includes}"/>
  25.621 -            </customize>
  25.622 -        </webproject2:javac>
  25.623 -    </target>
  25.624 -    <target name="compile-single-jsp">
  25.625 -        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
  25.626 -        <antcall target="-do-compile-single-jsp"/>
  25.627 -    </target>
  25.628 +    <target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
  25.629      <!--
  25.630 -                DIST BUILDING SECTION
  25.631 -            -->
  25.632 -    <target name="-pre-dist">
  25.633 +    EXECUTION SECTION
  25.634 +    -->
  25.635 +    <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
  25.636 +    <target name="pre-run-deploy">
  25.637          <!-- Empty placeholder for easier customization. -->
  25.638          <!-- You can override this target in the ../build.xml file. -->
  25.639      </target>
  25.640 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
  25.641 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  25.642 -        <mkdir dir="${dist.jar.dir}"/>
  25.643 -        <jar compress="${jar.compress}" jarfile="${dist.war}">
  25.644 -            <fileset dir="${build.web.dir}"/>
  25.645 -        </jar>
  25.646 -    </target>
  25.647 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
  25.648 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  25.649 -        <mkdir dir="${dist.jar.dir}"/>
  25.650 -        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
  25.651 -            <fileset dir="${build.web.dir}"/>
  25.652 -        </jar>
  25.653 -    </target>
  25.654 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
  25.655 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  25.656 -        <mkdir dir="${dist.jar.dir}"/>
  25.657 -        <jar compress="${jar.compress}" jarfile="${dist.war}">
  25.658 -            <fileset dir="${build.web.dir}"/>
  25.659 -        </jar>
  25.660 -    </target>
  25.661 -    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
  25.662 -        <dirname file="${dist.war}" property="dist.jar.dir"/>
  25.663 -        <mkdir dir="${dist.jar.dir}"/>
  25.664 -        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
  25.665 -            <fileset dir="${build.web.dir}"/>
  25.666 -        </jar>
  25.667 -    </target>
  25.668 -    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
  25.669 -    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
  25.670 -        <copyfiles files="${libs.spring-framework.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
  25.671 -        <mkdir dir="${build.web.dir}/META-INF"/>
  25.672 -        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
  25.673 -    </target>
  25.674 -    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
  25.675 -        <copyfiles files="${libs.spring-framework.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
  25.676 -    </target>
  25.677 -    <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
  25.678 -        <delete dir="${build.web.dir}/WEB-INF/lib"/>
  25.679 -    </target>
  25.680 -    <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
  25.681 -        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
  25.682 -        <mkdir dir="${dist.jar.dir}"/>
  25.683 -        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
  25.684 -            <fileset dir="${build.web.dir}"/>
  25.685 -        </jar>
  25.686 -    </target>
  25.687 -    <target name="-post-dist">
  25.688 -        <!-- Empty placeholder for easier customization. -->
  25.689 -        <!-- You can override this target in the ../build.xml file. -->
  25.690 -    </target>
  25.691 -    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
  25.692 -    <target depends="init,-clean-webinf-lib,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
  25.693 -    <!--
  25.694 -                EXECUTION SECTION
  25.695 -            -->
  25.696 -    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
  25.697 -    <target name="-pre-run-deploy">
  25.698 -        <!-- Empty placeholder for easier customization. -->
  25.699 -        <!-- You can override this target in the ../build.xml file. -->
  25.700 -    </target>
  25.701 -    <target name="-post-run-deploy">
  25.702 +    <target name="post-run-deploy">
  25.703          <!-- Empty placeholder for easier customization. -->
  25.704          <!-- You can override this target in the ../build.xml file. -->
  25.705      </target>
  25.706 @@ -570,18 +258,17 @@
  25.707          <!-- Empty placeholder for easier customization. -->
  25.708          <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
  25.709      </target>
  25.710 -    <target name="-run-deploy-am">
  25.711 +    <target name="-run-deploy-am" unless="no.deps">
  25.712          <!-- Task to deploy to the Access Manager runtime. -->
  25.713 +        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
  25.714 +        <ant antfile="${project.SpringDemo1-war}/build.xml" inheritall="false" target="-run-deploy-am"/>
  25.715      </target>
  25.716 -    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy" name="run-deploy">
  25.717 -        <nbjpdaappreloaded/>
  25.718 -    </target>
  25.719 +    <target depends="-init-cos,dist-directory-deploy,pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,post-run-deploy" name="run-deploy"/>
  25.720      <target if="netbeans.home" name="-run-deploy-nb">
  25.721 -        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
  25.722 +        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
  25.723      </target>
  25.724      <target name="-init-deploy-ant" unless="netbeans.home">
  25.725 -        <property name="deploy.ant.archive" value="${dist.war}"/>
  25.726 -        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
  25.727 +        <property name="deploy.ant.archive" value="${dist.jar}"/>
  25.728          <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
  25.729          <property name="deploy.ant.enabled" value="true"/>
  25.730      </target>
  25.731 @@ -589,8 +276,8 @@
  25.732      <target if="netbeans.home" name="-run-undeploy-nb">
  25.733          <fail message="Undeploy is not supported from within the IDE"/>
  25.734      </target>
  25.735 -    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
  25.736 -        <nbverify file="${dist.war}"/>
  25.737 +    <target depends="dist" name="verify">
  25.738 +        <nbverify file="${dist.jar}"/>
  25.739      </target>
  25.740      <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
  25.741      <target if="do.display.browser" name="-init-display-browser">
  25.742 @@ -598,7 +285,10 @@
  25.743              <isset property="netbeans.home"/>
  25.744          </condition>
  25.745          <condition property="do.display.browser.cl">
  25.746 -            <isset property="deploy.ant.enabled"/>
  25.747 +            <and>
  25.748 +                <isset property="deploy.ant.enabled"/>
  25.749 +                <isset property="deploy.ant.client.url"/>
  25.750 +            </and>
  25.751          </condition>
  25.752      </target>
  25.753      <target if="do.display.browser.nb" name="-display-browser-nb">
  25.754 @@ -645,214 +335,142 @@
  25.755      </target>
  25.756      <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
  25.757          <fail unless="browser">
  25.758 -                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
  25.759 -                </fail>
  25.760 +            Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
  25.761 +        </fail>
  25.762          <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
  25.763          <echo>Launching ${browse.url}</echo>
  25.764          <exec executable="${browser}" spawn="true">
  25.765              <arg line="${browser.args} ${browse.url}"/>
  25.766          </exec>
  25.767      </target>
  25.768 -    <target depends="init,-init-cos,compile-single" name="run-main">
  25.769 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  25.770 -        <webproject1:java classname="${run.class}"/>
  25.771 +    <target depends="init" if="app.client" name="run-ac">
  25.772 +        <antcall target="run-${app.client}"/>
  25.773      </target>
  25.774 -    <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
  25.775 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  25.776 -        <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  25.777 +    <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
  25.778 +        <property name="client.jar" value="${dist.dir}/SpringDemo1Client.jar"/>
  25.779 +        <sleep seconds="3"/>
  25.780 +        <copy failonerror="false" file="${wa.copy.client.jar.from}/SpringDemo1/SpringDemo1Client.jar" todir="${dist.dir}"/>
  25.781 +        <copy failonerror="false" flatten="true" todir="${dist.dir}/">
  25.782 +            <fileset dir="${wa.copy.client.jar.from}/SpringDemo1" includes="**/SpringDemo1Client.jar"/>
  25.783 +        </copy>
  25.784 +        <copy flatten="true" todir="${dist.dir}/SpringDemo1Client">
  25.785 +            <fileset dir="${wa.copy.client.jar.from}/SpringDemo1" includes="**/*.*ar"/>
  25.786 +        </copy>
  25.787 +        <copy failonerror="false" flatten="false" todir="${dist.dir}/SpringDemo1Client">
  25.788 +            <fileset dir="${dist.dir}/gfdeploy/SpringDemo1" includes="**/*.jar"/>
  25.789 +        </copy>
  25.790      </target>
  25.791      <!--
  25.792 -                DEBUGGING SECTION
  25.793 -            -->
  25.794 -    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
  25.795 -        <nbstartserver debugmode="true"/>
  25.796 +    DEBUGGING SECTION
  25.797 +    -->
  25.798 +    <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
  25.799 +    <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
  25.800 +        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
  25.801          <antcall target="connect-debugger"/>
  25.802 -        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
  25.803          <antcall target="debug-display-browser"/>
  25.804 -        <antcall target="connect-client-debugger"/>
  25.805      </target>
  25.806 -    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
  25.807 +    <target name="connect-debugger" unless="is.debugged">
  25.808          <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
  25.809              <classpath>
  25.810 -                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
  25.811 +                <path path="${debug.classpath}"/>
  25.812 +                <fileset dir="${build.dir}/lib" includes="*.jar"/>
  25.813              </classpath>
  25.814              <sourcepath>
  25.815 -                <path path="${web.docbase.dir}"/>
  25.816 +                <path path="${ear.docbase.dirs}"/>
  25.817              </sourcepath>
  25.818          </nbjpdaconnect>
  25.819      </target>
  25.820 -    <target if="do.display.browser.debug" name="debug-display-browser">
  25.821 +    <target if="do.display.browser" name="debug-display-browser">
  25.822          <nbbrowse url="${client.url}"/>
  25.823      </target>
  25.824 -    <target if="do.debug.client" name="connect-client-debugger">
  25.825 -        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
  25.826 +    <target name="-init-debug-args">
  25.827 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
  25.828 +        <condition property="have-jdk-older-than-1.4">
  25.829 +            <or>
  25.830 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
  25.831 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
  25.832 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
  25.833 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
  25.834 +            </or>
  25.835 +        </condition>
  25.836 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  25.837 +            <istrue value="${have-jdk-older-than-1.4}"/>
  25.838 +        </condition>
  25.839      </target>
  25.840 -    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  25.841 -        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  25.842 -        <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  25.843 +    <target depends="init,-init-debug-args" if="can.debug.appclient" name="run-debug-appclient">
  25.844 +        <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
  25.845 +            <attribute name="mainclass"/>
  25.846 +            <attribute default="${debug.classpath}" name="classpath"/>
  25.847 +            <element name="customize" optional="true"/>
  25.848 +            <attribute default="${application.args.param}" name="args"/>
  25.849 +            <sequential>
  25.850 +                <parallel>
  25.851 +                    <java classname="@{mainclass}" fork="true">
  25.852 +                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  25.853 +                        <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
  25.854 +                        <jvmarg line="${debug-args-line}"/>
  25.855 +                        <jvmarg value="-Xrunjdwp:transport=${jpda.transport},server=y,address=${jpda.address},suspend=y"/>
  25.856 +                        <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
  25.857 +                        <arg line="@{args}"/>
  25.858 +                        <classpath>
  25.859 +                            <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
  25.860 +                            <path path="@{classpath}"/>
  25.861 +                        </classpath>
  25.862 +                        <syspropertyset>
  25.863 +                            <propertyref prefix="run-sys-prop."/>
  25.864 +                            <mapper from="run-sys-prop.*" to="*" type="glob"/>
  25.865 +                        </syspropertyset>
  25.866 +                        <customize/>
  25.867 +                    </java>
  25.868 +                    <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
  25.869 +                        <classpath>
  25.870 +                            <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
  25.871 +                            <path path="@{classpath}"/>
  25.872 +                        </classpath>
  25.873 +                        <sourcepath>
  25.874 +                            <path path="${src.dir}"/>
  25.875 +                        </sourcepath>
  25.876 +                    </nbjpdaconnect>
  25.877 +                </parallel>
  25.878 +            </sequential>
  25.879 +        </macrodef>
  25.880 +        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false"/>
  25.881 +        <antcall target="debug-${app.client}"/>
  25.882      </target>
  25.883 -    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  25.884 -    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
  25.885 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  25.886 -        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  25.887 +    <!--
  25.888 +    CLEANUP SECTION
  25.889 +    -->
  25.890 +    <target depends="init" name="deps-clean" unless="no.deps">
  25.891 +        <condition property="build.deploy.on.save" value="false">
  25.892 +            <not>
  25.893 +                <isset property="build.deploy.on.save"/>
  25.894 +            </not>
  25.895 +        </condition>
  25.896 +        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="clean-ear">
  25.897 +            <property location="${build.dir}" name="dist.ear.dir"/>
  25.898 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  25.899 +        </ant>
  25.900 +        <condition property="build.deploy.on.save" value="false">
  25.901 +            <not>
  25.902 +                <isset property="build.deploy.on.save"/>
  25.903 +            </not>
  25.904 +        </condition>
  25.905 +        <ant antfile="${project.SpringDemo1-war}/build.xml" inheritall="false" target="clean-ear">
  25.906 +            <property location="${build.dir}" name="dist.ear.dir"/>
  25.907 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  25.908 +        </ant>
  25.909      </target>
  25.910 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  25.911 -        <webproject1:nbjpdastart name="${debug.class}"/>
  25.912 -    </target>
  25.913 -    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  25.914 -        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  25.915 -        <webproject1:debug classname="${debug.class}"/>
  25.916 -    </target>
  25.917 -    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
  25.918 -    <target depends="init" name="-pre-debug-fix">
  25.919 -        <fail unless="fix.includes">Must set fix.includes</fail>
  25.920 -        <property name="javac.includes" value="${fix.includes}.java"/>
  25.921 -    </target>
  25.922 -    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  25.923 -        <webproject1:nbjpdareload/>
  25.924 -    </target>
  25.925 -    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  25.926 -    <!--
  25.927 -                JAVADOC SECTION
  25.928 -            -->
  25.929 -    <target depends="init" name="javadoc-build">
  25.930 -        <mkdir dir="${dist.javadoc.dir}"/>
  25.931 -        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
  25.932 -            <classpath>
  25.933 -                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
  25.934 -            </classpath>
  25.935 -            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  25.936 -                <filename name="**/*.java"/>
  25.937 -            </fileset>
  25.938 -            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  25.939 -                <include name="**/*.java"/>
  25.940 -            </fileset>
  25.941 -        </javadoc>
  25.942 -    </target>
  25.943 -    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
  25.944 -        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  25.945 -    </target>
  25.946 -    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
  25.947 -    <!--
  25.948 -                
  25.949 -                JUNIT COMPILATION SECTION
  25.950 -            -->
  25.951 -    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  25.952 -        <mkdir dir="${build.test.classes.dir}"/>
  25.953 -        <property name="j2ee.platform.embeddableejb.classpath" value=""/>
  25.954 -    </target>
  25.955 -    <target name="-pre-compile-test">
  25.956 -        <!-- Empty placeholder for easier customization. -->
  25.957 -        <!-- You can override this target in the ../build.xml file. -->
  25.958 -    </target>
  25.959 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
  25.960 -        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  25.961 -        <copy todir="${build.test.classes.dir}">
  25.962 -            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  25.963 -        </copy>
  25.964 -    </target>
  25.965 -    <target name="-post-compile-test">
  25.966 -        <!-- Empty placeholder for easier customization. -->
  25.967 -        <!-- You can override this target in the ../build.xml file. -->
  25.968 -    </target>
  25.969 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  25.970 -    <target name="-pre-compile-test-single">
  25.971 -        <!-- Empty placeholder for easier customization. -->
  25.972 -        <!-- You can override this target in the ../build.xml file. -->
  25.973 -    </target>
  25.974 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  25.975 -        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  25.976 -        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
  25.977 -        <copy todir="${build.test.classes.dir}">
  25.978 -            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  25.979 -        </copy>
  25.980 -    </target>
  25.981 -    <target name="-post-compile-test-single">
  25.982 -        <!-- Empty placeholder for easier customization. -->
  25.983 -        <!-- You can override this target in the ../build.xml file. -->
  25.984 -    </target>
  25.985 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  25.986 -    <!--
  25.987 -                
  25.988 -                JUNIT EXECUTION SECTION
  25.989 -            -->
  25.990 -    <target depends="init" if="have.tests" name="-pre-test-run">
  25.991 -        <mkdir dir="${build.test.results.dir}"/>
  25.992 -    </target>
  25.993 -    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  25.994 -        <webproject2:junit testincludes="**/*Test.java"/>
  25.995 -    </target>
  25.996 -    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  25.997 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  25.998 -    </target>
  25.999 -    <target depends="init" if="have.tests" name="test-report"/>
 25.1000 -    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
 25.1001 -    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
 25.1002 -    <target depends="init" if="have.tests" name="-pre-test-run-single">
 25.1003 -        <mkdir dir="${build.test.results.dir}"/>
 25.1004 -    </target>
 25.1005 -    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
 25.1006 -        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
 25.1007 -        <webproject2:junit excludes="" includes="${test.includes}"/>
 25.1008 -    </target>
 25.1009 -    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
 25.1010 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
 25.1011 -    </target>
 25.1012 -    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
 25.1013 -    <!--
 25.1014 -                
 25.1015 -                JUNIT DEBUGGING SECTION
 25.1016 -            -->
 25.1017 -    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
 25.1018 -        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
 25.1019 -        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
 25.1020 -        <delete file="${test.report.file}"/>
 25.1021 -        <!-- must exist, otherwise the XML formatter would fail -->
 25.1022 -        <mkdir dir="${build.test.results.dir}"/>
 25.1023 -        <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
 25.1024 -            <customize>
 25.1025 -                <arg value="showoutput=true"/>
 25.1026 -                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
 25.1027 -                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
 25.1028 -            </customize>
 25.1029 -        </webproject1:debug>
 25.1030 -    </target>
 25.1031 -    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
 25.1032 -        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
 25.1033 -    </target>
 25.1034 -    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
 25.1035 -    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
 25.1036 -        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
 25.1037 -    </target>
 25.1038 -    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
 25.1039 -    <!--
 25.1040 -                
 25.1041 -                CLEANUP SECTION
 25.1042 -            -->
 25.1043 -    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps"/>
 25.1044      <target depends="init" name="do-clean">
 25.1045 -        <condition property="build.dir.to.clean" value="${build.web.dir}">
 25.1046 -            <isset property="dist.ear.dir"/>
 25.1047 -        </condition>
 25.1048 -        <property name="build.dir.to.clean" value="${build.web.dir}"/>
 25.1049 -        <delete includeEmptyDirs="true" quiet="true">
 25.1050 -            <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
 25.1051 -        </delete>
 25.1052          <delete dir="${build.dir}"/>
 25.1053 -        <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
 25.1054          <delete dir="${dist.dir}"/>
 25.1055 -    </target>
 25.1056 -    <target depends="do-clean" if="status.clean-failed" name="check-clean">
 25.1057 -        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
 25.1058 -        <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
 25.1059 +        <delete dir="${build.dir}"/>
 25.1060      </target>
 25.1061      <target depends="init" if="netbeans.home" name="undeploy-clean">
 25.1062          <nbundeploy failOnError="false" startServer="false"/>
 25.1063      </target>
 25.1064 -    <target name="-post-clean">
 25.1065 +    <target name="post-clean">
 25.1066          <!-- Empty placeholder for easier customization. -->
 25.1067          <!-- You can override this target in the ../build.xml file. -->
 25.1068      </target>
 25.1069 -    <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
 25.1070 -    <target depends="clean" description="Clean build products." name="clean-ear"/>
 25.1071 +    <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
 25.1072  </project>
    26.1 --- a/java/SpringDemo1/nbproject/genfiles.properties	Wed Feb 10 18:25:55 2010 +0100
    26.2 +++ b/java/SpringDemo1/nbproject/genfiles.properties	Wed Feb 10 20:55:08 2010 +0100
    26.3 @@ -1,8 +1,8 @@
    26.4 -build.xml.data.CRC32=99d5a06e
    26.5 -build.xml.script.CRC32=6de4a4de
    26.6 -build.xml.stylesheet.CRC32=c0ebde35@1.21.2.1
    26.7 +build.xml.data.CRC32=62aa1891
    26.8 +build.xml.script.CRC32=33d0a5b2
    26.9 +build.xml.stylesheet.CRC32=475c2a62@1.17.2
   26.10  # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
   26.11  # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
   26.12 -nbproject/build-impl.xml.data.CRC32=99d5a06e
   26.13 -nbproject/build-impl.xml.script.CRC32=4d6f4164
   26.14 -nbproject/build-impl.xml.stylesheet.CRC32=b139b33b@1.21.2.1
   26.15 +nbproject/build-impl.xml.data.CRC32=62aa1891
   26.16 +nbproject/build-impl.xml.script.CRC32=b5ca9b59
   26.17 +nbproject/build-impl.xml.stylesheet.CRC32=624b8ca2@1.17.2
    27.1 --- a/java/SpringDemo1/nbproject/project.properties	Wed Feb 10 18:25:55 2010 +0100
    27.2 +++ b/java/SpringDemo1/nbproject/project.properties	Wed Feb 10 20:55:08 2010 +0100
    27.3 @@ -1,73 +1,33 @@
    27.4 -build.classes.dir=${build.web.dir}/WEB-INF/classes
    27.5 -build.classes.excludes=**/*.java,**/*.form
    27.6 +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs
    27.7  build.dir=build
    27.8  build.generated.dir=${build.dir}/generated
    27.9 -build.generated.sources.dir=${build.dir}/generated-sources
   27.10 -build.test.classes.dir=${build.dir}/test/classes
   27.11 -build.test.results.dir=${build.dir}/test/results
   27.12 -build.web.dir=${build.dir}/web
   27.13 -build.web.excludes=${build.classes.excludes}
   27.14 +client.module.uri=SpringDemo1-war
   27.15  client.urlPart=
   27.16 -compile.jsps=false
   27.17 -conf.dir=${source.root}/conf
   27.18 -debug.classpath=${build.classes.dir}:${javac.classpath}
   27.19 -debug.test.classpath=\
   27.20 -    ${run.test.classpath}
   27.21 -display.browser=false
   27.22 +debug.classpath=${javac.classpath}::${jar.content.additional}:${run.classpath}
   27.23 +display.browser=true
   27.24  dist.dir=dist
   27.25 -dist.ear.war=${dist.dir}/${war.ear.name}
   27.26 -dist.javadoc.dir=${dist.dir}/javadoc
   27.27 -dist.war=${dist.dir}/${war.name}
   27.28 +dist.jar=${dist.dir}/${jar.name}
   27.29  endorsed.classpath=\
   27.30      ${libs.javaee-endorsed-api-6.0.classpath}
   27.31 -excludes=
   27.32 -includes=**
   27.33 +j2ee.appclient.mainclass.args=${j2ee.appclient.tool.args}
   27.34  j2ee.deploy.on.save=false
   27.35 -j2ee.platform=1.6-web
   27.36 +j2ee.platform=1.6
   27.37  j2ee.server.type=gfv3ee6
   27.38  jar.compress=false
   27.39 -javac.classpath=\
   27.40 -    ${libs.spring-framework.classpath}
   27.41 -# Space-separated list of extra javac options
   27.42 -javac.compilerargs=
   27.43 +jar.content.additional=\
   27.44 +    ${reference.SpringDemo1-war.dist-ear}:\
   27.45 +    ${reference.SpringDemo1-ejb.dist-ear}
   27.46 +jar.name=SpringDemo1.ear
   27.47  javac.debug=true
   27.48  javac.deprecation=false
   27.49  javac.source=1.5
   27.50  javac.target=1.5
   27.51 -javac.test.classpath=\
   27.52 -    ${javac.classpath}:\
   27.53 -    ${build.classes.dir}:\
   27.54 -    ${libs.junit.classpath}:\
   27.55 -    ${libs.junit_4.classpath}
   27.56 -javadoc.additionalparam=
   27.57 -javadoc.author=false
   27.58 -javadoc.encoding=${source.encoding}
   27.59 -javadoc.noindex=false
   27.60 -javadoc.nonavbar=false
   27.61 -javadoc.notree=false
   27.62 -javadoc.preview=true
   27.63 -javadoc.private=false
   27.64 -javadoc.splitindex=true
   27.65 -javadoc.use=true
   27.66 -javadoc.version=false
   27.67 -javadoc.windowtitle=
   27.68 -jspcompilation.classpath=${jspc.classpath}:${javac.classpath}
   27.69 -lib.dir=${web.docbase.dir}/WEB-INF/lib
   27.70 -persistence.xml.dir=${conf.dir}
   27.71 +meta.inf=src/conf
   27.72 +no.dependencies=false
   27.73  platform.active=default_platform
   27.74 +project.SpringDemo1-ejb=SpringDemo1-ejb
   27.75 +project.SpringDemo1-war=SpringDemo1-war
   27.76 +reference.SpringDemo1-ejb.dist-ear=${project.SpringDemo1-ejb}/dist/SpringDemo1-ejb.jar
   27.77 +reference.SpringDemo1-war.dist-ear=${project.SpringDemo1-war}/dist/SpringDemo1-war.war
   27.78  resource.dir=setup
   27.79 -run.test.classpath=\
   27.80 -    ${javac.test.classpath}:\
   27.81 -    ${build.test.classes.dir}
   27.82 -# Space-separated list of JVM arguments used when running a class with a main method or a unit test
   27.83 -# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
   27.84 -runmain.jvmargs=
   27.85 -source.encoding=UTF-8
   27.86 -source.root=src
   27.87 -src.dir=${source.root}/java
   27.88 -test.src.dir=test
   27.89 -war.content.additional=
   27.90 -war.ear.name=SpringDemo1.war
   27.91 -war.name=SpringDemo1.war
   27.92 -web.docbase.dir=web
   27.93 -webinf.dir=web/WEB-INF
   27.94 +source.root=.
    28.1 --- a/java/SpringDemo1/nbproject/project.xml	Wed Feb 10 18:25:55 2010 +0100
    28.2 +++ b/java/SpringDemo1/nbproject/project.xml	Wed Feb 10 20:55:08 2010 +0100
    28.3 @@ -1,23 +1,39 @@
    28.4  <?xml version="1.0" encoding="UTF-8"?>
    28.5  <project xmlns="http://www.netbeans.org/ns/project/1">
    28.6 -    <type>org.netbeans.modules.web.project</type>
    28.7 +    <type>org.netbeans.modules.j2ee.earproject</type>
    28.8      <configuration>
    28.9 -        <data xmlns="http://www.netbeans.org/ns/web-project/3">
   28.10 +        <data xmlns="http://www.netbeans.org/ns/j2ee-earproject/2">
   28.11              <name>SpringDemo1</name>
   28.12              <minimum-ant-version>1.6.5</minimum-ant-version>
   28.13 -            <web-module-libraries>
   28.14 -                <library dirs="200">
   28.15 -                    <file>${libs.spring-framework.classpath}</file>
   28.16 -                    <path-in-war>WEB-INF/lib</path-in-war>
   28.17 +            <web-module-libraries/>
   28.18 +            <web-module-additional-libraries>
   28.19 +                <library>
   28.20 +                    <file>${reference.SpringDemo1-war.dist-ear}</file>
   28.21 +                    <path-in-war>/</path-in-war>
   28.22                  </library>
   28.23 -            </web-module-libraries>
   28.24 -            <web-module-additional-libraries/>
   28.25 -            <source-roots>
   28.26 -                <root id="src.dir"/>
   28.27 -            </source-roots>
   28.28 -            <test-roots>
   28.29 -                <root id="test.src.dir"/>
   28.30 -            </test-roots>
   28.31 +                <library>
   28.32 +                    <file>${reference.SpringDemo1-ejb.dist-ear}</file>
   28.33 +                    <path-in-war>/</path-in-war>
   28.34 +                </library>
   28.35 +            </web-module-additional-libraries>
   28.36          </data>
   28.37 +        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
   28.38 +            <reference>
   28.39 +                <foreign-project>SpringDemo1-ejb</foreign-project>
   28.40 +                <artifact-type>j2ee_ear_archive</artifact-type>
   28.41 +                <script>build.xml</script>
   28.42 +                <target>dist-ear</target>
   28.43 +                <clean-target>clean-ear</clean-target>
   28.44 +                <id>dist-ear</id>
   28.45 +            </reference>
   28.46 +            <reference>
   28.47 +                <foreign-project>SpringDemo1-war</foreign-project>
   28.48 +                <artifact-type>j2ee_ear_archive</artifact-type>
   28.49 +                <script>build.xml</script>
   28.50 +                <target>dist-ear</target>
   28.51 +                <clean-target>clean-ear</clean-target>
   28.52 +                <id>dist-ear</id>
   28.53 +            </reference>
   28.54 +        </references>
   28.55      </configuration>
   28.56  </project>
    29.1 --- a/java/SpringDemo1/src/java/cz/frantovo/springDemo1/dao/KnihaDAO.java	Wed Feb 10 18:25:55 2010 +0100
    29.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.3 @@ -1,9 +0,0 @@
    29.4 -package cz.frantovo.springDemo1.dao;
    29.5 -
    29.6 -/**
    29.7 - *
    29.8 - * @author fiki
    29.9 - */
   29.10 -public class KnihaDAO {
   29.11 -
   29.12 -}
    30.1 --- a/java/SpringDemo1/src/java/cz/frantovo/springDemo1/dto/Kniha.java	Wed Feb 10 18:25:55 2010 +0100
    30.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    30.3 @@ -1,9 +0,0 @@
    30.4 -package cz.frantovo.springDemo1.dto;
    30.5 -
    30.6 -/**
    30.7 - *
    30.8 - * @author fiki
    30.9 - */
   30.10 -public class Kniha {
   30.11 -
   30.12 -}
    31.1 --- a/java/SpringDemo1/src/java/cz/frantovo/springDemo1/web/SpringDemo1Bean.java	Wed Feb 10 18:25:55 2010 +0100
    31.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    31.3 @@ -1,9 +0,0 @@
    31.4 -package cz.frantovo.springDemo1.web;
    31.5 -
    31.6 -/**
    31.7 - *
    31.8 - * @author fiki
    31.9 - */
   31.10 -public class SpringDemo1Bean {
   31.11 -
   31.12 -}
    32.1 --- a/java/SpringDemo1/web/WEB-INF/beans.xml	Wed Feb 10 18:25:55 2010 +0100
    32.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.3 @@ -1,5 +0,0 @@
    32.4 -<?xml version="1.0" encoding="UTF-8"?>
    32.5 -<beans xmlns="http://java.sun.com/xml/ns/javaee"
    32.6 -       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    32.7 -       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
    32.8 -</beans>
    33.1 --- a/java/SpringDemo1/web/WEB-INF/sun-web.xml	Wed Feb 10 18:25:55 2010 +0100
    33.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    33.3 @@ -1,11 +0,0 @@
    33.4 -<?xml version="1.0" encoding="UTF-8"?>
    33.5 -<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
    33.6 -<sun-web-app error-url="">
    33.7 -  <context-root>/SpringDemo1</context-root>
    33.8 -  <class-loader delegate="true"/>
    33.9 -  <jsp-config>
   33.10 -    <property name="keepgenerated" value="true">
   33.11 -      <description>Keep a copy of the generated servlet class' java code.</description>
   33.12 -    </property>
   33.13 -  </jsp-config>
   33.14 -</sun-web-app>
    34.1 --- a/java/SpringDemo1/web/index.jsp	Wed Feb 10 18:25:55 2010 +0100
    34.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    34.3 @@ -1,21 +0,0 @@
    34.4 -<?xml version="1.0" encoding="UTF-8"?>
    34.5 -<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    34.6 -	  xmlns:c="http://java.sun.com/jsp/jstl/core"
    34.7 -	  version="2.0">
    34.8 -    <jsp:directive.page contentType="application/xhtml+xml"/>
    34.9 -    <jsp:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
   34.10 -		doctype-root-element="html"
   34.11 -		omit-xml-declaration="false"/>
   34.12 -
   34.13 -    <html xmlns="http://www.w3.org/1999/xhtml">
   34.14 -	<head>
   34.15 -	    <title>SpringDemo1</title>
   34.16 -	</head>
   34.17 -	<body>
   34.18 -	    <h1>SpringDemo1</h1>
   34.19 -	    <p>Spring JDBC…</p>
   34.20 -
   34.21 -	</body>
   34.22 -    </html>
   34.23 -
   34.24 -</jsp:root>