[0] | 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 | - jar |
---|
| 12 | - execution |
---|
| 13 | - debugging |
---|
| 14 | - javadoc |
---|
| 15 | - junit compilation |
---|
| 16 | - junit execution |
---|
| 17 | - junit debugging |
---|
| 18 | - applet |
---|
| 19 | - cleanup |
---|
| 20 | |
---|
| 21 | --> |
---|
| 22 | <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="SuperPostak-impl"> |
---|
| 23 | <import file="jnlp-impl.xml"/> |
---|
[5] | 24 | <fail message="Please build using Ant 1.7.1 or higher."> |
---|
| 25 | <condition> |
---|
| 26 | <not> |
---|
| 27 | <antversion atleast="1.7.1"/> |
---|
| 28 | </not> |
---|
| 29 | </condition> |
---|
| 30 | </fail> |
---|
[0] | 31 | <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> |
---|
| 32 | <!-- |
---|
| 33 | ====================== |
---|
| 34 | INITIALIZATION SECTION |
---|
| 35 | ====================== |
---|
| 36 | --> |
---|
| 37 | <target name="-pre-init"> |
---|
| 38 | <!-- Empty placeholder for easier customization. --> |
---|
| 39 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 40 | </target> |
---|
| 41 | <target depends="-pre-init" name="-init-private"> |
---|
| 42 | <property file="nbproject/private/config.properties"/> |
---|
| 43 | <property file="nbproject/private/configs/${config}.properties"/> |
---|
| 44 | <property file="nbproject/private/private.properties"/> |
---|
| 45 | </target> |
---|
| 46 | <target depends="-pre-init,-init-private" name="-init-user"> |
---|
| 47 | <property file="${user.properties.file}"/> |
---|
| 48 | <!-- The two properties below are usually overridden --> |
---|
| 49 | <!-- by the active platform. Just a fallback. --> |
---|
| 50 | <property name="default.javac.source" value="1.4"/> |
---|
| 51 | <property name="default.javac.target" value="1.4"/> |
---|
| 52 | </target> |
---|
| 53 | <target depends="-pre-init,-init-private,-init-user" name="-init-project"> |
---|
| 54 | <property file="nbproject/configs/${config}.properties"/> |
---|
| 55 | <property file="nbproject/project.properties"/> |
---|
| 56 | </target> |
---|
| 57 | <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init"> |
---|
| 58 | <available file="${manifest.file}" property="manifest.available"/> |
---|
[5] | 59 | <available file="${application.splash}" property="splashscreen.available"/> |
---|
| 60 | <condition property="main.class.available"> |
---|
[0] | 61 | <and> |
---|
| 62 | <isset property="main.class"/> |
---|
| 63 | <not> |
---|
| 64 | <equals arg1="${main.class}" arg2="" trim="true"/> |
---|
| 65 | </not> |
---|
| 66 | </and> |
---|
| 67 | </condition> |
---|
[5] | 68 | <condition property="manifest.available+main.class"> |
---|
| 69 | <and> |
---|
| 70 | <isset property="manifest.available"/> |
---|
| 71 | <isset property="main.class.available"/> |
---|
| 72 | </and> |
---|
| 73 | </condition> |
---|
| 74 | <condition property="do.mkdist"> |
---|
| 75 | <and> |
---|
| 76 | <isset property="libs.CopyLibs.classpath"/> |
---|
| 77 | <not> |
---|
| 78 | <istrue value="${mkdist.disabled}"/> |
---|
| 79 | </not> |
---|
| 80 | </and> |
---|
| 81 | </condition> |
---|
[0] | 82 | <condition property="manifest.available+main.class+mkdist.available"> |
---|
| 83 | <and> |
---|
| 84 | <istrue value="${manifest.available+main.class}"/> |
---|
[5] | 85 | <isset property="do.mkdist"/> |
---|
| 86 | </and> |
---|
| 87 | </condition> |
---|
| 88 | <condition property="manifest.available+main.class+mkdist.available+splashscreen.available"> |
---|
| 89 | <and> |
---|
| 90 | <istrue value="${manifest.available+main.class+mkdist.available}"/> |
---|
| 91 | <istrue value="${splashscreen.available}"/> |
---|
| 92 | </and> |
---|
| 93 | </condition> |
---|
| 94 | <condition property="do.archive"> |
---|
| 95 | <not> |
---|
| 96 | <istrue value="${jar.archive.disabled}"/> |
---|
| 97 | </not> |
---|
| 98 | </condition> |
---|
| 99 | <condition property="do.archive+manifest.available"> |
---|
| 100 | <and> |
---|
| 101 | <isset property="manifest.available"/> |
---|
| 102 | <istrue value="${do.archive}"/> |
---|
| 103 | </and> |
---|
| 104 | </condition> |
---|
| 105 | <condition property="do.archive+manifest.available+main.class"> |
---|
| 106 | <and> |
---|
| 107 | <istrue value="${manifest.available+main.class}"/> |
---|
| 108 | <istrue value="${do.archive}"/> |
---|
| 109 | </and> |
---|
| 110 | </condition> |
---|
| 111 | <condition property="do.archive+manifest.available+main.class+mkdist.available"> |
---|
| 112 | <and> |
---|
| 113 | <istrue value="${manifest.available+main.class+mkdist.available}"/> |
---|
| 114 | <istrue value="${do.archive}"/> |
---|
| 115 | </and> |
---|
| 116 | </condition> |
---|
| 117 | <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available"> |
---|
| 118 | <and> |
---|
| 119 | <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/> |
---|
| 120 | <istrue value="${do.archive}"/> |
---|
[0] | 121 | </and> |
---|
| 122 | </condition> |
---|
| 123 | <condition property="have.tests"> |
---|
| 124 | <or> |
---|
| 125 | <available file="${test.src.dir}"/> |
---|
| 126 | </or> |
---|
| 127 | </condition> |
---|
| 128 | <condition property="have.sources"> |
---|
| 129 | <or> |
---|
| 130 | <available file="${src.dir}"/> |
---|
| 131 | </or> |
---|
| 132 | </condition> |
---|
| 133 | <condition property="netbeans.home+have.tests"> |
---|
| 134 | <and> |
---|
| 135 | <isset property="netbeans.home"/> |
---|
| 136 | <isset property="have.tests"/> |
---|
| 137 | </and> |
---|
| 138 | </condition> |
---|
| 139 | <condition property="no.javadoc.preview"> |
---|
| 140 | <and> |
---|
| 141 | <isset property="javadoc.preview"/> |
---|
| 142 | <isfalse value="${javadoc.preview}"/> |
---|
| 143 | </and> |
---|
| 144 | </condition> |
---|
| 145 | <property name="run.jvmargs" value=""/> |
---|
| 146 | <property name="javac.compilerargs" value=""/> |
---|
| 147 | <property name="work.dir" value="${basedir}"/> |
---|
| 148 | <condition property="no.deps"> |
---|
| 149 | <and> |
---|
| 150 | <istrue value="${no.dependencies}"/> |
---|
| 151 | </and> |
---|
| 152 | </condition> |
---|
| 153 | <property name="javac.debug" value="true"/> |
---|
| 154 | <property name="javadoc.preview" value="true"/> |
---|
| 155 | <property name="application.args" value=""/> |
---|
| 156 | <property name="source.encoding" value="${file.encoding}"/> |
---|
[5] | 157 | <property name="runtime.encoding" value="${source.encoding}"/> |
---|
[0] | 158 | <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> |
---|
| 159 | <and> |
---|
| 160 | <isset property="javadoc.encoding"/> |
---|
| 161 | <not> |
---|
| 162 | <equals arg1="${javadoc.encoding}" arg2=""/> |
---|
| 163 | </not> |
---|
| 164 | </and> |
---|
| 165 | </condition> |
---|
| 166 | <property name="javadoc.encoding.used" value="${source.encoding}"/> |
---|
| 167 | <property name="includes" value="**"/> |
---|
| 168 | <property name="excludes" value=""/> |
---|
| 169 | <property name="do.depend" value="false"/> |
---|
| 170 | <condition property="do.depend.true"> |
---|
| 171 | <istrue value="${do.depend}"/> |
---|
| 172 | </condition> |
---|
[5] | 173 | <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> |
---|
| 174 | <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> |
---|
| 175 | <length length="0" string="${endorsed.classpath}" when="greater"/> |
---|
[0] | 176 | </condition> |
---|
[5] | 177 | <property name="javac.fork" value="false"/> |
---|
| 178 | <property name="jar.index" value="false"/> |
---|
| 179 | <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> |
---|
[0] | 180 | </target> |
---|
| 181 | <target name="-post-init"> |
---|
| 182 | <!-- Empty placeholder for easier customization. --> |
---|
| 183 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 184 | </target> |
---|
| 185 | <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check"> |
---|
| 186 | <fail unless="src.dir">Must set src.dir</fail> |
---|
| 187 | <fail unless="test.src.dir">Must set test.src.dir</fail> |
---|
| 188 | <fail unless="build.dir">Must set build.dir</fail> |
---|
| 189 | <fail unless="dist.dir">Must set dist.dir</fail> |
---|
| 190 | <fail unless="build.classes.dir">Must set build.classes.dir</fail> |
---|
| 191 | <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> |
---|
| 192 | <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> |
---|
| 193 | <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> |
---|
| 194 | <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> |
---|
| 195 | <fail unless="dist.jar">Must set dist.jar</fail> |
---|
| 196 | </target> |
---|
| 197 | <target name="-init-macrodef-property"> |
---|
| 198 | <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> |
---|
| 199 | <attribute name="name"/> |
---|
| 200 | <attribute name="value"/> |
---|
| 201 | <sequential> |
---|
| 202 | <property name="@{name}" value="${@{value}}"/> |
---|
| 203 | </sequential> |
---|
| 204 | </macrodef> |
---|
| 205 | </target> |
---|
[5] | 206 | <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors"> |
---|
[0] | 207 | <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 208 | <attribute default="${src.dir}" name="srcdir"/> |
---|
| 209 | <attribute default="${build.classes.dir}" name="destdir"/> |
---|
| 210 | <attribute default="${javac.classpath}" name="classpath"/> |
---|
[5] | 211 | <attribute default="${javac.processorpath}" name="processorpath"/> |
---|
| 212 | <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> |
---|
[0] | 213 | <attribute default="${includes}" name="includes"/> |
---|
| 214 | <attribute default="${excludes}" name="excludes"/> |
---|
| 215 | <attribute default="${javac.debug}" name="debug"/> |
---|
[5] | 216 | <attribute default="${empty.dir}" name="sourcepath"/> |
---|
| 217 | <attribute default="${empty.dir}" name="gensrcdir"/> |
---|
[0] | 218 | <element name="customize" optional="true"/> |
---|
| 219 | <sequential> |
---|
[5] | 220 | <property location="${build.dir}/empty" name="empty.dir"/> |
---|
| 221 | <mkdir dir="${empty.dir}"/> |
---|
| 222 | <mkdir dir="@{apgeneratedsrcdir}"/> |
---|
| 223 | <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> |
---|
| 224 | <src> |
---|
| 225 | <dirset dir="@{gensrcdir}" erroronmissingdir="false"> |
---|
| 226 | <include name="*"/> |
---|
| 227 | </dirset> |
---|
| 228 | </src> |
---|
[0] | 229 | <classpath> |
---|
| 230 | <path path="@{classpath}"/> |
---|
| 231 | </classpath> |
---|
[5] | 232 | <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> |
---|
| 233 | <compilerarg line="${javac.compilerargs}"/> |
---|
| 234 | <compilerarg value="-processorpath"/> |
---|
| 235 | <compilerarg path="@{processorpath}:${empty.dir}"/> |
---|
| 236 | <compilerarg line="${ap.processors.internal}"/> |
---|
| 237 | <compilerarg line="${annotation.processing.processor.options}"/> |
---|
| 238 | <compilerarg value="-s"/> |
---|
| 239 | <compilerarg path="@{apgeneratedsrcdir}"/> |
---|
| 240 | <compilerarg line="${ap.proc.none.internal}"/> |
---|
[0] | 241 | <customize/> |
---|
| 242 | </javac> |
---|
| 243 | </sequential> |
---|
| 244 | </macrodef> |
---|
[5] | 245 | </target> |
---|
| 246 | <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal"> |
---|
| 247 | <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 248 | <attribute default="${src.dir}" name="srcdir"/> |
---|
| 249 | <attribute default="${build.classes.dir}" name="destdir"/> |
---|
| 250 | <attribute default="${javac.classpath}" name="classpath"/> |
---|
| 251 | <attribute default="${javac.processorpath}" name="processorpath"/> |
---|
| 252 | <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> |
---|
| 253 | <attribute default="${includes}" name="includes"/> |
---|
| 254 | <attribute default="${excludes}" name="excludes"/> |
---|
| 255 | <attribute default="${javac.debug}" name="debug"/> |
---|
| 256 | <attribute default="${empty.dir}" name="sourcepath"/> |
---|
| 257 | <attribute default="${empty.dir}" name="gensrcdir"/> |
---|
| 258 | <element name="customize" optional="true"/> |
---|
| 259 | <sequential> |
---|
| 260 | <property location="${build.dir}/empty" name="empty.dir"/> |
---|
| 261 | <mkdir dir="${empty.dir}"/> |
---|
| 262 | <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> |
---|
| 263 | <src> |
---|
| 264 | <dirset dir="@{gensrcdir}" erroronmissingdir="false"> |
---|
| 265 | <include name="*"/> |
---|
| 266 | </dirset> |
---|
| 267 | </src> |
---|
| 268 | <classpath> |
---|
| 269 | <path path="@{classpath}"/> |
---|
| 270 | </classpath> |
---|
| 271 | <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> |
---|
| 272 | <compilerarg line="${javac.compilerargs}"/> |
---|
| 273 | <customize/> |
---|
| 274 | </javac> |
---|
| 275 | </sequential> |
---|
| 276 | </macrodef> |
---|
| 277 | </target> |
---|
| 278 | <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac"> |
---|
[0] | 279 | <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 280 | <attribute default="${src.dir}" name="srcdir"/> |
---|
| 281 | <attribute default="${build.classes.dir}" name="destdir"/> |
---|
| 282 | <attribute default="${javac.classpath}" name="classpath"/> |
---|
| 283 | <sequential> |
---|
| 284 | <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> |
---|
| 285 | <classpath> |
---|
| 286 | <path path="@{classpath}"/> |
---|
| 287 | </classpath> |
---|
| 288 | </depend> |
---|
| 289 | </sequential> |
---|
| 290 | </macrodef> |
---|
| 291 | <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 292 | <attribute default="${build.classes.dir}" name="destdir"/> |
---|
| 293 | <sequential> |
---|
| 294 | <fail unless="javac.includes">Must set javac.includes</fail> |
---|
| 295 | <pathconvert pathsep="," property="javac.includes.binary"> |
---|
| 296 | <path> |
---|
| 297 | <filelist dir="@{destdir}" files="${javac.includes}"/> |
---|
| 298 | </path> |
---|
| 299 | <globmapper from="*.java" to="*.class"/> |
---|
| 300 | </pathconvert> |
---|
| 301 | <delete> |
---|
| 302 | <files includes="${javac.includes.binary}"/> |
---|
| 303 | </delete> |
---|
| 304 | </sequential> |
---|
| 305 | </macrodef> |
---|
| 306 | </target> |
---|
| 307 | <target name="-init-macrodef-junit"> |
---|
| 308 | <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 309 | <attribute default="${includes}" name="includes"/> |
---|
| 310 | <attribute default="${excludes}" name="excludes"/> |
---|
| 311 | <attribute default="**" name="testincludes"/> |
---|
| 312 | <sequential> |
---|
[5] | 313 | <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}"> |
---|
[0] | 314 | <batchtest todir="${build.test.results.dir}"> |
---|
| 315 | <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> |
---|
| 316 | <filename name="@{testincludes}"/> |
---|
| 317 | </fileset> |
---|
| 318 | </batchtest> |
---|
| 319 | <classpath> |
---|
| 320 | <path path="${run.test.classpath}"/> |
---|
| 321 | </classpath> |
---|
| 322 | <syspropertyset> |
---|
| 323 | <propertyref prefix="test-sys-prop."/> |
---|
| 324 | <mapper from="test-sys-prop.*" to="*" type="glob"/> |
---|
| 325 | </syspropertyset> |
---|
| 326 | <formatter type="brief" usefile="false"/> |
---|
| 327 | <formatter type="xml"/> |
---|
[5] | 328 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
---|
[0] | 329 | <jvmarg line="${run.jvmargs}"/> |
---|
| 330 | </junit> |
---|
| 331 | </sequential> |
---|
| 332 | </macrodef> |
---|
| 333 | </target> |
---|
[3] | 334 | <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> |
---|
[0] | 335 | <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> |
---|
| 336 | <attribute default="${main.class}" name="name"/> |
---|
| 337 | <attribute default="${debug.classpath}" name="classpath"/> |
---|
| 338 | <attribute default="" name="stopclassname"/> |
---|
| 339 | <sequential> |
---|
[3] | 340 | <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}"> |
---|
[0] | 341 | <classpath> |
---|
| 342 | <path path="@{classpath}"/> |
---|
| 343 | </classpath> |
---|
| 344 | </nbjpdastart> |
---|
| 345 | </sequential> |
---|
| 346 | </macrodef> |
---|
| 347 | <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> |
---|
| 348 | <attribute default="${build.classes.dir}" name="dir"/> |
---|
| 349 | <sequential> |
---|
| 350 | <nbjpdareload> |
---|
| 351 | <fileset dir="@{dir}" includes="${fix.classes}"> |
---|
| 352 | <include name="${fix.includes}*.class"/> |
---|
| 353 | </fileset> |
---|
| 354 | </nbjpdareload> |
---|
| 355 | </sequential> |
---|
| 356 | </macrodef> |
---|
| 357 | </target> |
---|
| 358 | <target name="-init-debug-args"> |
---|
| 359 | <property name="version-output" value="java version "${ant.java.version}"/> |
---|
| 360 | <condition property="have-jdk-older-than-1.4"> |
---|
| 361 | <or> |
---|
| 362 | <contains string="${version-output}" substring="java version "1.0"/> |
---|
| 363 | <contains string="${version-output}" substring="java version "1.1"/> |
---|
| 364 | <contains string="${version-output}" substring="java version "1.2"/> |
---|
| 365 | <contains string="${version-output}" substring="java version "1.3"/> |
---|
| 366 | </or> |
---|
| 367 | </condition> |
---|
| 368 | <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> |
---|
| 369 | <istrue value="${have-jdk-older-than-1.4}"/> |
---|
| 370 | </condition> |
---|
[3] | 371 | <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem"> |
---|
| 372 | <os family="windows"/> |
---|
| 373 | </condition> |
---|
| 374 | <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}"> |
---|
| 375 | <isset property="debug.transport"/> |
---|
| 376 | </condition> |
---|
[0] | 377 | </target> |
---|
| 378 | <target depends="-init-debug-args" name="-init-macrodef-debug"> |
---|
| 379 | <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 380 | <attribute default="${main.class}" name="classname"/> |
---|
| 381 | <attribute default="${debug.classpath}" name="classpath"/> |
---|
| 382 | <element name="customize" optional="true"/> |
---|
| 383 | <sequential> |
---|
| 384 | <java classname="@{classname}" dir="${work.dir}" fork="true"> |
---|
[5] | 385 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
---|
[0] | 386 | <jvmarg line="${debug-args-line}"/> |
---|
[3] | 387 | <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> |
---|
[5] | 388 | <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> |
---|
| 389 | <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> |
---|
[0] | 390 | <jvmarg line="${run.jvmargs}"/> |
---|
| 391 | <classpath> |
---|
| 392 | <path path="@{classpath}"/> |
---|
| 393 | </classpath> |
---|
| 394 | <syspropertyset> |
---|
| 395 | <propertyref prefix="run-sys-prop."/> |
---|
| 396 | <mapper from="run-sys-prop.*" to="*" type="glob"/> |
---|
| 397 | </syspropertyset> |
---|
| 398 | <customize/> |
---|
| 399 | </java> |
---|
| 400 | </sequential> |
---|
| 401 | </macrodef> |
---|
| 402 | </target> |
---|
| 403 | <target name="-init-macrodef-java"> |
---|
| 404 | <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> |
---|
| 405 | <attribute default="${main.class}" name="classname"/> |
---|
[5] | 406 | <attribute default="${run.classpath}" name="classpath"/> |
---|
[0] | 407 | <element name="customize" optional="true"/> |
---|
| 408 | <sequential> |
---|
| 409 | <java classname="@{classname}" dir="${work.dir}" fork="true"> |
---|
[5] | 410 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
---|
| 411 | <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> |
---|
| 412 | <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> |
---|
[0] | 413 | <jvmarg line="${run.jvmargs}"/> |
---|
| 414 | <classpath> |
---|
[5] | 415 | <path path="@{classpath}"/> |
---|
[0] | 416 | </classpath> |
---|
| 417 | <syspropertyset> |
---|
| 418 | <propertyref prefix="run-sys-prop."/> |
---|
| 419 | <mapper from="run-sys-prop.*" to="*" type="glob"/> |
---|
| 420 | </syspropertyset> |
---|
| 421 | <customize/> |
---|
| 422 | </java> |
---|
| 423 | </sequential> |
---|
| 424 | </macrodef> |
---|
| 425 | </target> |
---|
[5] | 426 | <target name="-init-macrodef-copylibs"> |
---|
| 427 | <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 428 | <element name="customize" optional="true"/> |
---|
| 429 | <sequential> |
---|
| 430 | <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> |
---|
| 431 | <pathconvert property="run.classpath.without.build.classes.dir"> |
---|
| 432 | <path path="${run.classpath}"/> |
---|
| 433 | <map from="${build.classes.dir.resolved}" to=""/> |
---|
| 434 | </pathconvert> |
---|
| 435 | <pathconvert pathsep=" " property="jar.classpath"> |
---|
| 436 | <path path="${run.classpath.without.build.classes.dir}"/> |
---|
| 437 | <chainedmapper> |
---|
| 438 | <flattenmapper/> |
---|
| 439 | <globmapper from="*" to="lib/*"/> |
---|
| 440 | </chainedmapper> |
---|
| 441 | </pathconvert> |
---|
| 442 | <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> |
---|
| 443 | <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> |
---|
| 444 | <fileset dir="${build.classes.dir}"/> |
---|
| 445 | <manifest> |
---|
| 446 | <attribute name="Class-Path" value="${jar.classpath}"/> |
---|
| 447 | <customize/> |
---|
| 448 | </manifest> |
---|
| 449 | </copylibs> |
---|
| 450 | </sequential> |
---|
| 451 | </macrodef> |
---|
| 452 | </target> |
---|
[0] | 453 | <target name="-init-presetdef-jar"> |
---|
| 454 | <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> |
---|
[5] | 455 | <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}"> |
---|
[0] | 456 | <j2seproject1:fileset dir="${build.classes.dir}"/> |
---|
| 457 | </jar> |
---|
| 458 | </presetdef> |
---|
| 459 | </target> |
---|
[5] | 460 | <target name="-init-ap-cmdline-properties"> |
---|
| 461 | <property name="annotation.processing.enabled" value="true"/> |
---|
| 462 | <property name="annotation.processing.processors.list" value=""/> |
---|
| 463 | <property name="annotation.processing.processor.options" value=""/> |
---|
| 464 | <property name="annotation.processing.run.all.processors" value="true"/> |
---|
| 465 | <property name="javac.processorpath" value="${javac.classpath}"/> |
---|
| 466 | <property name="javac.test.processorpath" value="${javac.test.classpath}"/> |
---|
| 467 | <condition property="ap.supported.internal" value="true"> |
---|
| 468 | <not> |
---|
| 469 | <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/> |
---|
| 470 | </not> |
---|
| 471 | </condition> |
---|
| 472 | </target> |
---|
| 473 | <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported"> |
---|
| 474 | <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}"> |
---|
| 475 | <isfalse value="${annotation.processing.run.all.processors}"/> |
---|
| 476 | </condition> |
---|
| 477 | <condition else="" property="ap.proc.none.internal" value="-proc:none"> |
---|
| 478 | <isfalse value="${annotation.processing.enabled}"/> |
---|
| 479 | </condition> |
---|
| 480 | </target> |
---|
| 481 | <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline"> |
---|
| 482 | <property name="ap.cmd.line.internal" value=""/> |
---|
| 483 | </target> |
---|
| 484 | <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/> |
---|
[0] | 485 | <!-- |
---|
| 486 | =================== |
---|
| 487 | COMPILATION SECTION |
---|
| 488 | =================== |
---|
| 489 | --> |
---|
[5] | 490 | <target name="-deps-jar-init" unless="built-jar.properties"> |
---|
| 491 | <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/> |
---|
| 492 | <delete file="${built-jar.properties}" quiet="true"/> |
---|
| 493 | </target> |
---|
| 494 | <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> |
---|
| 495 | <echo level="warn" message="Cycle detected: SuperPostak was already built"/> |
---|
| 496 | </target> |
---|
| 497 | <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> |
---|
| 498 | <mkdir dir="${build.dir}"/> |
---|
| 499 | <touch file="${built-jar.properties}" verbose="false"/> |
---|
| 500 | <property file="${built-jar.properties}" prefix="already.built.jar."/> |
---|
| 501 | <antcall target="-warn-already-built-jar"/> |
---|
| 502 | <propertyfile file="${built-jar.properties}"> |
---|
| 503 | <entry key="${basedir}" value=""/> |
---|
| 504 | </propertyfile> |
---|
| 505 | <antcall target="-maybe-call-dep"> |
---|
| 506 | <param name="call.built.properties" value="${built-jar.properties}"/> |
---|
| 507 | <param location="${project.JFTable}" name="call.subproject"/> |
---|
| 508 | <param location="${project.JFTable}/build.xml" name="call.script"/> |
---|
| 509 | <param name="call.target" value="jar"/> |
---|
| 510 | <param name="transfer.built-jar.properties" value="${built-jar.properties}"/> |
---|
| 511 | </antcall> |
---|
| 512 | <antcall target="-maybe-call-dep"> |
---|
| 513 | <param name="call.built.properties" value="${built-jar.properties}"/> |
---|
| 514 | <param location="${project.Postak}" name="call.subproject"/> |
---|
| 515 | <param location="${project.Postak}/build.xml" name="call.script"/> |
---|
| 516 | <param name="call.target" value="jar"/> |
---|
| 517 | <param name="transfer.built-jar.properties" value="${built-jar.properties}"/> |
---|
| 518 | </antcall> |
---|
[0] | 519 | </target> |
---|
[3] | 520 | <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> |
---|
| 521 | <target depends="init" name="-check-automatic-build"> |
---|
| 522 | <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> |
---|
| 523 | </target> |
---|
| 524 | <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> |
---|
| 525 | <antcall target="clean"/> |
---|
| 526 | </target> |
---|
[0] | 527 | <target depends="init,deps-jar" name="-pre-pre-compile"> |
---|
| 528 | <mkdir dir="${build.classes.dir}"/> |
---|
| 529 | </target> |
---|
| 530 | <target name="-pre-compile"> |
---|
| 531 | <!-- Empty placeholder for easier customization. --> |
---|
| 532 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 533 | </target> |
---|
| 534 | <target if="do.depend.true" name="-compile-depend"> |
---|
[5] | 535 | <pathconvert property="build.generated.subdirs"> |
---|
| 536 | <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false"> |
---|
| 537 | <include name="*"/> |
---|
| 538 | </dirset> |
---|
| 539 | </pathconvert> |
---|
| 540 | <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/> |
---|
[0] | 541 | </target> |
---|
[5] | 542 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile"> |
---|
| 543 | <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> |
---|
[0] | 544 | <copy todir="${build.classes.dir}"> |
---|
| 545 | <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> |
---|
| 546 | </copy> |
---|
| 547 | </target> |
---|
[5] | 548 | <target if="has.persistence.xml" name="-copy-persistence-xml"> |
---|
| 549 | <mkdir dir="${build.classes.dir}/META-INF"/> |
---|
| 550 | <copy todir="${build.classes.dir}/META-INF"> |
---|
| 551 | <fileset dir="${meta.inf.dir}" includes="persistence.xml"/> |
---|
| 552 | </copy> |
---|
| 553 | </target> |
---|
[0] | 554 | <target name="-post-compile"> |
---|
| 555 | <!-- Empty placeholder for easier customization. --> |
---|
| 556 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 557 | </target> |
---|
[3] | 558 | <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> |
---|
[0] | 559 | <target name="-pre-compile-single"> |
---|
| 560 | <!-- Empty placeholder for easier customization. --> |
---|
| 561 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 562 | </target> |
---|
| 563 | <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> |
---|
| 564 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> |
---|
| 565 | <j2seproject3:force-recompile/> |
---|
[5] | 566 | <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/> |
---|
[0] | 567 | </target> |
---|
| 568 | <target name="-post-compile-single"> |
---|
| 569 | <!-- Empty placeholder for easier customization. --> |
---|
| 570 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 571 | </target> |
---|
[3] | 572 | <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> |
---|
[0] | 573 | <!-- |
---|
| 574 | ==================== |
---|
| 575 | JAR BUILDING SECTION |
---|
| 576 | ==================== |
---|
| 577 | --> |
---|
| 578 | <target depends="init" name="-pre-pre-jar"> |
---|
| 579 | <dirname file="${dist.jar}" property="dist.jar.dir"/> |
---|
| 580 | <mkdir dir="${dist.jar.dir}"/> |
---|
| 581 | </target> |
---|
| 582 | <target name="-pre-jar"> |
---|
| 583 | <!-- Empty placeholder for easier customization. --> |
---|
| 584 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 585 | </target> |
---|
[5] | 586 | <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available"> |
---|
[0] | 587 | <j2seproject1:jar/> |
---|
| 588 | </target> |
---|
[5] | 589 | <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class"> |
---|
[0] | 590 | <j2seproject1:jar manifest="${manifest.file}"/> |
---|
| 591 | </target> |
---|
[5] | 592 | <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available"> |
---|
[0] | 593 | <j2seproject1:jar manifest="${manifest.file}"> |
---|
| 594 | <j2seproject1:manifest> |
---|
| 595 | <j2seproject1:attribute name="Main-Class" value="${main.class}"/> |
---|
| 596 | </j2seproject1:manifest> |
---|
| 597 | </j2seproject1:jar> |
---|
| 598 | <echo>To run this application from the command line without Ant, try:</echo> |
---|
| 599 | <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> |
---|
| 600 | <property location="${dist.jar}" name="dist.jar.resolved"/> |
---|
| 601 | <pathconvert property="run.classpath.with.dist.jar"> |
---|
| 602 | <path path="${run.classpath}"/> |
---|
| 603 | <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> |
---|
| 604 | </pathconvert> |
---|
| 605 | <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> |
---|
| 606 | </target> |
---|
[5] | 607 | <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen"> |
---|
| 608 | <basename file="${application.splash}" property="splashscreen.basename"/> |
---|
| 609 | <mkdir dir="${build.classes.dir}/META-INF"/> |
---|
| 610 | <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> |
---|
| 611 | <j2seproject3:copylibs> |
---|
| 612 | <customize> |
---|
[0] | 613 | <attribute name="Main-Class" value="${main.class}"/> |
---|
[5] | 614 | <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> |
---|
| 615 | </customize> |
---|
| 616 | </j2seproject3:copylibs> |
---|
| 617 | <echo>To run this application from the command line without Ant, try:</echo> |
---|
| 618 | <property location="${dist.jar}" name="dist.jar.resolved"/> |
---|
| 619 | <echo>java -jar "${dist.jar.resolved}"</echo> |
---|
| 620 | </target> |
---|
| 621 | <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available"> |
---|
| 622 | <j2seproject3:copylibs> |
---|
| 623 | <customize> |
---|
| 624 | <attribute name="Main-Class" value="${main.class}"/> |
---|
| 625 | </customize> |
---|
| 626 | </j2seproject3:copylibs> |
---|
[0] | 627 | <echo>To run this application from the command line without Ant, try:</echo> |
---|
| 628 | <property location="${dist.jar}" name="dist.jar.resolved"/> |
---|
| 629 | <echo>java -jar "${dist.jar.resolved}"</echo> |
---|
| 630 | </target> |
---|
| 631 | <target name="-post-jar"> |
---|
| 632 | <!-- Empty placeholder for easier customization. --> |
---|
| 633 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 634 | </target> |
---|
[5] | 635 | <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-post-jar,jnlp" description="Build JAR." name="jar"/> |
---|
[0] | 636 | <!-- |
---|
| 637 | ================= |
---|
| 638 | EXECUTION SECTION |
---|
| 639 | ================= |
---|
| 640 | --> |
---|
| 641 | <target depends="init,compile" description="Run a main class." name="run"> |
---|
| 642 | <j2seproject1:java> |
---|
| 643 | <customize> |
---|
| 644 | <arg line="${application.args}"/> |
---|
| 645 | </customize> |
---|
| 646 | </j2seproject1:java> |
---|
| 647 | </target> |
---|
| 648 | <target name="-do-not-recompile"> |
---|
| 649 | <property name="javac.includes.binary" value=""/> |
---|
| 650 | </target> |
---|
[5] | 651 | <target depends="init,compile-single" name="run-single"> |
---|
[0] | 652 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
---|
| 653 | <j2seproject1:java classname="${run.class}"/> |
---|
| 654 | </target> |
---|
[5] | 655 | <target depends="init,compile-test-single" name="run-test-with-main"> |
---|
| 656 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
---|
| 657 | <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> |
---|
| 658 | </target> |
---|
[0] | 659 | <!-- |
---|
| 660 | ================= |
---|
| 661 | DEBUGGING SECTION |
---|
| 662 | ================= |
---|
| 663 | --> |
---|
| 664 | <target depends="init" if="netbeans.home" name="-debug-start-debugger"> |
---|
| 665 | <j2seproject1:nbjpdastart name="${debug.class}"/> |
---|
| 666 | </target> |
---|
[5] | 667 | <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test"> |
---|
| 668 | <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/> |
---|
| 669 | </target> |
---|
[0] | 670 | <target depends="init,compile" name="-debug-start-debuggee"> |
---|
| 671 | <j2seproject3:debug> |
---|
| 672 | <customize> |
---|
| 673 | <arg line="${application.args}"/> |
---|
| 674 | </customize> |
---|
| 675 | </j2seproject3:debug> |
---|
| 676 | </target> |
---|
| 677 | <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> |
---|
| 678 | <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> |
---|
| 679 | <j2seproject1:nbjpdastart stopclassname="${main.class}"/> |
---|
| 680 | </target> |
---|
| 681 | <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> |
---|
| 682 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> |
---|
| 683 | <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> |
---|
| 684 | <j2seproject3:debug classname="${debug.class}"/> |
---|
| 685 | </target> |
---|
[5] | 686 | <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> |
---|
| 687 | <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> |
---|
| 688 | <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> |
---|
| 689 | <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> |
---|
| 690 | </target> |
---|
| 691 | <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> |
---|
[0] | 692 | <target depends="init" name="-pre-debug-fix"> |
---|
| 693 | <fail unless="fix.includes">Must set fix.includes</fail> |
---|
| 694 | <property name="javac.includes" value="${fix.includes}.java"/> |
---|
| 695 | </target> |
---|
| 696 | <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> |
---|
| 697 | <j2seproject1:nbjpdareload/> |
---|
| 698 | </target> |
---|
| 699 | <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> |
---|
| 700 | <!-- |
---|
| 701 | =============== |
---|
| 702 | JAVADOC SECTION |
---|
| 703 | =============== |
---|
| 704 | --> |
---|
[5] | 705 | <target depends="init" if="have.sources" name="-javadoc-build"> |
---|
[0] | 706 | <mkdir dir="${dist.javadoc.dir}"/> |
---|
| 707 | <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}"> |
---|
| 708 | <classpath> |
---|
| 709 | <path path="${javac.classpath}"/> |
---|
| 710 | </classpath> |
---|
| 711 | <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> |
---|
| 712 | <filename name="**/*.java"/> |
---|
| 713 | </fileset> |
---|
[5] | 714 | <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> |
---|
| 715 | <include name="**/*.java"/> |
---|
| 716 | </fileset> |
---|
[0] | 717 | </javadoc> |
---|
[5] | 718 | <copy todir="${dist.javadoc.dir}"> |
---|
| 719 | <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> |
---|
| 720 | <filename name="**/doc-files/**"/> |
---|
| 721 | </fileset> |
---|
| 722 | <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> |
---|
| 723 | <include name="**/doc-files/**"/> |
---|
| 724 | </fileset> |
---|
| 725 | </copy> |
---|
[0] | 726 | </target> |
---|
| 727 | <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> |
---|
| 728 | <nbbrowse file="${dist.javadoc.dir}/index.html"/> |
---|
| 729 | </target> |
---|
| 730 | <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> |
---|
| 731 | <!-- |
---|
| 732 | ========================= |
---|
| 733 | JUNIT COMPILATION SECTION |
---|
| 734 | ========================= |
---|
| 735 | --> |
---|
| 736 | <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> |
---|
| 737 | <mkdir dir="${build.test.classes.dir}"/> |
---|
| 738 | </target> |
---|
| 739 | <target name="-pre-compile-test"> |
---|
| 740 | <!-- Empty placeholder for easier customization. --> |
---|
| 741 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 742 | </target> |
---|
| 743 | <target if="do.depend.true" name="-compile-test-depend"> |
---|
| 744 | <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> |
---|
| 745 | </target> |
---|
| 746 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> |
---|
[5] | 747 | <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/> |
---|
[0] | 748 | <copy todir="${build.test.classes.dir}"> |
---|
| 749 | <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> |
---|
| 750 | </copy> |
---|
| 751 | </target> |
---|
| 752 | <target name="-post-compile-test"> |
---|
| 753 | <!-- Empty placeholder for easier customization. --> |
---|
| 754 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 755 | </target> |
---|
| 756 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> |
---|
| 757 | <target name="-pre-compile-test-single"> |
---|
| 758 | <!-- Empty placeholder for easier customization. --> |
---|
| 759 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 760 | </target> |
---|
| 761 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> |
---|
| 762 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> |
---|
| 763 | <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> |
---|
[5] | 764 | <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/> |
---|
[0] | 765 | <copy todir="${build.test.classes.dir}"> |
---|
| 766 | <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> |
---|
| 767 | </copy> |
---|
| 768 | </target> |
---|
| 769 | <target name="-post-compile-test-single"> |
---|
| 770 | <!-- Empty placeholder for easier customization. --> |
---|
| 771 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 772 | </target> |
---|
| 773 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> |
---|
| 774 | <!-- |
---|
| 775 | ======================= |
---|
| 776 | JUNIT EXECUTION SECTION |
---|
| 777 | ======================= |
---|
| 778 | --> |
---|
| 779 | <target depends="init" if="have.tests" name="-pre-test-run"> |
---|
| 780 | <mkdir dir="${build.test.results.dir}"/> |
---|
| 781 | </target> |
---|
| 782 | <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> |
---|
| 783 | <j2seproject3:junit testincludes="**/*Test.java"/> |
---|
| 784 | </target> |
---|
| 785 | <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> |
---|
[5] | 786 | <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> |
---|
[0] | 787 | </target> |
---|
| 788 | <target depends="init" if="have.tests" name="test-report"/> |
---|
| 789 | <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> |
---|
| 790 | <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> |
---|
| 791 | <target depends="init" if="have.tests" name="-pre-test-run-single"> |
---|
| 792 | <mkdir dir="${build.test.results.dir}"/> |
---|
| 793 | </target> |
---|
| 794 | <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> |
---|
| 795 | <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> |
---|
| 796 | <j2seproject3:junit excludes="" includes="${test.includes}"/> |
---|
| 797 | </target> |
---|
| 798 | <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> |
---|
[5] | 799 | <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> |
---|
[0] | 800 | </target> |
---|
[5] | 801 | <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"/> |
---|
[0] | 802 | <!-- |
---|
| 803 | ======================= |
---|
| 804 | JUNIT DEBUGGING SECTION |
---|
| 805 | ======================= |
---|
| 806 | --> |
---|
| 807 | <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test"> |
---|
| 808 | <fail unless="test.class">Must select one file in the IDE or set test.class</fail> |
---|
| 809 | <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/> |
---|
| 810 | <delete file="${test.report.file}"/> |
---|
| 811 | <mkdir dir="${build.test.results.dir}"/> |
---|
| 812 | <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}"> |
---|
| 813 | <customize> |
---|
| 814 | <syspropertyset> |
---|
| 815 | <propertyref prefix="test-sys-prop."/> |
---|
| 816 | <mapper from="test-sys-prop.*" to="*" type="glob"/> |
---|
| 817 | </syspropertyset> |
---|
| 818 | <arg value="${test.class}"/> |
---|
| 819 | <arg value="showoutput=true"/> |
---|
| 820 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/> |
---|
| 821 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/> |
---|
| 822 | </customize> |
---|
| 823 | </j2seproject3:debug> |
---|
| 824 | </target> |
---|
| 825 | <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> |
---|
| 826 | <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> |
---|
| 827 | </target> |
---|
[5] | 828 | <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> |
---|
[0] | 829 | <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> |
---|
| 830 | <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> |
---|
| 831 | </target> |
---|
| 832 | <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> |
---|
| 833 | <!-- |
---|
| 834 | ========================= |
---|
| 835 | APPLET EXECUTION SECTION |
---|
| 836 | ========================= |
---|
| 837 | --> |
---|
| 838 | <target depends="init,compile-single" name="run-applet"> |
---|
| 839 | <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> |
---|
| 840 | <j2seproject1:java classname="sun.applet.AppletViewer"> |
---|
| 841 | <customize> |
---|
| 842 | <arg value="${applet.url}"/> |
---|
| 843 | </customize> |
---|
| 844 | </j2seproject1:java> |
---|
| 845 | </target> |
---|
| 846 | <!-- |
---|
| 847 | ========================= |
---|
| 848 | APPLET DEBUGGING SECTION |
---|
| 849 | ========================= |
---|
| 850 | --> |
---|
| 851 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> |
---|
| 852 | <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> |
---|
| 853 | <j2seproject3:debug classname="sun.applet.AppletViewer"> |
---|
| 854 | <customize> |
---|
| 855 | <arg value="${applet.url}"/> |
---|
| 856 | </customize> |
---|
| 857 | </j2seproject3:debug> |
---|
| 858 | </target> |
---|
| 859 | <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> |
---|
| 860 | <!-- |
---|
| 861 | =============== |
---|
| 862 | CLEANUP SECTION |
---|
| 863 | =============== |
---|
| 864 | --> |
---|
[5] | 865 | <target name="-deps-clean-init" unless="built-clean.properties"> |
---|
| 866 | <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/> |
---|
| 867 | <delete file="${built-clean.properties}" quiet="true"/> |
---|
| 868 | </target> |
---|
| 869 | <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> |
---|
| 870 | <echo level="warn" message="Cycle detected: SuperPostak was already built"/> |
---|
| 871 | </target> |
---|
| 872 | <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> |
---|
| 873 | <mkdir dir="${build.dir}"/> |
---|
| 874 | <touch file="${built-clean.properties}" verbose="false"/> |
---|
| 875 | <property file="${built-clean.properties}" prefix="already.built.clean."/> |
---|
| 876 | <antcall target="-warn-already-built-clean"/> |
---|
| 877 | <propertyfile file="${built-clean.properties}"> |
---|
| 878 | <entry key="${basedir}" value=""/> |
---|
| 879 | </propertyfile> |
---|
| 880 | <antcall target="-maybe-call-dep"> |
---|
| 881 | <param name="call.built.properties" value="${built-clean.properties}"/> |
---|
| 882 | <param location="${project.JFTable}" name="call.subproject"/> |
---|
| 883 | <param location="${project.JFTable}/build.xml" name="call.script"/> |
---|
| 884 | <param name="call.target" value="clean"/> |
---|
| 885 | <param name="transfer.built-clean.properties" value="${built-clean.properties}"/> |
---|
| 886 | </antcall> |
---|
| 887 | <antcall target="-maybe-call-dep"> |
---|
| 888 | <param name="call.built.properties" value="${built-clean.properties}"/> |
---|
| 889 | <param location="${project.Postak}" name="call.subproject"/> |
---|
| 890 | <param location="${project.Postak}/build.xml" name="call.script"/> |
---|
| 891 | <param name="call.target" value="clean"/> |
---|
| 892 | <param name="transfer.built-clean.properties" value="${built-clean.properties}"/> |
---|
| 893 | </antcall> |
---|
[0] | 894 | </target> |
---|
| 895 | <target depends="init" name="-do-clean"> |
---|
| 896 | <delete dir="${build.dir}"/> |
---|
[5] | 897 | <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/> |
---|
[0] | 898 | </target> |
---|
| 899 | <target name="-post-clean"> |
---|
| 900 | <!-- Empty placeholder for easier customization. --> |
---|
| 901 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 902 | </target> |
---|
| 903 | <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> |
---|
[5] | 904 | <target name="-check-call-dep"> |
---|
| 905 | <property file="${call.built.properties}" prefix="already.built."/> |
---|
| 906 | <condition property="should.call.dep"> |
---|
| 907 | <not> |
---|
| 908 | <isset property="already.built.${call.subproject}"/> |
---|
| 909 | </not> |
---|
| 910 | </condition> |
---|
| 911 | </target> |
---|
| 912 | <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep"> |
---|
| 913 | <ant antfile="${call.script}" inheritall="false" target="${call.target}"> |
---|
| 914 | <propertyset> |
---|
| 915 | <propertyref prefix="transfer."/> |
---|
| 916 | <mapper from="transfer.*" to="*" type="glob"/> |
---|
| 917 | </propertyset> |
---|
| 918 | </ant> |
---|
| 919 | </target> |
---|
[0] | 920 | </project> |
---|