1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/java/HibernateDemo1/HibernateDemo1-ejb/nbproject/build-impl.xml Sat Mar 14 21:58:41 2009 +0100
1.3 @@ -0,0 +1,582 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<!--
1.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
1.7 +*** EDIT ../build.xml INSTEAD ***
1.8 +
1.9 +For the purpose of easier reading the script
1.10 +is divided into following sections:
1.11 +
1.12 + - initialization
1.13 + - compilation
1.14 + - dist
1.15 + - execution
1.16 + - debugging
1.17 + - javadoc
1.18 + - cleanup
1.19 +
1.20 + -->
1.21 +<project xmlns:ejbjarproject1="http://www.netbeans.org/ns/j2ee-ejbjarproject/1" xmlns:ejbjarproject2="http://www.netbeans.org/ns/j2ee-ejbjarproject/2" xmlns:ejbjarproject3="http://www.netbeans.org/ns/j2ee-ejbjarproject/3" basedir=".." default="default" name="HibernateDemo1-ejb-impl">
1.22 + <import file="ant-deploy.xml"/>
1.23 + <target depends="dist,javadoc" description="Build whole project." name="default"/>
1.24 + <!--
1.25 + INITIALIZATION SECTION
1.26 + -->
1.27 + <target name="-pre-init">
1.28 + <!-- Empty placeholder for easier customization. -->
1.29 + <!-- You can override this target in the ../build.xml file. -->
1.30 + </target>
1.31 + <target depends="-pre-init" name="-init-private">
1.32 + <property file="nbproject/private/private.properties"/>
1.33 + </target>
1.34 + <target depends="-pre-init,-init-private" name="-init-userdir">
1.35 + <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
1.36 + </target>
1.37 + <target depends="-pre-init,-init-private,-init-userdir" name="-init-user">
1.38 + <property file="${user.properties.file}"/>
1.39 + <!-- The two properties below are usually overridden -->
1.40 + <!-- by the active platform. Just a fallback. -->
1.41 + <property name="default.javac.source" value="1.4"/>
1.42 + <property name="default.javac.target" value="1.4"/>
1.43 + </target>
1.44 + <target depends="-pre-init,-init-private,-init-userdir,-init-user" name="-init-project">
1.45 + <property file="nbproject/project.properties"/>
1.46 + </target>
1.47 + <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
1.48 + <!-- Ensure configuration directory exists. -->
1.49 + <mkdir dir="${meta.inf}"/>
1.50 + <property name="runmain.jvmargs" value=""/>
1.51 + <condition property="have.tests">
1.52 + <or>
1.53 + <available file="${test.src.dir}"/>
1.54 + </or>
1.55 + </condition>
1.56 + <condition property="have.sources">
1.57 + <or>
1.58 + <available file="${src.dir}"/>
1.59 + </or>
1.60 + </condition>
1.61 + <condition property="netbeans.home+have.tests">
1.62 + <and>
1.63 + <isset property="netbeans.home"/>
1.64 + <isset property="have.tests"/>
1.65 + </and>
1.66 + </condition>
1.67 + <condition property="no.javadoc.preview">
1.68 + <isfalse value="${javadoc.preview}"/>
1.69 + </condition>
1.70 + <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
1.71 + <condition property="classes.dir" value="${build.ear.classes.dir}">
1.72 + <isset property="dist.ear.dir"/>
1.73 + </condition>
1.74 + <property name="classes.dir" value="${build.classes.dir}"/>
1.75 + <condition property="no.deps">
1.76 + <and>
1.77 + <istrue value="${no.dependencies}"/>
1.78 + </and>
1.79 + </condition>
1.80 + <condition property="no.dist.ear.dir">
1.81 + <not>
1.82 + <isset property="dist.ear.dir"/>
1.83 + </not>
1.84 + </condition>
1.85 + <property name="source.encoding" value="${file.encoding}"/>
1.86 + <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
1.87 + <and>
1.88 + <isset property="javadoc.encoding"/>
1.89 + <not>
1.90 + <equals arg1="${javadoc.encoding}" arg2=""/>
1.91 + </not>
1.92 + </and>
1.93 + </condition>
1.94 + <property name="javadoc.encoding.used" value="${source.encoding}"/>
1.95 + <property name="includes" value="**"/>
1.96 + <property name="excludes" value=""/>
1.97 + <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
1.98 + <and>
1.99 + <isset property="jaxws.endorsed.dir"/>
1.100 + <available file="nbproject/jaxws-build.xml"/>
1.101 + </and>
1.102 + </condition>
1.103 + </target>
1.104 + <target depends="init" name="-init-cos" unless="deploy.on.save">
1.105 + <condition property="deploy.on.save" value="true">
1.106 + <istrue value="${j2ee.deploy.on.save}"/>
1.107 + </condition>
1.108 + </target>
1.109 + <target name="-post-init">
1.110 + <!-- Empty placeholder for easier customization. -->
1.111 + <!-- You can override this target in the ../build.xml file. -->
1.112 + </target>
1.113 + <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
1.114 + <fail unless="src.dir">Must set src.dir</fail>
1.115 + <fail unless="test.src.dir">Must set test.src.dir</fail>
1.116 + <fail unless="build.dir">Must set build.dir</fail>
1.117 + <fail unless="build.generated.dir">Must set build.generated.dir</fail>
1.118 + <fail unless="dist.dir">Must set dist.dir</fail>
1.119 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
1.120 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
1.121 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
1.122 + <fail unless="dist.jar">Must set dist.jar</fail>
1.123 + <fail unless="j2ee.platform.classpath">
1.124 +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
1.125 +Either open the project in the IDE and assign the server or setup the server classpath manually.
1.126 +For example like this:
1.127 + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
1.128 +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
1.129 + </fail>
1.130 + </target>
1.131 + <target name="-init-macrodef-property">
1.132 + <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
1.133 + <attribute name="name"/>
1.134 + <attribute name="value"/>
1.135 + <sequential>
1.136 + <property name="@{name}" value="${@{value}}"/>
1.137 + </sequential>
1.138 + </macrodef>
1.139 + </target>
1.140 + <target name="-init-macrodef-javac">
1.141 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
1.142 + <attribute default="${src.dir}" name="srcdir"/>
1.143 + <attribute default="${build.classes.dir}" name="destdir"/>
1.144 + <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
1.145 + <attribute default="${includes}" name="includes"/>
1.146 + <attribute default="${excludes}" name="excludes"/>
1.147 + <attribute default="${javac.debug}" name="debug"/>
1.148 + <element name="customize" optional="true"/>
1.149 + <sequential>
1.150 + <property name="javac.compilerargs" value=""/>
1.151 + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
1.152 + <classpath>
1.153 + <path path="@{classpath}"/>
1.154 + </classpath>
1.155 + <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
1.156 + <customize/>
1.157 + </javac>
1.158 + </sequential>
1.159 + </macrodef>
1.160 + </target>
1.161 + <target name="-init-macrodef-junit">
1.162 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
1.163 + <attribute default="${includes}" name="includes"/>
1.164 + <attribute default="${excludes}" name="excludes"/>
1.165 + <attribute default="**" name="testincludes"/>
1.166 + <sequential>
1.167 + <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
1.168 + <batchtest todir="${build.test.results.dir}">
1.169 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
1.170 + <filename name="@{testincludes}"/>
1.171 + </fileset>
1.172 + </batchtest>
1.173 + <classpath>
1.174 + <path path="${run.test.classpath}"/>
1.175 + <path path="${j2ee.platform.classpath}"/>
1.176 + </classpath>
1.177 + <syspropertyset>
1.178 + <propertyref prefix="test-sys-prop."/>
1.179 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
1.180 + </syspropertyset>
1.181 + <formatter type="brief" usefile="false"/>
1.182 + <formatter type="xml"/>
1.183 + <jvmarg line="${runmain.jvmargs}"/>
1.184 + </junit>
1.185 + </sequential>
1.186 + </macrodef>
1.187 + </target>
1.188 + <target name="-init-macrodef-java">
1.189 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
1.190 + <attribute default="${main.class}" name="classname"/>
1.191 + <element name="customize" optional="true"/>
1.192 + <sequential>
1.193 + <java classname="@{classname}" fork="true">
1.194 + <jvmarg line="${runmain.jvmargs}"/>
1.195 + <classpath>
1.196 + <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
1.197 + </classpath>
1.198 + <syspropertyset>
1.199 + <propertyref prefix="run-sys-prop."/>
1.200 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
1.201 + </syspropertyset>
1.202 + <customize/>
1.203 + </java>
1.204 + </sequential>
1.205 + </macrodef>
1.206 + </target>
1.207 + <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
1.208 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
1.209 + <attribute default="${main.class}" name="name"/>
1.210 + <attribute default="${debug.classpath}" name="classpath"/>
1.211 + <sequential>
1.212 + <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
1.213 + <classpath>
1.214 + <path path="@{classpath}"/>
1.215 + </classpath>
1.216 + </nbjpdastart>
1.217 + </sequential>
1.218 + </macrodef>
1.219 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
1.220 + <attribute default="${build.classes.dir}" name="dir"/>
1.221 + <sequential>
1.222 + <nbjpdareload>
1.223 + <fileset dir="@{dir}" includes="${fix.classes}">
1.224 + <include name="${fix.includes}*.class"/>
1.225 + </fileset>
1.226 + </nbjpdareload>
1.227 + </sequential>
1.228 + </macrodef>
1.229 + <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
1.230 + <sequential>
1.231 + <nbjpdaappreloaded/>
1.232 + </sequential>
1.233 + </macrodef>
1.234 + </target>
1.235 + <target name="-init-debug-args">
1.236 + <property name="version-output" value="java version "${ant.java.version}"/>
1.237 + <condition property="have-jdk-older-than-1.4">
1.238 + <or>
1.239 + <contains string="${version-output}" substring="java version "1.0"/>
1.240 + <contains string="${version-output}" substring="java version "1.1"/>
1.241 + <contains string="${version-output}" substring="java version "1.2"/>
1.242 + <contains string="${version-output}" substring="java version "1.3"/>
1.243 + </or>
1.244 + </condition>
1.245 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
1.246 + <istrue value="${have-jdk-older-than-1.4}"/>
1.247 + </condition>
1.248 + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
1.249 + <os family="windows"/>
1.250 + </condition>
1.251 + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
1.252 + <isset property="debug.transport"/>
1.253 + </condition>
1.254 + </target>
1.255 + <target depends="-init-debug-args" name="-init-macrodef-debug">
1.256 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
1.257 + <attribute default="${main.class}" name="classname"/>
1.258 + <attribute default="${debug.classpath}" name="classpath"/>
1.259 + <attribute default="${application.args}" name="args"/>
1.260 + <element name="customize" optional="true"/>
1.261 + <sequential>
1.262 + <java classname="@{classname}" fork="true">
1.263 + <jvmarg line="${debug-args-line}"/>
1.264 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
1.265 + <classpath>
1.266 + <path path="@{classpath}"/>
1.267 + </classpath>
1.268 + <arg line="@{args}"/>
1.269 + <customize/>
1.270 + </java>
1.271 + </sequential>
1.272 + </macrodef>
1.273 + </target>
1.274 + <target name="-init-taskdefs">
1.275 + <fail unless="libs.CopyLibs.classpath">
1.276 +The libs.CopyLibs.classpath property is not set up.
1.277 +This property must point to
1.278 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
1.279 +of NetBeans IDE installation and is usually located at
1.280 +<netbeans_installation>/java<version>/ant/extra folder.
1.281 +Either open the project in the IDE and make sure CopyLibs library
1.282 +exists or setup the property manually. For example like this:
1.283 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
1.284 + </fail>
1.285 + <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
1.286 + </target>
1.287 + <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-debug,-init-taskdefs" name="init"/>
1.288 + <!--
1.289 + COMPILATION SECTION
1.290 + -->
1.291 + <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
1.292 + <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="jar"/>
1.293 + </target>
1.294 + <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
1.295 + <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="jar"/>
1.296 + </target>
1.297 + <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
1.298 + <target depends="init,deps-jar" name="-pre-pre-compile">
1.299 + <mkdir dir="${build.classes.dir}"/>
1.300 + <mkdir dir="${build.ear.classes.dir}"/>
1.301 + </target>
1.302 + <target name="-pre-compile">
1.303 + <!-- Empty placeholder for easier customization. -->
1.304 + <!-- You can override this target in the ../build.xml file. -->
1.305 + </target>
1.306 + <target depends="compile" name="library-inclusion-in-archive">
1.307 + <copyfiles files="${reference.HibernateDemo1-lib.jar}" todir="${build.classes.dir}"/>
1.308 + </target>
1.309 + <target depends="compile" name="library-inclusion-in-manifest">
1.310 + <copyfiles files="${reference.HibernateDemo1-lib.jar}" manifestproperty="manifest.reference.HibernateDemo1-lib.jar" todir="${dist.ear.dir}"/>
1.311 + <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
1.312 + <attribute name="Class-Path" value="${manifest.reference.HibernateDemo1-lib.jar} "/>
1.313 + </manifest>
1.314 + </target>
1.315 + <target name="-copy-meta-inf">
1.316 + <copy todir="${classes.dir}">
1.317 + <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
1.318 + </copy>
1.319 + <copy todir="${classes.dir}/META-INF">
1.320 + <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
1.321 + </copy>
1.322 + </target>
1.323 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
1.324 + <ejbjarproject2:javac destdir="${classes.dir}"/>
1.325 + <copy todir="${classes.dir}">
1.326 + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1.327 + </copy>
1.328 + </target>
1.329 + <target name="-post-compile">
1.330 + <!-- Empty placeholder for easier customization. -->
1.331 + <!-- You can override this target in the ../build.xml file. -->
1.332 + </target>
1.333 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
1.334 + <target name="-pre-compile-single">
1.335 + <!-- Empty placeholder for easier customization. -->
1.336 + <!-- You can override this target in the ../build.xml file. -->
1.337 + </target>
1.338 + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
1.339 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.340 + <ejbjarproject2:javac excludes="" includes="${javac.includes}"/>
1.341 + </target>
1.342 + <target name="-post-compile-single">
1.343 + <!-- Empty placeholder for easier customization. -->
1.344 + <!-- You can override this target in the ../build.xml file. -->
1.345 + </target>
1.346 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
1.347 + <!--
1.348 + DIST BUILDING SECTION
1.349 + -->
1.350 + <target name="-pre-dist">
1.351 + <!-- Empty placeholder for easier customization. -->
1.352 + <!-- You can override this target in the ../build.xml file. -->
1.353 + </target>
1.354 + <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
1.355 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
1.356 + <mkdir dir="${dist.jar.dir}"/>
1.357 + <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
1.358 + <fileset dir="${build.classes.dir}"/>
1.359 + </jar>
1.360 + </target>
1.361 + <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
1.362 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
1.363 + <mkdir dir="${dist.jar.dir}"/>
1.364 + <jar compress="${jar.compress}" jarfile="${dist.jar}">
1.365 + <fileset dir="${build.classes.dir}"/>
1.366 + </jar>
1.367 + </target>
1.368 + <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
1.369 + <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
1.370 + <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
1.371 + <mkdir dir="${dist.jar.dir}"/>
1.372 + <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
1.373 + <fileset dir="${build.ear.classes.dir}"/>
1.374 + </jar>
1.375 + </target>
1.376 + <target name="-post-dist">
1.377 + <!-- Empty placeholder for easier customization. -->
1.378 + <!-- You can override this target in the ../build.xml file. -->
1.379 + </target>
1.380 + <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
1.381 + <target depends="init,-init-cos,compile,-pre-dist,-do-ear-dist,-post-dist" description="Build distribution (JAR) to be packaged into an EAR." name="dist-ear"/>
1.382 + <!--
1.383 + EXECUTION SECTION
1.384 + -->
1.385 + <target depends="run-deploy" description="Deploy to server." name="run"/>
1.386 + <target name="-init-deploy">
1.387 + <property name="include.jar.manifest" value=""/>
1.388 + </target>
1.389 + <target name="pre-run-deploy">
1.390 + <!-- Empty placeholder for easier customization. -->
1.391 + <!-- You can override this target in the ../build.xml file. -->
1.392 + </target>
1.393 + <target name="post-run-deploy">
1.394 + <!-- Empty placeholder for easier customization. -->
1.395 + <!-- You can override this target in the ../build.xml file. -->
1.396 + </target>
1.397 + <target name="-pre-nbmodule-run-deploy">
1.398 + <!-- Empty placeholder for easier customization. -->
1.399 + <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
1.400 + </target>
1.401 + <target name="-post-nbmodule-run-deploy">
1.402 + <!-- Empty placeholder for easier customization. -->
1.403 + <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
1.404 + </target>
1.405 + <target name="-run-deploy-am">
1.406 + <!-- Task to deploy to the Access Manager runtime. -->
1.407 + </target>
1.408 + <target depends="init,-init-cos,-init-deploy,compile,library-inclusion-in-archive,dist,pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,post-run-deploy" name="run-deploy">
1.409 + <nbjpdaappreloaded/>
1.410 + </target>
1.411 + <target if="netbeans.home" name="-run-deploy-nb">
1.412 + <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
1.413 + </target>
1.414 + <target name="-init-deploy-ant" unless="netbeans.home">
1.415 + <property name="deploy.ant.archive" value="${dist.jar}"/>
1.416 + <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
1.417 + <property name="deploy.ant.enabled" value="true"/>
1.418 + </target>
1.419 + <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
1.420 + <target if="netbeans.home" name="-run-undeploy-nb">
1.421 + <fail message="Undeploy is not supported from within the IDE"/>
1.422 + </target>
1.423 + <target depends="dist" name="verify">
1.424 + <nbverify file="${dist.jar}"/>
1.425 + </target>
1.426 + <target depends="init,compile-single" name="run-main">
1.427 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1.428 + <ejbjarproject3:java classname="${run.class}"/>
1.429 + </target>
1.430 + <!--
1.431 + DEBUGGING SECTION
1.432 + -->
1.433 + <target depends="init,compile,dist" description="Debug project in IDE." if="netbeans.home" name="debug">
1.434 + <nbdeploy debugmode="true"/>
1.435 + <antcall target="connect-debugger"/>
1.436 + </target>
1.437 + <target name="connect-debugger" unless="is.debugged">
1.438 + <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
1.439 + <classpath>
1.440 + <path path="${debug.classpath}"/>
1.441 + </classpath>
1.442 + <sourcepath>
1.443 + <path path="${web.docbase.dir}"/>
1.444 + </sourcepath>
1.445 + </nbjpdaconnect>
1.446 + </target>
1.447 + <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1.448 + <ejbjarproject1:nbjpdastart/>
1.449 + </target>
1.450 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1.451 + <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
1.452 + <ejbjarproject1:debug/>
1.453 + </target>
1.454 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
1.455 + <target depends="init" name="-pre-debug-fix">
1.456 + <fail unless="fix.includes">Must set fix.includes</fail>
1.457 + <property name="javac.includes" value="${fix.includes}.java"/>
1.458 + </target>
1.459 + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1.460 + <ejbjarproject1:nbjpdareload/>
1.461 + </target>
1.462 + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1.463 + <!--
1.464 + JAVADOC SECTION
1.465 + -->
1.466 + <target depends="init" name="javadoc-build">
1.467 + <mkdir dir="${dist.javadoc.dir}"/>
1.468 + <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
1.469 + <classpath>
1.470 + <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
1.471 + </classpath>
1.472 + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1.473 + <filename name="**/*.java"/>
1.474 + </fileset>
1.475 + </javadoc>
1.476 + </target>
1.477 + <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
1.478 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1.479 + </target>
1.480 + <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
1.481 + <!--
1.482 + JUNIT COMPILATION SECTION
1.483 + -->
1.484 + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1.485 + <mkdir dir="${build.test.classes.dir}"/>
1.486 + </target>
1.487 + <target name="-pre-compile-test">
1.488 + <!-- Empty placeholder for easier customization. -->
1.489 + <!-- You can override this target in the ../build.xml file. -->
1.490 + </target>
1.491 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
1.492 + <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1.493 + <copy todir="${build.test.classes.dir}">
1.494 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1.495 + </copy>
1.496 + </target>
1.497 + <target name="-post-compile-test">
1.498 + <!-- Empty placeholder for easier customization. -->
1.499 + <!-- You can override this target in the ../build.xml file. -->
1.500 + </target>
1.501 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1.502 + <target name="-pre-compile-test-single">
1.503 + <!-- Empty placeholder for easier customization. -->
1.504 + <!-- You can override this target in the ../build.xml file. -->
1.505 + </target>
1.506 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1.507 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.508 + <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
1.509 + </target>
1.510 + <target name="-post-compile-test-single">
1.511 + <!-- Empty placeholder for easier customization. -->
1.512 + <!-- You can override this target in the ../build.xml file. -->
1.513 + </target>
1.514 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1.515 + <!--
1.516 + JUNIT EXECUTION SECTION
1.517 + -->
1.518 + <target depends="init" if="have.tests" name="-pre-test-run">
1.519 + <mkdir dir="${build.test.results.dir}"/>
1.520 + </target>
1.521 + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1.522 + <ejbjarproject2:junit testincludes="**/*Test.java"/>
1.523 + </target>
1.524 + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1.525 + <fail if="tests.failed">Some tests failed; see details above.</fail>
1.526 + </target>
1.527 + <target depends="init" if="have.tests" name="test-report"/>
1.528 + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1.529 + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1.530 + <target depends="init" if="have.tests" name="-pre-test-run-single">
1.531 + <mkdir dir="${build.test.results.dir}"/>
1.532 + </target>
1.533 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1.534 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1.535 + <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
1.536 + </target>
1.537 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1.538 + <fail if="tests.failed">Some tests failed; see details above.</fail>
1.539 + </target>
1.540 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
1.541 + <!--
1.542 + JUNIT DEBUGGING SECTION
1.543 + -->
1.544 + <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
1.545 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1.546 + <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
1.547 + <delete file="${test.report.file}"/>
1.548 + <!-- the directory must exist, otherwise the XML formatter would fail -->
1.549 + <mkdir dir="${build.test.results.dir}"/>
1.550 + <ejbjarproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
1.551 + <customize>
1.552 + <arg value="showoutput=true"/>
1.553 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
1.554 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
1.555 + </customize>
1.556 + </ejbjarproject1:debug>
1.557 + </target>
1.558 + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1.559 + <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1.560 + </target>
1.561 + <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1.562 + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1.563 + <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1.564 + </target>
1.565 + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1.566 + <!--
1.567 + CLEANUP SECTION
1.568 + -->
1.569 + <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
1.570 + <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="clean"/>
1.571 + </target>
1.572 + <target depends="init" name="-do-clean">
1.573 + <delete dir="${build.dir}"/>
1.574 + <delete dir="${dist.dir}"/>
1.575 + </target>
1.576 + <target name="-post-clean">
1.577 + <!-- Empty placeholder for easier customization. -->
1.578 + <!-- You can override this target in the ../build.xml file. -->
1.579 + </target>
1.580 + <target depends="init" if="netbeans.home" name="undeploy-clean">
1.581 + <nbundeploy failOnError="false" startServer="false"/>
1.582 + </target>
1.583 + <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1.584 + <target depends="clean" name="clean-ear"/>
1.585 +</project>