[507] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <!--
|
---|
| 3 | *** GENERATED FROM project.xml - DO NOT EDIT ***
|
---|
| 4 | *** EDIT ../build.xml INSTEAD ***
|
---|
| 5 |
|
---|
| 6 | For the purpose of easier reading the script
|
---|
| 7 | is divided into following sections:
|
---|
| 8 |
|
---|
| 9 | - initialization
|
---|
| 10 | - compilation
|
---|
| 11 | - dist
|
---|
| 12 | - execution
|
---|
| 13 | - debugging
|
---|
| 14 | - javadoc
|
---|
| 15 | - cleanup
|
---|
| 16 |
|
---|
| 17 | -->
|
---|
| 18 | <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="GatewayPolicyEngineTransformationEjb-impl">
|
---|
| 19 | <import file="jaxws-build.xml"/>
|
---|
| 20 | <import file="ant-deploy.xml"/>
|
---|
| 21 | <target depends="dist,javadoc" description="Build whole project." name="default"/>
|
---|
| 22 | <!--
|
---|
| 23 | INITIALIZATION SECTION
|
---|
| 24 | -->
|
---|
| 25 | <target name="-pre-init">
|
---|
| 26 | <!-- Empty placeholder for easier customization. -->
|
---|
| 27 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 28 | </target>
|
---|
| 29 | <target depends="-pre-init" name="-init-private">
|
---|
| 30 | <property file="nbproject/private/private.properties"/>
|
---|
| 31 | </target>
|
---|
| 32 | <target depends="-pre-init,-init-private" name="-init-userdir">
|
---|
| 33 | <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
|
---|
| 34 | </target>
|
---|
| 35 | <target depends="-pre-init,-init-private,-init-userdir" name="-init-user">
|
---|
| 36 | <property file="${user.properties.file}"/>
|
---|
| 37 | <!-- The two properties below are usually overridden -->
|
---|
| 38 | <!-- by the active platform. Just a fallback. -->
|
---|
| 39 | <property name="default.javac.source" value="1.4"/>
|
---|
| 40 | <property name="default.javac.target" value="1.4"/>
|
---|
| 41 | </target>
|
---|
| 42 | <target depends="-pre-init,-init-private,-init-userdir,-init-user" name="-init-project">
|
---|
| 43 | <property file="nbproject/project.properties"/>
|
---|
| 44 | </target>
|
---|
| 45 | <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
---|
| 46 | <!-- Ensure configuration directory exists. -->
|
---|
| 47 | <mkdir dir="${meta.inf}"/>
|
---|
| 48 | <property name="runmain.jvmargs" value=""/>
|
---|
| 49 | <condition property="have.tests">
|
---|
| 50 | <or>
|
---|
| 51 | <available file="${test.src.dir}"/>
|
---|
| 52 | </or>
|
---|
| 53 | </condition>
|
---|
| 54 | <condition property="have.sources">
|
---|
| 55 | <or>
|
---|
| 56 | <available file="${src.dir}"/>
|
---|
| 57 | </or>
|
---|
| 58 | </condition>
|
---|
| 59 | <condition property="netbeans.home+have.tests">
|
---|
| 60 | <and>
|
---|
| 61 | <isset property="netbeans.home"/>
|
---|
| 62 | <isset property="have.tests"/>
|
---|
| 63 | </and>
|
---|
| 64 | </condition>
|
---|
| 65 | <condition property="no.javadoc.preview">
|
---|
| 66 | <isfalse value="${javadoc.preview}"/>
|
---|
| 67 | </condition>
|
---|
| 68 | <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
|
---|
| 69 | <condition property="classes.dir" value="${build.ear.classes.dir}">
|
---|
| 70 | <isset property="dist.ear.dir"/>
|
---|
| 71 | </condition>
|
---|
| 72 | <property name="classes.dir" value="${build.classes.dir}"/>
|
---|
| 73 | <condition property="no.deps">
|
---|
| 74 | <and>
|
---|
| 75 | <istrue value="${no.dependencies}"/>
|
---|
| 76 | </and>
|
---|
| 77 | </condition>
|
---|
| 78 | <condition property="no.dist.ear.dir">
|
---|
| 79 | <not>
|
---|
| 80 | <isset property="dist.ear.dir"/>
|
---|
| 81 | </not>
|
---|
| 82 | </condition>
|
---|
| 83 | <property name="source.encoding" value="${file.encoding}"/>
|
---|
| 84 | <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
|
---|
| 85 | <and>
|
---|
| 86 | <isset property="javadoc.encoding"/>
|
---|
| 87 | <not>
|
---|
| 88 | <equals arg1="${javadoc.encoding}" arg2=""/>
|
---|
| 89 | </not>
|
---|
| 90 | </and>
|
---|
| 91 | </condition>
|
---|
| 92 | <property name="javadoc.encoding.used" value="${source.encoding}"/>
|
---|
| 93 | <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
|
---|
| 94 | <and>
|
---|
| 95 | <isset property="jaxws.endorsed.dir"/>
|
---|
| 96 | <available file="nbproject/jaxws-build.xml"/>
|
---|
| 97 | </and>
|
---|
| 98 | </condition>
|
---|
| 99 | </target>
|
---|
| 100 | <target name="-post-init">
|
---|
| 101 | <!-- Empty placeholder for easier customization. -->
|
---|
| 102 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 103 | </target>
|
---|
| 104 | <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
|
---|
| 105 | <fail unless="src.dir">Must set src.dir</fail>
|
---|
| 106 | <fail unless="test.src.dir">Must set test.src.dir</fail>
|
---|
| 107 | <fail unless="build.dir">Must set build.dir</fail>
|
---|
| 108 | <fail unless="build.generated.dir">Must set build.generated.dir</fail>
|
---|
| 109 | <fail unless="dist.dir">Must set dist.dir</fail>
|
---|
| 110 | <fail unless="build.classes.dir">Must set build.classes.dir</fail>
|
---|
| 111 | <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
|
---|
| 112 | <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
|
---|
| 113 | <fail unless="dist.jar">Must set dist.jar</fail>
|
---|
| 114 | <fail unless="j2ee.platform.classpath">
|
---|
| 115 | The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
|
---|
| 116 | Either open the project in the IDE and assign the server or setup the server classpath manually.
|
---|
| 117 | For example like this:
|
---|
| 118 | ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
|
---|
| 119 | or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
|
---|
| 120 | </fail>
|
---|
| 121 | </target>
|
---|
| 122 | <target name="-init-macrodef-property">
|
---|
| 123 | <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
|
---|
| 124 | <attribute name="name"/>
|
---|
| 125 | <attribute name="value"/>
|
---|
| 126 | <sequential>
|
---|
| 127 | <property name="@{name}" value="${@{value}}"/>
|
---|
| 128 | </sequential>
|
---|
| 129 | </macrodef>
|
---|
| 130 | </target>
|
---|
| 131 | <target name="-init-macrodef-javac">
|
---|
| 132 | <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
|
---|
| 133 | <attribute default="${src.dir}" name="srcdir"/>
|
---|
| 134 | <attribute default="${build.classes.dir}" name="destdir"/>
|
---|
| 135 | <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
|
---|
| 136 | <attribute default="${javac.debug}" name="debug"/>
|
---|
| 137 | <element name="customize" optional="true"/>
|
---|
| 138 | <sequential>
|
---|
| 139 | <property name="javac.compilerargs" value=""/>
|
---|
| 140 | <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" includeantruntime="false" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
|
---|
| 141 | <classpath>
|
---|
| 142 | <path path="@{classpath}"/>
|
---|
| 143 | </classpath>
|
---|
| 144 | <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
|
---|
| 145 | <customize/>
|
---|
| 146 | </javac>
|
---|
| 147 | </sequential>
|
---|
| 148 | </macrodef>
|
---|
| 149 | </target>
|
---|
| 150 | <target name="-init-macrodef-junit">
|
---|
| 151 | <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
|
---|
| 152 | <attribute default="**/*Test.java" name="includes"/>
|
---|
| 153 | <sequential>
|
---|
| 154 | <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
|
---|
| 155 | <batchtest todir="${build.test.results.dir}">
|
---|
| 156 | <fileset dir="${test.src.dir}" includes="@{includes}"/>
|
---|
| 157 | </batchtest>
|
---|
| 158 | <classpath>
|
---|
| 159 | <path path="${run.test.classpath}"/>
|
---|
| 160 | <path path="${j2ee.platform.classpath}"/>
|
---|
| 161 | </classpath>
|
---|
| 162 | <syspropertyset>
|
---|
| 163 | <propertyref prefix="test-sys-prop."/>
|
---|
| 164 | <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
---|
| 165 | </syspropertyset>
|
---|
| 166 | <formatter type="brief" usefile="false"/>
|
---|
| 167 | <formatter type="xml"/>
|
---|
| 168 | </junit>
|
---|
| 169 | </sequential>
|
---|
| 170 | </macrodef>
|
---|
| 171 | </target>
|
---|
| 172 | <target name="-init-macrodef-java">
|
---|
| 173 | <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
|
---|
| 174 | <attribute default="${main.class}" name="classname"/>
|
---|
| 175 | <element name="customize" optional="true"/>
|
---|
| 176 | <sequential>
|
---|
| 177 | <java classname="@{classname}" fork="true">
|
---|
| 178 | <jvmarg line="${runmain.jvmargs}"/>
|
---|
| 179 | <classpath>
|
---|
| 180 | <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
|
---|
| 181 | </classpath>
|
---|
| 182 | <syspropertyset>
|
---|
| 183 | <propertyref prefix="run-sys-prop."/>
|
---|
| 184 | <mapper from="run-sys-prop.*" to="*" type="glob"/>
|
---|
| 185 | </syspropertyset>
|
---|
| 186 | <customize/>
|
---|
| 187 | </java>
|
---|
| 188 | </sequential>
|
---|
| 189 | </macrodef>
|
---|
| 190 | </target>
|
---|
| 191 | <target name="-init-macrodef-nbjpda">
|
---|
| 192 | <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
|
---|
| 193 | <attribute default="${main.class}" name="name"/>
|
---|
| 194 | <attribute default="${debug.classpath}" name="classpath"/>
|
---|
| 195 | <sequential>
|
---|
| 196 | <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="dt_socket">
|
---|
| 197 | <classpath>
|
---|
| 198 | <path path="@{classpath}"/>
|
---|
| 199 | </classpath>
|
---|
| 200 | </nbjpdastart>
|
---|
| 201 | </sequential>
|
---|
| 202 | </macrodef>
|
---|
| 203 | <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
|
---|
| 204 | <attribute default="${build.classes.dir}" name="dir"/>
|
---|
| 205 | <sequential>
|
---|
| 206 | <nbjpdareload>
|
---|
| 207 | <fileset dir="@{dir}" includes="${fix.classes}">
|
---|
| 208 | <include name="${fix.includes}*.class"/>
|
---|
| 209 | </fileset>
|
---|
| 210 | </nbjpdareload>
|
---|
| 211 | </sequential>
|
---|
| 212 | </macrodef>
|
---|
| 213 | <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
|
---|
| 214 | <sequential>
|
---|
| 215 | <nbjpdaappreloaded/>
|
---|
| 216 | </sequential>
|
---|
| 217 | </macrodef>
|
---|
| 218 | </target>
|
---|
| 219 | <target name="-init-debug-args">
|
---|
| 220 | <property name="version-output" value="java version "${ant.java.version}"/>
|
---|
| 221 | <condition property="have-jdk-older-than-1.4">
|
---|
| 222 | <or>
|
---|
| 223 | <contains string="${version-output}" substring="java version "1.0"/>
|
---|
| 224 | <contains string="${version-output}" substring="java version "1.1"/>
|
---|
| 225 | <contains string="${version-output}" substring="java version "1.2"/>
|
---|
| 226 | <contains string="${version-output}" substring="java version "1.3"/>
|
---|
| 227 | </or>
|
---|
| 228 | </condition>
|
---|
| 229 | <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
|
---|
| 230 | <istrue value="${have-jdk-older-than-1.4}"/>
|
---|
| 231 | </condition>
|
---|
| 232 | </target>
|
---|
| 233 | <target depends="-init-debug-args" name="-init-macrodef-debug">
|
---|
| 234 | <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
|
---|
| 235 | <attribute default="${main.class}" name="classname"/>
|
---|
| 236 | <attribute default="${debug.classpath}" name="classpath"/>
|
---|
| 237 | <attribute default="${application.args}" name="args"/>
|
---|
| 238 | <element name="customize" optional="true"/>
|
---|
| 239 | <sequential>
|
---|
| 240 | <java classname="@{classname}" fork="true">
|
---|
| 241 | <jvmarg line="${debug-args-line}"/>
|
---|
| 242 | <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
|
---|
| 243 | <classpath>
|
---|
| 244 | <path path="@{classpath}"/>
|
---|
| 245 | </classpath>
|
---|
| 246 | <arg line="@{args}"/>
|
---|
| 247 | <customize/>
|
---|
| 248 | </java>
|
---|
| 249 | </sequential>
|
---|
| 250 | </macrodef>
|
---|
| 251 | </target>
|
---|
| 252 | <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" name="init"/>
|
---|
| 253 | <!--
|
---|
| 254 | COMPILATION SECTION
|
---|
| 255 | -->
|
---|
| 256 | <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
|
---|
| 257 | <ant antfile="${project.NhincLib}/build.xml" inheritall="false" target="jar"/>
|
---|
| 258 | </target>
|
---|
| 259 | <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
|
---|
| 260 | <ant antfile="${project.NhincLib}/build.xml" inheritall="false" target="jar"/>
|
---|
| 261 | </target>
|
---|
| 262 | <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
|
---|
| 263 | <target depends="init,deps-jar,wsimport-service-generate" name="-pre-pre-compile">
|
---|
| 264 | <mkdir dir="${build.classes.dir}"/>
|
---|
| 265 | <mkdir dir="${build.ear.classes.dir}"/>
|
---|
| 266 | </target>
|
---|
| 267 | <target name="-pre-compile">
|
---|
| 268 | <!-- Empty placeholder for easier customization. -->
|
---|
| 269 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 270 | </target>
|
---|
| 271 | <target depends="compile" name="library-inclusion-in-archive">
|
---|
| 272 | <copy file="${reference.NhincLib.jar}" todir="${build.classes.dir}"/>
|
---|
| 273 | </target>
|
---|
| 274 | <target depends="compile" name="library-inclusion-in-manifest">
|
---|
| 275 | <basename file="${reference.NhincLib.jar}" property="included.lib.reference.NhincLib.jar"/>
|
---|
| 276 | <copy file="${reference.NhincLib.jar}" todir="${dist.ear.dir}"/>
|
---|
| 277 | <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
|
---|
| 278 | <attribute name="Class-Path" value="${included.lib.reference.NhincLib.jar} "/>
|
---|
| 279 | </manifest>
|
---|
| 280 | </target>
|
---|
| 281 | <target name="-copy-meta-inf">
|
---|
| 282 | <copy todir="${classes.dir}">
|
---|
| 283 | <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
|
---|
| 284 | </copy>
|
---|
| 285 | <copy todir="${classes.dir}/META-INF">
|
---|
| 286 | <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
|
---|
| 287 | </copy>
|
---|
| 288 | </target>
|
---|
| 289 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf,wsimport-service-compile" if="have.sources" name="-do-compile">
|
---|
| 290 | <ejbjarproject2:javac destdir="${classes.dir}"/>
|
---|
| 291 | <copy todir="${classes.dir}">
|
---|
| 292 | <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
|
---|
| 293 | </copy>
|
---|
| 294 | </target>
|
---|
| 295 | <target name="-post-compile">
|
---|
| 296 | <!-- Empty placeholder for easier customization. -->
|
---|
| 297 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 298 | </target>
|
---|
| 299 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
|
---|
| 300 | <target name="-pre-compile-single">
|
---|
| 301 | <!-- Empty placeholder for easier customization. -->
|
---|
| 302 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 303 | </target>
|
---|
| 304 | <target depends="init,deps-jar,-pre-pre-compile,wsimport-service-compile" name="-do-compile-single">
|
---|
| 305 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
---|
| 306 | <ejbjarproject2:javac>
|
---|
| 307 | <customize>
|
---|
| 308 | <include name="${javac.includes}"/>
|
---|
| 309 | </customize>
|
---|
| 310 | </ejbjarproject2:javac>
|
---|
| 311 | </target>
|
---|
| 312 | <target name="-post-compile-single">
|
---|
| 313 | <!-- Empty placeholder for easier customization. -->
|
---|
| 314 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 315 | </target>
|
---|
| 316 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
|
---|
| 317 | <!--
|
---|
| 318 | DIST BUILDING SECTION
|
---|
| 319 | -->
|
---|
| 320 | <target name="-pre-dist">
|
---|
| 321 | <!-- Empty placeholder for easier customization. -->
|
---|
| 322 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 323 | </target>
|
---|
| 324 | <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
|
---|
| 325 | <dirname file="${dist.jar}" property="dist.jar.dir"/>
|
---|
| 326 | <mkdir dir="${dist.jar.dir}"/>
|
---|
| 327 | <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
|
---|
| 328 | <fileset dir="${build.classes.dir}"/>
|
---|
| 329 | </jar>
|
---|
| 330 | </target>
|
---|
| 331 | <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
|
---|
| 332 | <dirname file="${dist.jar}" property="dist.jar.dir"/>
|
---|
| 333 | <mkdir dir="${dist.jar.dir}"/>
|
---|
| 334 | <jar compress="${jar.compress}" jarfile="${dist.jar}">
|
---|
| 335 | <fileset dir="${build.classes.dir}"/>
|
---|
| 336 | </jar>
|
---|
| 337 | </target>
|
---|
| 338 | <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
|
---|
| 339 | <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
|
---|
| 340 | <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
|
---|
| 341 | <mkdir dir="${dist.jar.dir}"/>
|
---|
| 342 | <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
|
---|
| 343 | <fileset dir="${build.ear.classes.dir}"/>
|
---|
| 344 | </jar>
|
---|
| 345 | </target>
|
---|
| 346 | <target name="-post-dist">
|
---|
| 347 | <!-- Empty placeholder for easier customization. -->
|
---|
| 348 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 349 | </target>
|
---|
| 350 | <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
|
---|
| 351 | <target depends="init,compile,-pre-dist,-do-ear-dist,-post-dist" description="Build distribution (JAR) to be packaged into an EAR." name="dist-ear"/>
|
---|
| 352 | <!--
|
---|
| 353 | EXECUTION SECTION
|
---|
| 354 | -->
|
---|
| 355 | <target depends="run-deploy" description="Deploy to server." name="run"/>
|
---|
| 356 | <target name="-init-deploy">
|
---|
| 357 | <property name="include.jar.manifest" value=""/>
|
---|
| 358 | </target>
|
---|
| 359 | <target name="pre-run-deploy">
|
---|
| 360 | <!-- Empty placeholder for easier customization. -->
|
---|
| 361 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 362 | </target>
|
---|
| 363 | <target name="post-run-deploy">
|
---|
| 364 | <!-- Empty placeholder for easier customization. -->
|
---|
| 365 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 366 | </target>
|
---|
| 367 | <target name="-pre-nbmodule-run-deploy">
|
---|
| 368 | <!-- Empty placeholder for easier customization. -->
|
---|
| 369 | <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
|
---|
| 370 | </target>
|
---|
| 371 | <target name="-post-nbmodule-run-deploy">
|
---|
| 372 | <!-- Empty placeholder for easier customization. -->
|
---|
| 373 | <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
|
---|
| 374 | </target>
|
---|
| 375 | <target name="-run-deploy-am">
|
---|
| 376 | <!-- Task to deploy to the Access Manager runtime. -->
|
---|
| 377 | </target>
|
---|
| 378 | <target depends="init,-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">
|
---|
| 379 | <nbjpdaappreloaded/>
|
---|
| 380 | </target>
|
---|
| 381 | <target if="netbeans.home" name="-run-deploy-nb">
|
---|
| 382 | <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
|
---|
| 383 | </target>
|
---|
| 384 | <target name="-init-deploy-ant" unless="netbeans.home">
|
---|
| 385 | <property name="deploy.ant.archive" value="${dist.jar}"/>
|
---|
| 386 | <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
|
---|
| 387 | <property name="deploy.ant.enabled" value="true"/>
|
---|
| 388 | </target>
|
---|
| 389 | <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
|
---|
| 390 | <target if="netbeans.home" name="-run-undeploy-nb">
|
---|
| 391 | <fail message="Undeploy is not supported from within the IDE"/>
|
---|
| 392 | </target>
|
---|
| 393 | <target depends="dist" name="verify">
|
---|
| 394 | <nbverify file="${dist.jar}"/>
|
---|
| 395 | </target>
|
---|
| 396 | <target depends="init,compile-single" name="run-main">
|
---|
| 397 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
---|
| 398 | <ejbjarproject3:java classname="${run.class}"/>
|
---|
| 399 | </target>
|
---|
| 400 | <!--
|
---|
| 401 | DEBUGGING SECTION
|
---|
| 402 | -->
|
---|
| 403 | <target depends="init,compile,dist" description="Debug project in IDE." if="netbeans.home" name="debug">
|
---|
| 404 | <nbdeploy debugmode="true"/>
|
---|
| 405 | <antcall target="connect-debugger"/>
|
---|
| 406 | </target>
|
---|
| 407 | <target name="connect-debugger" unless="is.debugged">
|
---|
| 408 | <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
|
---|
| 409 | <classpath>
|
---|
| 410 | <path path="${debug.classpath}"/>
|
---|
| 411 | </classpath>
|
---|
| 412 | <sourcepath>
|
---|
| 413 | <path path="${web.docbase.dir}"/>
|
---|
| 414 | </sourcepath>
|
---|
| 415 | </nbjpdaconnect>
|
---|
| 416 | </target>
|
---|
| 417 | <target depends="init" if="netbeans.home" name="-debug-start-debugger">
|
---|
| 418 | <ejbjarproject1:nbjpdastart/>
|
---|
| 419 | </target>
|
---|
| 420 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
|
---|
| 421 | <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
|
---|
| 422 | <ejbjarproject1:debug/>
|
---|
| 423 | </target>
|
---|
| 424 | <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
|
---|
| 425 | <target depends="init" name="-pre-debug-fix">
|
---|
| 426 | <fail unless="fix.includes">Must set fix.includes</fail>
|
---|
| 427 | <property name="javac.includes" value="${fix.includes}.java"/>
|
---|
| 428 | </target>
|
---|
| 429 | <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
|
---|
| 430 | <ejbjarproject1:nbjpdareload/>
|
---|
| 431 | </target>
|
---|
| 432 | <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
|
---|
| 433 | <!--
|
---|
| 434 | JAVADOC SECTION
|
---|
| 435 | -->
|
---|
| 436 | <target depends="init" name="javadoc-build">
|
---|
| 437 | <mkdir dir="${dist.javadoc.dir}"/>
|
---|
| 438 | <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}">
|
---|
| 439 | <classpath>
|
---|
| 440 | <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
|
---|
| 441 | </classpath>
|
---|
| 442 | <sourcepath>
|
---|
| 443 | <pathelement location="${src.dir}"/>
|
---|
| 444 | </sourcepath>
|
---|
| 445 | <packageset dir="${src.dir}" includes="*/**"/>
|
---|
| 446 | <fileset dir="${src.dir}" includes="*.java"/>
|
---|
| 447 | </javadoc>
|
---|
| 448 | </target>
|
---|
| 449 | <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
|
---|
| 450 | <nbbrowse file="${dist.javadoc.dir}/index.html"/>
|
---|
| 451 | </target>
|
---|
| 452 | <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
|
---|
| 453 | <!--
|
---|
| 454 | JUNIT COMPILATION SECTION
|
---|
| 455 | -->
|
---|
| 456 | <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
|
---|
| 457 | <mkdir dir="${build.test.classes.dir}"/>
|
---|
| 458 | </target>
|
---|
| 459 | <target name="-pre-compile-test">
|
---|
| 460 | <!-- Empty placeholder for easier customization. -->
|
---|
| 461 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 462 | </target>
|
---|
| 463 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
|
---|
| 464 | <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
|
---|
| 465 | <copy todir="${build.test.classes.dir}">
|
---|
| 466 | <fileset dir="${test.src.dir}" excludes="**/*.java"/>
|
---|
| 467 | </copy>
|
---|
| 468 | </target>
|
---|
| 469 | <target name="-post-compile-test">
|
---|
| 470 | <!-- Empty placeholder for easier customization. -->
|
---|
| 471 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 472 | </target>
|
---|
| 473 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
|
---|
| 474 | <target name="-pre-compile-test-single">
|
---|
| 475 | <!-- Empty placeholder for easier customization. -->
|
---|
| 476 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 477 | </target>
|
---|
| 478 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
|
---|
| 479 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
---|
| 480 | <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}">
|
---|
| 481 | <customize>
|
---|
| 482 | <patternset includes="${javac.includes}"/>
|
---|
| 483 | </customize>
|
---|
| 484 | </ejbjarproject2:javac>
|
---|
| 485 | </target>
|
---|
| 486 | <target name="-post-compile-test-single">
|
---|
| 487 | <!-- Empty placeholder for easier customization. -->
|
---|
| 488 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 489 | </target>
|
---|
| 490 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
|
---|
| 491 | <!--
|
---|
| 492 | JUNIT EXECUTION SECTION
|
---|
| 493 | -->
|
---|
| 494 | <target depends="init" if="have.tests" name="-pre-test-run">
|
---|
| 495 | <mkdir dir="${build.test.results.dir}"/>
|
---|
| 496 | </target>
|
---|
| 497 | <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
|
---|
| 498 | <ejbjarproject2:junit/>
|
---|
| 499 | </target>
|
---|
| 500 | <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
|
---|
| 501 | <fail if="tests.failed">Some tests failed; see details above.</fail>
|
---|
| 502 | </target>
|
---|
| 503 | <target depends="init" if="have.tests" name="test-report"/>
|
---|
| 504 | <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
|
---|
| 505 | <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
|
---|
| 506 | <target depends="init" if="have.tests" name="-pre-test-run-single">
|
---|
| 507 | <mkdir dir="${build.test.results.dir}"/>
|
---|
| 508 | </target>
|
---|
| 509 | <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
|
---|
| 510 | <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
|
---|
| 511 | <ejbjarproject2:junit includes="${test.includes}"/>
|
---|
| 512 | </target>
|
---|
| 513 | <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
|
---|
| 514 | <fail if="tests.failed">Some tests failed; see details above.</fail>
|
---|
| 515 | </target>
|
---|
| 516 | <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"/>
|
---|
| 517 | <!--
|
---|
| 518 | JUNIT DEBUGGING SECTION
|
---|
| 519 | -->
|
---|
| 520 | <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
|
---|
| 521 | <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
|
---|
| 522 | <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
|
---|
| 523 | <delete file="${test.report.file}"/>
|
---|
| 524 | <!-- the directory must exist, otherwise the XML formatter would fail -->
|
---|
| 525 | <mkdir dir="${build.test.results.dir}"/>
|
---|
| 526 | <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}">
|
---|
| 527 | <customize>
|
---|
| 528 | <arg value="showoutput=true"/>
|
---|
| 529 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
|
---|
| 530 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
|
---|
| 531 | </customize>
|
---|
| 532 | </ejbjarproject1:debug>
|
---|
| 533 | </target>
|
---|
| 534 | <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
|
---|
| 535 | <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
|
---|
| 536 | </target>
|
---|
| 537 | <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
|
---|
| 538 | <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
|
---|
| 539 | <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
|
---|
| 540 | </target>
|
---|
| 541 | <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
|
---|
| 542 | <!--
|
---|
| 543 | CLEANUP SECTION
|
---|
| 544 | -->
|
---|
| 545 | <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
|
---|
| 546 | <ant antfile="${project.NhincLib}/build.xml" inheritall="false" target="clean"/>
|
---|
| 547 | </target>
|
---|
| 548 | <target depends="init" name="-do-clean">
|
---|
| 549 | <delete dir="${build.dir}"/>
|
---|
| 550 | <delete dir="${dist.dir}"/>
|
---|
| 551 | </target>
|
---|
| 552 | <target name="-post-clean">
|
---|
| 553 | <!-- Empty placeholder for easier customization. -->
|
---|
| 554 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 555 | </target>
|
---|
| 556 | <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
|
---|
| 557 | <target depends="clean" name="clean-ear"/>
|
---|
| 558 | </project>
|
---|