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