1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/java/HibernateDemo1/nbproject/build-impl.xml Sat Mar 14 21:58:41 2009 +0100
1.3 @@ -0,0 +1,409 @@
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 + - cleanup
1.18 +
1.19 +-->
1.20 +<project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="HibernateDemo1-impl">
1.21 + <import file="ant-deploy.xml"/>
1.22 + <target depends="dist" description="Build whole project." name="default"/>
1.23 + <!--
1.24 + INITIALIZATION SECTION
1.25 + -->
1.26 + <target name="pre-init">
1.27 + <!-- Empty placeholder for easier customization. -->
1.28 + <!-- You can override this target in the ../build.xml file. -->
1.29 + </target>
1.30 + <target depends="pre-init" name="init-private">
1.31 + <property file="nbproject/private/private.properties"/>
1.32 + </target>
1.33 + <target depends="pre-init,init-private" name="init-userdir">
1.34 + <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
1.35 + </target>
1.36 + <target depends="pre-init,init-private,init-userdir" name="init-user">
1.37 + <property file="${user.properties.file}"/>
1.38 + </target>
1.39 + <target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
1.40 + <property file="nbproject/project.properties"/>
1.41 + </target>
1.42 + <target depends="pre-init,init-private,init-userdir,init-user,init-project" name="do-init">
1.43 + <!-- The two properties below are usually overridden -->
1.44 + <!-- by the active platform. Just a fallback. -->
1.45 + <property name="default.javac.source" value="1.4"/>
1.46 + <property name="default.javac.target" value="1.4"/>
1.47 + <condition property="do.compile.jsps">
1.48 + <istrue value="${compile.jsps}"/>
1.49 + </condition>
1.50 + <condition property="do.display.browser">
1.51 + <and>
1.52 + <istrue value="${display.browser}"/>
1.53 + <isset property="client.module.uri"/>
1.54 + <not>
1.55 + <isset property="app.client"/>
1.56 + </not>
1.57 + </and>
1.58 + </condition>
1.59 + <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
1.60 + <condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
1.61 + <and>
1.62 + <isset property="main.class"/>
1.63 + <not>
1.64 + <equals arg1="${main.class}" arg2="" trim="true"/>
1.65 + </not>
1.66 + </and>
1.67 + </condition>
1.68 + <condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
1.69 + <and>
1.70 + <isset property="j2ee.appclient.jvmoptions"/>
1.71 + <not>
1.72 + <equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
1.73 + </not>
1.74 + </and>
1.75 + </condition>
1.76 + <condition else="" property="application.args.param" value="${application.args}">
1.77 + <and>
1.78 + <isset property="application.args"/>
1.79 + <not>
1.80 + <equals arg1="${application.args}" arg2="" trim="true"/>
1.81 + </not>
1.82 + </and>
1.83 + </condition>
1.84 + <condition property="can.debug.appclient">
1.85 + <and>
1.86 + <isset property="netbeans.home"/>
1.87 + <isset property="app.client"/>
1.88 + </and>
1.89 + </condition>
1.90 + </target>
1.91 + <target depends="init" name="-init-cos">
1.92 + <condition else="false" property="build.deploy.on.save">
1.93 + <istrue value="${j2ee.deploy.on.save}"/>
1.94 + </condition>
1.95 + </target>
1.96 + <target name="post-init">
1.97 + <!-- Empty placeholder for easier customization. -->
1.98 + <!-- You can override this target in the ../build.xml file. -->
1.99 + </target>
1.100 + <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
1.101 + <fail unless="build.dir">Must set build.dir</fail>
1.102 + <fail unless="build.generated.dir">Must set build.generated.dir</fail>
1.103 + <fail unless="dist.dir">Must set dist.dir</fail>
1.104 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
1.105 + <fail unless="dist.jar">Must set dist.jar</fail>
1.106 + </target>
1.107 + <target name="-init-taskdefs">
1.108 + <fail unless="libs.CopyLibs.classpath">
1.109 +The libs.CopyLibs.classpath property is not set up.
1.110 +This property must point to
1.111 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
1.112 +of NetBeans IDE installation and is usually located at
1.113 +<netbeans_installation>/java<version>/ant/extra folder.
1.114 +Either open the project in the IDE and make sure CopyLibs library
1.115 +exists or setup the property manually. For example like this:
1.116 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
1.117 + </fail>
1.118 + <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
1.119 + </target>
1.120 + <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
1.121 + <!--
1.122 + COMPILATION SECTION
1.123 + -->
1.124 + <target depends="init" name="deps-jar" unless="no.deps"/>
1.125 + <target depends="init" name="deps-j2ee-archive" unless="no.deps">
1.126 + <condition property="build.deploy.on.save" value="false">
1.127 + <not>
1.128 + <isset property="build.deploy.on.save"/>
1.129 + </not>
1.130 + </condition>
1.131 + <ant antfile="${project.HibernateDemo1-ejb}/build.xml" inheritall="false" target="dist-ear">
1.132 + <property location="${build.dir}" name="dist.ear.dir"/>
1.133 + <property name="deploy.on.save" value="${build.deploy.on.save}"/>
1.134 + </ant>
1.135 + <condition property="build.deploy.on.save" value="false">
1.136 + <not>
1.137 + <isset property="build.deploy.on.save"/>
1.138 + </not>
1.139 + </condition>
1.140 + <ant antfile="${project.HibernateDemo1-war}/build.xml" inheritall="false" target="dist-ear">
1.141 + <property location="${build.dir}" name="dist.ear.dir"/>
1.142 + <property name="deploy.on.save" value="${build.deploy.on.save}"/>
1.143 + </ant>
1.144 + </target>
1.145 + <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
1.146 + <target name="pre-compile">
1.147 + <!-- Empty placeholder for easier customization. -->
1.148 + <!-- You can override this target in the ../build.xml file. -->
1.149 + </target>
1.150 + <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="do-compile">
1.151 + <copy todir="${build.dir}/META-INF">
1.152 + <fileset dir="${meta.inf}"/>
1.153 + </copy>
1.154 + <copyfiles files="${reference.HibernateDemo1-war.dist-ear}" todir="${build.dir}//"/>
1.155 + <copyfiles files="${reference.HibernateDemo1-ejb.dist-ear}" todir="${build.dir}//"/>
1.156 + </target>
1.157 + <target name="post-compile">
1.158 + <!-- Empty placeholder for easier customization. -->
1.159 + <!-- You can override this target in the ../build.xml file. -->
1.160 + </target>
1.161 + <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
1.162 + <!--
1.163 + DIST BUILDING SECTION
1.164 + -->
1.165 + <target name="pre-dist">
1.166 + <!-- Empty placeholder for easier customization. -->
1.167 + <!-- You can override this target in the ../build.xml file. -->
1.168 + </target>
1.169 + <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
1.170 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
1.171 + <mkdir dir="${dist.jar.dir}"/>
1.172 + <jar compress="${jar.compress}" jarfile="${dist.jar}">
1.173 + <fileset dir="${build.dir}"/>
1.174 + </jar>
1.175 + </target>
1.176 + <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
1.177 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
1.178 + <mkdir dir="${dist.jar.dir}"/>
1.179 + <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
1.180 + <fileset dir="${build.dir}"/>
1.181 + </jar>
1.182 + </target>
1.183 + <target name="post-dist">
1.184 + <!-- Empty placeholder for easier customization. -->
1.185 + <!-- You can override this target in the ../build.xml file. -->
1.186 + </target>
1.187 + <target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
1.188 + <!--
1.189 + EXECUTION SECTION
1.190 + -->
1.191 + <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
1.192 + <target name="pre-run-deploy">
1.193 + <!-- Empty placeholder for easier customization. -->
1.194 + <!-- You can override this target in the ../build.xml file. -->
1.195 + </target>
1.196 + <target name="post-run-deploy">
1.197 + <!-- Empty placeholder for easier customization. -->
1.198 + <!-- You can override this target in the ../build.xml file. -->
1.199 + </target>
1.200 + <target name="-pre-nbmodule-run-deploy">
1.201 + <!-- Empty placeholder for easier customization. -->
1.202 + <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
1.203 + </target>
1.204 + <target name="-post-nbmodule-run-deploy">
1.205 + <!-- Empty placeholder for easier customization. -->
1.206 + <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
1.207 + </target>
1.208 + <target name="-run-deploy-am" unless="no.deps">
1.209 + <!-- Task to deploy to the Access Manager runtime. -->
1.210 + <ant antfile="${project.HibernateDemo1-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
1.211 + <ant antfile="${project.HibernateDemo1-war}/build.xml" inheritall="false" target="-run-deploy-am"/>
1.212 + </target>
1.213 + <target depends="-init-cos,dist,pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,post-run-deploy" name="run-deploy"/>
1.214 + <target if="netbeans.home" name="-run-deploy-nb">
1.215 + <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
1.216 + </target>
1.217 + <target name="-init-deploy-ant" unless="netbeans.home">
1.218 + <property name="deploy.ant.archive" value="${dist.jar}"/>
1.219 + <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
1.220 + <property name="deploy.ant.enabled" value="true"/>
1.221 + </target>
1.222 + <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
1.223 + <target if="netbeans.home" name="-run-undeploy-nb">
1.224 + <fail message="Undeploy is not supported from within the IDE"/>
1.225 + </target>
1.226 + <target depends="dist" name="verify">
1.227 + <nbverify file="${dist.jar}"/>
1.228 + </target>
1.229 + <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
1.230 + <target if="do.display.browser" name="-init-display-browser">
1.231 + <condition property="do.display.browser.nb">
1.232 + <isset property="netbeans.home"/>
1.233 + </condition>
1.234 + <condition property="do.display.browser.cl">
1.235 + <and>
1.236 + <isset property="deploy.ant.enabled"/>
1.237 + <isset property="deploy.ant.client.url"/>
1.238 + </and>
1.239 + </condition>
1.240 + </target>
1.241 + <target if="do.display.browser.nb" name="-display-browser-nb">
1.242 + <nbbrowse url="${client.url}"/>
1.243 + </target>
1.244 + <target if="do.display.browser.cl" name="-get-browser" unless="browser">
1.245 + <condition property="browser" value="rundll32">
1.246 + <os family="windows"/>
1.247 + </condition>
1.248 + <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
1.249 + <os family="windows"/>
1.250 + </condition>
1.251 + <condition property="browser" value="/usr/bin/open">
1.252 + <os family="mac"/>
1.253 + </condition>
1.254 + <property environment="env"/>
1.255 + <condition property="browser" value="${env.BROWSER}">
1.256 + <isset property="env.BROWSER"/>
1.257 + </condition>
1.258 + <condition property="browser" value="/usr/bin/firefox">
1.259 + <available file="/usr/bin/firefox"/>
1.260 + </condition>
1.261 + <condition property="browser" value="/usr/local/firefox/firefox">
1.262 + <available file="/usr/local/firefox/firefox"/>
1.263 + </condition>
1.264 + <condition property="browser" value="/usr/bin/mozilla">
1.265 + <available file="/usr/bin/mozilla"/>
1.266 + </condition>
1.267 + <condition property="browser" value="/usr/local/mozilla/mozilla">
1.268 + <available file="/usr/local/mozilla/mozilla"/>
1.269 + </condition>
1.270 + <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
1.271 + <available file="/usr/sfw/lib/firefox/firefox"/>
1.272 + </condition>
1.273 + <condition property="browser" value="/opt/csw/bin/firefox">
1.274 + <available file="/opt/csw/bin/firefox"/>
1.275 + </condition>
1.276 + <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
1.277 + <available file="/usr/sfw/lib/mozilla/mozilla"/>
1.278 + </condition>
1.279 + <condition property="browser" value="/opt/csw/bin/mozilla">
1.280 + <available file="/opt/csw/bin/mozilla"/>
1.281 + </condition>
1.282 + </target>
1.283 + <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
1.284 + <fail unless="browser">
1.285 + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
1.286 + </fail>
1.287 + <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
1.288 + <echo>Launching ${browse.url}</echo>
1.289 + <exec executable="${browser}" spawn="true">
1.290 + <arg line="${browser.args} ${browse.url}"/>
1.291 + </exec>
1.292 + </target>
1.293 + <target depends="init" if="app.client" name="run-ac">
1.294 + <antcall target="run-${app.client}"/>
1.295 + </target>
1.296 + <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
1.297 + <property name="client.jar" value="${dist.dir}/HibernateDemo1Client.jar"/>
1.298 + <sleep seconds="3"/>
1.299 + <copy file="${wa.copy.client.jar.from}/HibernateDemo1/HibernateDemo1Client.jar" todir="${dist.dir}"/>
1.300 + </target>
1.301 + <!--
1.302 + DEBUGGING SECTION
1.303 + -->
1.304 + <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
1.305 + <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
1.306 + <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
1.307 + <antcall target="connect-debugger"/>
1.308 + <antcall target="debug-display-browser"/>
1.309 + </target>
1.310 + <target name="connect-debugger" unless="is.debugged">
1.311 + <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
1.312 + <classpath>
1.313 + <path path="${debug.classpath}"/>
1.314 + </classpath>
1.315 + <sourcepath>
1.316 + <path path="${ear.docbase.dirs}"/>
1.317 + </sourcepath>
1.318 + </nbjpdaconnect>
1.319 + </target>
1.320 + <target if="do.display.browser" name="debug-display-browser">
1.321 + <nbbrowse url="${client.url}"/>
1.322 + </target>
1.323 + <target name="-init-debug-args">
1.324 + <property name="version-output" value="java version "${ant.java.version}"/>
1.325 + <condition property="have-jdk-older-than-1.4">
1.326 + <or>
1.327 + <contains string="${version-output}" substring="java version "1.0"/>
1.328 + <contains string="${version-output}" substring="java version "1.1"/>
1.329 + <contains string="${version-output}" substring="java version "1.2"/>
1.330 + <contains string="${version-output}" substring="java version "1.3"/>
1.331 + </or>
1.332 + </condition>
1.333 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
1.334 + <istrue value="${have-jdk-older-than-1.4}"/>
1.335 + </condition>
1.336 + </target>
1.337 + <target depends="init,-init-debug-args" if="can.debug.appclient" name="run-debug-appclient">
1.338 + <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
1.339 + <attribute name="mainclass"/>
1.340 + <attribute default="${debug.classpath}" name="classpath"/>
1.341 + <element name="customize" optional="true"/>
1.342 + <attribute default="${application.args.param}" name="args"/>
1.343 + <sequential>
1.344 + <parallel>
1.345 + <java classname="@{mainclass}" fork="true">
1.346 + <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
1.347 + <jvmarg line="${debug-args-line}"/>
1.348 + <jvmarg value="-Xrunjdwp:transport=${jpda.transport},server=y,address=${jpda.address},suspend=y"/>
1.349 + <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
1.350 + <arg line="@{args}"/>
1.351 + <classpath>
1.352 + <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
1.353 + <path path="@{classpath}"/>
1.354 + </classpath>
1.355 + <syspropertyset>
1.356 + <propertyref prefix="run-sys-prop."/>
1.357 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
1.358 + </syspropertyset>
1.359 + <customize/>
1.360 + </java>
1.361 + <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
1.362 + <classpath>
1.363 + <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
1.364 + <path path="@{classpath}"/>
1.365 + </classpath>
1.366 + <sourcepath>
1.367 + <path path="${src.dir}"/>
1.368 + </sourcepath>
1.369 + </nbjpdaconnect>
1.370 + </parallel>
1.371 + </sequential>
1.372 + </macrodef>
1.373 + <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false"/>
1.374 + <antcall target="debug-${app.client}"/>
1.375 + </target>
1.376 + <!--
1.377 + CLEANUP SECTION
1.378 + -->
1.379 + <target depends="init" name="deps-clean" unless="no.deps">
1.380 + <condition property="build.deploy.on.save" value="false">
1.381 + <not>
1.382 + <isset property="build.deploy.on.save"/>
1.383 + </not>
1.384 + </condition>
1.385 + <ant antfile="${project.HibernateDemo1-ejb}/build.xml" inheritall="false" target="clean-ear">
1.386 + <property location="${build.dir}" name="dist.ear.dir"/>
1.387 + <property name="deploy.on.save" value="${build.deploy.on.save}"/>
1.388 + </ant>
1.389 + <condition property="build.deploy.on.save" value="false">
1.390 + <not>
1.391 + <isset property="build.deploy.on.save"/>
1.392 + </not>
1.393 + </condition>
1.394 + <ant antfile="${project.HibernateDemo1-war}/build.xml" inheritall="false" target="clean-ear">
1.395 + <property location="${build.dir}" name="dist.ear.dir"/>
1.396 + <property name="deploy.on.save" value="${build.deploy.on.save}"/>
1.397 + </ant>
1.398 + </target>
1.399 + <target depends="init" name="do-clean">
1.400 + <delete dir="${build.dir}"/>
1.401 + <delete dir="${dist.dir}"/>
1.402 + <delete dir="${build.dir}"/>
1.403 + </target>
1.404 + <target depends="init" if="netbeans.home" name="undeploy-clean">
1.405 + <nbundeploy failOnError="false" startServer="false"/>
1.406 + </target>
1.407 + <target name="post-clean">
1.408 + <!-- Empty placeholder for easier customization. -->
1.409 + <!-- You can override this target in the ../build.xml file. -->
1.410 + </target>
1.411 + <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
1.412 +</project>