[332] | 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 | - test compilation
|
---|
| 16 | - test execution
|
---|
| 17 | - test 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="QCG-Icon-impl">
|
---|
| 23 | <fail message="Please build using Ant 1.8.0 or higher.">
|
---|
| 24 | <condition>
|
---|
| 25 | <not>
|
---|
| 26 | <antversion atleast="1.8.0"/>
|
---|
| 27 | </not>
|
---|
| 28 | </condition>
|
---|
| 29 | </fail>
|
---|
| 30 | <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
|
---|
| 31 | <!--
|
---|
| 32 | ======================
|
---|
| 33 | INITIALIZATION SECTION
|
---|
| 34 | ======================
|
---|
| 35 | -->
|
---|
| 36 | <target name="-pre-init">
|
---|
| 37 | <!-- Empty placeholder for easier customization. -->
|
---|
| 38 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 39 | </target>
|
---|
| 40 | <target depends="-pre-init" name="-init-private">
|
---|
| 41 | <property file="nbproject/private/config.properties"/>
|
---|
| 42 | <property file="nbproject/private/configs/${config}.properties"/>
|
---|
| 43 | <property file="nbproject/private/private.properties"/>
|
---|
| 44 | </target>
|
---|
| 45 | <target depends="-pre-init,-init-private" name="-init-user">
|
---|
| 46 | <property file="${user.properties.file}"/>
|
---|
| 47 | <!-- The two properties below are usually overridden -->
|
---|
| 48 | <!-- by the active platform. Just a fallback. -->
|
---|
| 49 | <property name="default.javac.source" value="1.4"/>
|
---|
| 50 | <property name="default.javac.target" value="1.4"/>
|
---|
| 51 | </target>
|
---|
| 52 | <target depends="-pre-init,-init-private,-init-user" name="-init-project">
|
---|
| 53 | <property file="nbproject/configs/${config}.properties"/>
|
---|
| 54 | <property file="nbproject/project.properties"/>
|
---|
| 55 | </target>
|
---|
| 56 | <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
---|
| 57 | <property name="platform.java" value="${java.home}/bin/java"/>
|
---|
| 58 | <available file="${manifest.file}" property="manifest.available"/>
|
---|
| 59 | <condition property="splashscreen.available">
|
---|
| 60 | <and>
|
---|
| 61 | <not>
|
---|
| 62 | <equals arg1="${application.splash}" arg2="" trim="true"/>
|
---|
| 63 | </not>
|
---|
| 64 | <available file="${application.splash}"/>
|
---|
| 65 | </and>
|
---|
| 66 | </condition>
|
---|
| 67 | <condition property="main.class.available">
|
---|
| 68 | <and>
|
---|
| 69 | <isset property="main.class"/>
|
---|
| 70 | <not>
|
---|
| 71 | <equals arg1="${main.class}" arg2="" trim="true"/>
|
---|
| 72 | </not>
|
---|
| 73 | </and>
|
---|
| 74 | </condition>
|
---|
| 75 | <condition property="profile.available">
|
---|
| 76 | <and>
|
---|
| 77 | <isset property="javac.profile"/>
|
---|
| 78 | <length length="0" string="${javac.profile}" when="greater"/>
|
---|
| 79 | <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
|
---|
| 80 | </and>
|
---|
| 81 | </condition>
|
---|
| 82 | <condition property="do.archive">
|
---|
| 83 | <or>
|
---|
| 84 | <not>
|
---|
| 85 | <istrue value="${jar.archive.disabled}"/>
|
---|
| 86 | </not>
|
---|
| 87 | <istrue value="${not.archive.disabled}"/>
|
---|
| 88 | </or>
|
---|
| 89 | </condition>
|
---|
| 90 | <condition property="do.mkdist">
|
---|
| 91 | <and>
|
---|
| 92 | <isset property="do.archive"/>
|
---|
| 93 | <isset property="libs.CopyLibs.classpath"/>
|
---|
| 94 | <not>
|
---|
| 95 | <istrue value="${mkdist.disabled}"/>
|
---|
| 96 | </not>
|
---|
| 97 | </and>
|
---|
| 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+main.class.available">
|
---|
| 106 | <and>
|
---|
| 107 | <isset property="main.class.available"/>
|
---|
| 108 | <istrue value="${do.archive}"/>
|
---|
| 109 | </and>
|
---|
| 110 | </condition>
|
---|
| 111 | <condition property="do.archive+splashscreen.available">
|
---|
| 112 | <and>
|
---|
| 113 | <isset property="splashscreen.available"/>
|
---|
| 114 | <istrue value="${do.archive}"/>
|
---|
| 115 | </and>
|
---|
| 116 | </condition>
|
---|
| 117 | <condition property="do.archive+profile.available">
|
---|
| 118 | <and>
|
---|
| 119 | <isset property="profile.available"/>
|
---|
| 120 | <istrue value="${do.archive}"/>
|
---|
| 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="run.jvmargs.ide" value=""/>
|
---|
| 147 | <property name="javac.compilerargs" value=""/>
|
---|
| 148 | <property name="work.dir" value="${basedir}"/>
|
---|
| 149 | <condition property="no.deps">
|
---|
| 150 | <and>
|
---|
| 151 | <istrue value="${no.dependencies}"/>
|
---|
| 152 | </and>
|
---|
| 153 | </condition>
|
---|
| 154 | <property name="javac.debug" value="true"/>
|
---|
| 155 | <property name="javadoc.preview" value="true"/>
|
---|
| 156 | <property name="application.args" value=""/>
|
---|
| 157 | <property name="source.encoding" value="${file.encoding}"/>
|
---|
| 158 | <property name="runtime.encoding" value="${source.encoding}"/>
|
---|
| 159 | <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
|
---|
| 160 | <and>
|
---|
| 161 | <isset property="javadoc.encoding"/>
|
---|
| 162 | <not>
|
---|
| 163 | <equals arg1="${javadoc.encoding}" arg2=""/>
|
---|
| 164 | </not>
|
---|
| 165 | </and>
|
---|
| 166 | </condition>
|
---|
| 167 | <property name="javadoc.encoding.used" value="${source.encoding}"/>
|
---|
| 168 | <property name="includes" value="**"/>
|
---|
| 169 | <property name="excludes" value=""/>
|
---|
| 170 | <property name="do.depend" value="false"/>
|
---|
| 171 | <condition property="do.depend.true">
|
---|
| 172 | <istrue value="${do.depend}"/>
|
---|
| 173 | </condition>
|
---|
| 174 | <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
---|
| 175 | <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
---|
| 176 | <and>
|
---|
| 177 | <isset property="endorsed.classpath"/>
|
---|
| 178 | <not>
|
---|
| 179 | <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
|
---|
| 180 | </not>
|
---|
| 181 | </and>
|
---|
| 182 | </condition>
|
---|
| 183 | <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
|
---|
| 184 | <isset property="profile.available"/>
|
---|
| 185 | </condition>
|
---|
| 186 | <condition else="false" property="jdkBug6558476">
|
---|
| 187 | <and>
|
---|
| 188 | <matches pattern="1\.[56]" string="${java.specification.version}"/>
|
---|
| 189 | <not>
|
---|
| 190 | <os family="unix"/>
|
---|
| 191 | </not>
|
---|
| 192 | </and>
|
---|
| 193 | </condition>
|
---|
| 194 | <condition else="false" property="javac.fork">
|
---|
| 195 | <or>
|
---|
| 196 | <istrue value="${jdkBug6558476}"/>
|
---|
| 197 | <istrue value="${javac.external.vm}"/>
|
---|
| 198 | </or>
|
---|
| 199 | </condition>
|
---|
| 200 | <property name="jar.index" value="false"/>
|
---|
| 201 | <property name="jar.index.metainf" value="${jar.index}"/>
|
---|
| 202 | <property name="copylibs.rebase" value="true"/>
|
---|
| 203 | <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
|
---|
| 204 | <condition property="junit.available">
|
---|
| 205 | <or>
|
---|
| 206 | <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
|
---|
| 207 | <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
|
---|
| 208 | </or>
|
---|
| 209 | </condition>
|
---|
| 210 | <condition property="testng.available">
|
---|
| 211 | <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
|
---|
| 212 | </condition>
|
---|
| 213 | <condition property="junit+testng.available">
|
---|
| 214 | <and>
|
---|
| 215 | <istrue value="${junit.available}"/>
|
---|
| 216 | <istrue value="${testng.available}"/>
|
---|
| 217 | </and>
|
---|
| 218 | </condition>
|
---|
| 219 | <condition else="testng" property="testng.mode" value="mixed">
|
---|
| 220 | <istrue value="${junit+testng.available}"/>
|
---|
| 221 | </condition>
|
---|
| 222 | <condition else="" property="testng.debug.mode" value="-mixed">
|
---|
| 223 | <istrue value="${junit+testng.available}"/>
|
---|
| 224 | </condition>
|
---|
| 225 | <property name="java.failonerror" value="true"/>
|
---|
| 226 | </target>
|
---|
| 227 | <target name="-post-init">
|
---|
| 228 | <!-- Empty placeholder for easier customization. -->
|
---|
| 229 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 230 | </target>
|
---|
| 231 | <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
|
---|
| 232 | <fail unless="src.dir">Must set src.dir</fail>
|
---|
| 233 | <fail unless="test.src.dir">Must set test.src.dir</fail>
|
---|
| 234 | <fail unless="build.dir">Must set build.dir</fail>
|
---|
| 235 | <fail unless="dist.dir">Must set dist.dir</fail>
|
---|
| 236 | <fail unless="build.classes.dir">Must set build.classes.dir</fail>
|
---|
| 237 | <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
|
---|
| 238 | <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
|
---|
| 239 | <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
|
---|
| 240 | <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
|
---|
| 241 | <fail unless="dist.jar">Must set dist.jar</fail>
|
---|
| 242 | </target>
|
---|
| 243 | <target name="-init-macrodef-property">
|
---|
| 244 | <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
|
---|
| 245 | <attribute name="name"/>
|
---|
| 246 | <attribute name="value"/>
|
---|
| 247 | <sequential>
|
---|
| 248 | <property name="@{name}" value="${@{value}}"/>
|
---|
| 249 | </sequential>
|
---|
| 250 | </macrodef>
|
---|
| 251 | </target>
|
---|
| 252 | <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
|
---|
| 253 | <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 254 | <attribute default="${src.dir}" name="srcdir"/>
|
---|
| 255 | <attribute default="${build.classes.dir}" name="destdir"/>
|
---|
| 256 | <attribute default="${javac.classpath}" name="classpath"/>
|
---|
| 257 | <attribute default="${javac.processorpath}" name="processorpath"/>
|
---|
| 258 | <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
|
---|
| 259 | <attribute default="${includes}" name="includes"/>
|
---|
| 260 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 261 | <attribute default="${javac.debug}" name="debug"/>
|
---|
| 262 | <attribute default="${empty.dir}" name="sourcepath"/>
|
---|
| 263 | <attribute default="${empty.dir}" name="gensrcdir"/>
|
---|
| 264 | <element name="customize" optional="true"/>
|
---|
| 265 | <sequential>
|
---|
| 266 | <property location="${build.dir}/empty" name="empty.dir"/>
|
---|
| 267 | <mkdir dir="${empty.dir}"/>
|
---|
| 268 | <mkdir dir="@{apgeneratedsrcdir}"/>
|
---|
| 269 | <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}">
|
---|
| 270 | <src>
|
---|
| 271 | <dirset dir="@{gensrcdir}" erroronmissingdir="false">
|
---|
| 272 | <include name="*"/>
|
---|
| 273 | </dirset>
|
---|
| 274 | </src>
|
---|
| 275 | <classpath>
|
---|
| 276 | <path path="@{classpath}"/>
|
---|
| 277 | </classpath>
|
---|
| 278 | <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
---|
| 279 | <compilerarg line="${javac.profile.cmd.line.arg}"/>
|
---|
| 280 | <compilerarg line="${javac.compilerargs}"/>
|
---|
| 281 | <compilerarg value="-processorpath"/>
|
---|
| 282 | <compilerarg path="@{processorpath}:${empty.dir}"/>
|
---|
| 283 | <compilerarg line="${ap.processors.internal}"/>
|
---|
| 284 | <compilerarg line="${annotation.processing.processor.options}"/>
|
---|
| 285 | <compilerarg value="-s"/>
|
---|
| 286 | <compilerarg path="@{apgeneratedsrcdir}"/>
|
---|
| 287 | <compilerarg line="${ap.proc.none.internal}"/>
|
---|
| 288 | <customize/>
|
---|
| 289 | </javac>
|
---|
| 290 | </sequential>
|
---|
| 291 | </macrodef>
|
---|
| 292 | </target>
|
---|
| 293 | <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
|
---|
| 294 | <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 295 | <attribute default="${src.dir}" name="srcdir"/>
|
---|
| 296 | <attribute default="${build.classes.dir}" name="destdir"/>
|
---|
| 297 | <attribute default="${javac.classpath}" name="classpath"/>
|
---|
| 298 | <attribute default="${javac.processorpath}" name="processorpath"/>
|
---|
| 299 | <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
|
---|
| 300 | <attribute default="${includes}" name="includes"/>
|
---|
| 301 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 302 | <attribute default="${javac.debug}" name="debug"/>
|
---|
| 303 | <attribute default="${empty.dir}" name="sourcepath"/>
|
---|
| 304 | <attribute default="${empty.dir}" name="gensrcdir"/>
|
---|
| 305 | <element name="customize" optional="true"/>
|
---|
| 306 | <sequential>
|
---|
| 307 | <property location="${build.dir}/empty" name="empty.dir"/>
|
---|
| 308 | <mkdir dir="${empty.dir}"/>
|
---|
| 309 | <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}">
|
---|
| 310 | <src>
|
---|
| 311 | <dirset dir="@{gensrcdir}" erroronmissingdir="false">
|
---|
| 312 | <include name="*"/>
|
---|
| 313 | </dirset>
|
---|
| 314 | </src>
|
---|
| 315 | <classpath>
|
---|
| 316 | <path path="@{classpath}"/>
|
---|
| 317 | </classpath>
|
---|
| 318 | <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
---|
| 319 | <compilerarg line="${javac.profile.cmd.line.arg}"/>
|
---|
| 320 | <compilerarg line="${javac.compilerargs}"/>
|
---|
| 321 | <customize/>
|
---|
| 322 | </javac>
|
---|
| 323 | </sequential>
|
---|
| 324 | </macrodef>
|
---|
| 325 | </target>
|
---|
| 326 | <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
|
---|
| 327 | <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 328 | <attribute default="${src.dir}" name="srcdir"/>
|
---|
| 329 | <attribute default="${build.classes.dir}" name="destdir"/>
|
---|
| 330 | <attribute default="${javac.classpath}" name="classpath"/>
|
---|
| 331 | <sequential>
|
---|
| 332 | <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
|
---|
| 333 | <classpath>
|
---|
| 334 | <path path="@{classpath}"/>
|
---|
| 335 | </classpath>
|
---|
| 336 | </depend>
|
---|
| 337 | </sequential>
|
---|
| 338 | </macrodef>
|
---|
| 339 | <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 340 | <attribute default="${build.classes.dir}" name="destdir"/>
|
---|
| 341 | <sequential>
|
---|
| 342 | <fail unless="javac.includes">Must set javac.includes</fail>
|
---|
| 343 | <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
|
---|
| 344 | <path>
|
---|
| 345 | <filelist dir="@{destdir}" files="${javac.includes}"/>
|
---|
| 346 | </path>
|
---|
| 347 | <globmapper from="*.java" to="*.class"/>
|
---|
| 348 | </pathconvert>
|
---|
| 349 | <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
|
---|
| 350 | <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
|
---|
| 351 | <delete>
|
---|
| 352 | <files includesfile="${javac.includesfile.binary}"/>
|
---|
| 353 | </delete>
|
---|
| 354 | <delete>
|
---|
| 355 | <fileset file="${javac.includesfile.binary}"/>
|
---|
| 356 | </delete>
|
---|
| 357 | </sequential>
|
---|
| 358 | </macrodef>
|
---|
| 359 | </target>
|
---|
| 360 | <target if="${junit.available}" name="-init-macrodef-junit-init">
|
---|
| 361 | <condition else="false" property="nb.junit.batch" value="true">
|
---|
| 362 | <and>
|
---|
| 363 | <istrue value="${junit.available}"/>
|
---|
| 364 | <not>
|
---|
| 365 | <isset property="test.method"/>
|
---|
| 366 | </not>
|
---|
| 367 | </and>
|
---|
| 368 | </condition>
|
---|
| 369 | <condition else="false" property="nb.junit.single" value="true">
|
---|
| 370 | <and>
|
---|
| 371 | <istrue value="${junit.available}"/>
|
---|
| 372 | <isset property="test.method"/>
|
---|
| 373 | </and>
|
---|
| 374 | </condition>
|
---|
| 375 | </target>
|
---|
| 376 | <target name="-init-test-properties">
|
---|
| 377 | <property name="test.binaryincludes" value="<nothing>"/>
|
---|
| 378 | <property name="test.binarytestincludes" value=""/>
|
---|
| 379 | <property name="test.binaryexcludes" value=""/>
|
---|
| 380 | </target>
|
---|
| 381 | <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
|
---|
| 382 | <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 383 | <attribute default="${includes}" name="includes"/>
|
---|
| 384 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 385 | <attribute default="**" name="testincludes"/>
|
---|
| 386 | <attribute default="" name="testmethods"/>
|
---|
| 387 | <element name="customize" optional="true"/>
|
---|
| 388 | <sequential>
|
---|
| 389 | <property name="junit.forkmode" value="perTest"/>
|
---|
| 390 | <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
|
---|
| 391 | <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
|
---|
| 392 | <syspropertyset>
|
---|
| 393 | <propertyref prefix="test-sys-prop."/>
|
---|
| 394 | <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
---|
| 395 | </syspropertyset>
|
---|
| 396 | <formatter type="brief" usefile="false"/>
|
---|
| 397 | <formatter type="xml"/>
|
---|
| 398 | <jvmarg value="-ea"/>
|
---|
| 399 | <customize/>
|
---|
| 400 | </junit>
|
---|
| 401 | </sequential>
|
---|
| 402 | </macrodef>
|
---|
| 403 | </target>
|
---|
| 404 | <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
|
---|
| 405 | <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 406 | <attribute default="${includes}" name="includes"/>
|
---|
| 407 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 408 | <attribute default="**" name="testincludes"/>
|
---|
| 409 | <attribute default="" name="testmethods"/>
|
---|
| 410 | <element name="customize" optional="true"/>
|
---|
| 411 | <sequential>
|
---|
| 412 | <property name="junit.forkmode" value="perTest"/>
|
---|
| 413 | <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
|
---|
| 414 | <batchtest todir="${build.test.results.dir}">
|
---|
| 415 | <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
|
---|
| 416 | <filename name="@{testincludes}"/>
|
---|
| 417 | </fileset>
|
---|
| 418 | <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
|
---|
| 419 | <filename name="${test.binarytestincludes}"/>
|
---|
| 420 | </fileset>
|
---|
| 421 | </batchtest>
|
---|
| 422 | <syspropertyset>
|
---|
| 423 | <propertyref prefix="test-sys-prop."/>
|
---|
| 424 | <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
---|
| 425 | </syspropertyset>
|
---|
| 426 | <formatter type="brief" usefile="false"/>
|
---|
| 427 | <formatter type="xml"/>
|
---|
| 428 | <jvmarg value="-ea"/>
|
---|
| 429 | <customize/>
|
---|
| 430 | </junit>
|
---|
| 431 | </sequential>
|
---|
| 432 | </macrodef>
|
---|
| 433 | </target>
|
---|
| 434 | <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
|
---|
| 435 | <target if="${testng.available}" name="-init-macrodef-testng">
|
---|
| 436 | <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 437 | <attribute default="${includes}" name="includes"/>
|
---|
| 438 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 439 | <attribute default="**" name="testincludes"/>
|
---|
| 440 | <attribute default="" name="testmethods"/>
|
---|
| 441 | <element name="customize" optional="true"/>
|
---|
| 442 | <sequential>
|
---|
| 443 | <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
|
---|
| 444 | <isset property="test.method"/>
|
---|
| 445 | </condition>
|
---|
| 446 | <union id="test.set">
|
---|
| 447 | <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
|
---|
| 448 | <filename name="@{testincludes}"/>
|
---|
| 449 | </fileset>
|
---|
| 450 | </union>
|
---|
| 451 | <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
---|
| 452 | <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="QCG-Icon" testname="TestNG tests" workingDir="${work.dir}">
|
---|
| 453 | <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
---|
| 454 | <propertyset>
|
---|
| 455 | <propertyref prefix="test-sys-prop."/>
|
---|
| 456 | <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
---|
| 457 | </propertyset>
|
---|
| 458 | <customize/>
|
---|
| 459 | </testng>
|
---|
| 460 | </sequential>
|
---|
| 461 | </macrodef>
|
---|
| 462 | </target>
|
---|
| 463 | <target name="-init-macrodef-test-impl">
|
---|
| 464 | <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 465 | <attribute default="${includes}" name="includes"/>
|
---|
| 466 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 467 | <attribute default="**" name="testincludes"/>
|
---|
| 468 | <attribute default="" name="testmethods"/>
|
---|
| 469 | <element implicit="true" name="customize" optional="true"/>
|
---|
| 470 | <sequential>
|
---|
| 471 | <echo>No tests executed.</echo>
|
---|
| 472 | </sequential>
|
---|
| 473 | </macrodef>
|
---|
| 474 | </target>
|
---|
| 475 | <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
|
---|
| 476 | <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 477 | <attribute default="${includes}" name="includes"/>
|
---|
| 478 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 479 | <attribute default="**" name="testincludes"/>
|
---|
| 480 | <attribute default="" name="testmethods"/>
|
---|
| 481 | <element implicit="true" name="customize" optional="true"/>
|
---|
| 482 | <sequential>
|
---|
| 483 | <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
|
---|
| 484 | <customize/>
|
---|
| 485 | </j2seproject3:junit>
|
---|
| 486 | </sequential>
|
---|
| 487 | </macrodef>
|
---|
| 488 | </target>
|
---|
| 489 | <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
|
---|
| 490 | <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 491 | <attribute default="${includes}" name="includes"/>
|
---|
| 492 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 493 | <attribute default="**" name="testincludes"/>
|
---|
| 494 | <attribute default="" name="testmethods"/>
|
---|
| 495 | <element implicit="true" name="customize" optional="true"/>
|
---|
| 496 | <sequential>
|
---|
| 497 | <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
|
---|
| 498 | <customize/>
|
---|
| 499 | </j2seproject3:testng>
|
---|
| 500 | </sequential>
|
---|
| 501 | </macrodef>
|
---|
| 502 | </target>
|
---|
| 503 | <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
|
---|
| 504 | <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 505 | <attribute default="${includes}" name="includes"/>
|
---|
| 506 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 507 | <attribute default="**" name="testincludes"/>
|
---|
| 508 | <attribute default="" name="testmethods"/>
|
---|
| 509 | <sequential>
|
---|
| 510 | <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
|
---|
| 511 | <customize>
|
---|
| 512 | <classpath>
|
---|
| 513 | <path path="${run.test.classpath}"/>
|
---|
| 514 | </classpath>
|
---|
| 515 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
---|
| 516 | <jvmarg line="${run.jvmargs}"/>
|
---|
| 517 | <jvmarg line="${run.jvmargs.ide}"/>
|
---|
| 518 | </customize>
|
---|
| 519 | </j2seproject3:test-impl>
|
---|
| 520 | </sequential>
|
---|
| 521 | </macrodef>
|
---|
| 522 | </target>
|
---|
| 523 | <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
|
---|
| 524 | <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 525 | <attribute default="${includes}" name="includes"/>
|
---|
| 526 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 527 | <attribute default="**" name="testincludes"/>
|
---|
| 528 | <attribute default="" name="testmethods"/>
|
---|
| 529 | <element name="customize" optional="true"/>
|
---|
| 530 | <sequential>
|
---|
| 531 | <property name="junit.forkmode" value="perTest"/>
|
---|
| 532 | <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
|
---|
| 533 | <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
|
---|
| 534 | <syspropertyset>
|
---|
| 535 | <propertyref prefix="test-sys-prop."/>
|
---|
| 536 | <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
---|
| 537 | </syspropertyset>
|
---|
| 538 | <formatter type="brief" usefile="false"/>
|
---|
| 539 | <formatter type="xml"/>
|
---|
| 540 | <jvmarg value="-ea"/>
|
---|
| 541 | <jvmarg line="${debug-args-line}"/>
|
---|
| 542 | <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
|
---|
| 543 | <customize/>
|
---|
| 544 | </junit>
|
---|
| 545 | </sequential>
|
---|
| 546 | </macrodef>
|
---|
| 547 | </target>
|
---|
| 548 | <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
|
---|
| 549 | <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 550 | <attribute default="${includes}" name="includes"/>
|
---|
| 551 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 552 | <attribute default="**" name="testincludes"/>
|
---|
| 553 | <attribute default="" name="testmethods"/>
|
---|
| 554 | <element name="customize" optional="true"/>
|
---|
| 555 | <sequential>
|
---|
| 556 | <property name="junit.forkmode" value="perTest"/>
|
---|
| 557 | <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
|
---|
| 558 | <batchtest todir="${build.test.results.dir}">
|
---|
| 559 | <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
|
---|
| 560 | <filename name="@{testincludes}"/>
|
---|
| 561 | </fileset>
|
---|
| 562 | <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
|
---|
| 563 | <filename name="${test.binarytestincludes}"/>
|
---|
| 564 | </fileset>
|
---|
| 565 | </batchtest>
|
---|
| 566 | <syspropertyset>
|
---|
| 567 | <propertyref prefix="test-sys-prop."/>
|
---|
| 568 | <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
---|
| 569 | </syspropertyset>
|
---|
| 570 | <formatter type="brief" usefile="false"/>
|
---|
| 571 | <formatter type="xml"/>
|
---|
| 572 | <jvmarg value="-ea"/>
|
---|
| 573 | <jvmarg line="${debug-args-line}"/>
|
---|
| 574 | <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
|
---|
| 575 | <customize/>
|
---|
| 576 | </junit>
|
---|
| 577 | </sequential>
|
---|
| 578 | </macrodef>
|
---|
| 579 | </target>
|
---|
| 580 | <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
|
---|
| 581 | <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 582 | <attribute default="${includes}" name="includes"/>
|
---|
| 583 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 584 | <attribute default="**" name="testincludes"/>
|
---|
| 585 | <attribute default="" name="testmethods"/>
|
---|
| 586 | <element implicit="true" name="customize" optional="true"/>
|
---|
| 587 | <sequential>
|
---|
| 588 | <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
|
---|
| 589 | <customize/>
|
---|
| 590 | </j2seproject3:junit-debug>
|
---|
| 591 | </sequential>
|
---|
| 592 | </macrodef>
|
---|
| 593 | </target>
|
---|
| 594 | <target if="${testng.available}" name="-init-macrodef-testng-debug">
|
---|
| 595 | <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 596 | <attribute default="${main.class}" name="testClass"/>
|
---|
| 597 | <attribute default="" name="testMethod"/>
|
---|
| 598 | <element name="customize2" optional="true"/>
|
---|
| 599 | <sequential>
|
---|
| 600 | <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
|
---|
| 601 | <isset property="test.method"/>
|
---|
| 602 | </condition>
|
---|
| 603 | <condition else="-suitename QCG-Icon -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
|
---|
| 604 | <matches pattern=".*\.xml" string="@{testClass}"/>
|
---|
| 605 | </condition>
|
---|
| 606 | <delete dir="${build.test.results.dir}" quiet="true"/>
|
---|
| 607 | <mkdir dir="${build.test.results.dir}"/>
|
---|
| 608 | <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
|
---|
| 609 | <customize>
|
---|
| 610 | <customize2/>
|
---|
| 611 | <jvmarg value="-ea"/>
|
---|
| 612 | <arg line="${testng.debug.mode}"/>
|
---|
| 613 | <arg line="-d ${build.test.results.dir}"/>
|
---|
| 614 | <arg line="-listener org.testng.reporters.VerboseReporter"/>
|
---|
| 615 | <arg line="${testng.cmd.args}"/>
|
---|
| 616 | </customize>
|
---|
| 617 | </j2seproject3:debug>
|
---|
| 618 | </sequential>
|
---|
| 619 | </macrodef>
|
---|
| 620 | </target>
|
---|
| 621 | <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
|
---|
| 622 | <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 623 | <attribute default="${main.class}" name="testClass"/>
|
---|
| 624 | <attribute default="" name="testMethod"/>
|
---|
| 625 | <element implicit="true" name="customize2" optional="true"/>
|
---|
| 626 | <sequential>
|
---|
| 627 | <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
|
---|
| 628 | <customize2/>
|
---|
| 629 | </j2seproject3:testng-debug>
|
---|
| 630 | </sequential>
|
---|
| 631 | </macrodef>
|
---|
| 632 | </target>
|
---|
| 633 | <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
|
---|
| 634 | <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 635 | <attribute default="${includes}" name="includes"/>
|
---|
| 636 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 637 | <attribute default="**" name="testincludes"/>
|
---|
| 638 | <attribute default="" name="testmethods"/>
|
---|
| 639 | <attribute default="${main.class}" name="testClass"/>
|
---|
| 640 | <attribute default="" name="testMethod"/>
|
---|
| 641 | <sequential>
|
---|
| 642 | <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
|
---|
| 643 | <customize>
|
---|
| 644 | <classpath>
|
---|
| 645 | <path path="${run.test.classpath}"/>
|
---|
| 646 | </classpath>
|
---|
| 647 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
---|
| 648 | <jvmarg line="${run.jvmargs}"/>
|
---|
| 649 | <jvmarg line="${run.jvmargs.ide}"/>
|
---|
| 650 | </customize>
|
---|
| 651 | </j2seproject3:test-debug-impl>
|
---|
| 652 | </sequential>
|
---|
| 653 | </macrodef>
|
---|
| 654 | </target>
|
---|
| 655 | <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
|
---|
| 656 | <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 657 | <attribute default="${includes}" name="includes"/>
|
---|
| 658 | <attribute default="${excludes}" name="excludes"/>
|
---|
| 659 | <attribute default="**" name="testincludes"/>
|
---|
| 660 | <attribute default="" name="testmethods"/>
|
---|
| 661 | <attribute default="${main.class}" name="testClass"/>
|
---|
| 662 | <attribute default="" name="testMethod"/>
|
---|
| 663 | <sequential>
|
---|
| 664 | <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
|
---|
| 665 | <customize2>
|
---|
| 666 | <syspropertyset>
|
---|
| 667 | <propertyref prefix="test-sys-prop."/>
|
---|
| 668 | <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
---|
| 669 | </syspropertyset>
|
---|
| 670 | </customize2>
|
---|
| 671 | </j2seproject3:testng-debug-impl>
|
---|
| 672 | </sequential>
|
---|
| 673 | </macrodef>
|
---|
| 674 | </target>
|
---|
| 675 | <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
|
---|
| 676 | <!--
|
---|
| 677 | pre NB7.2 profiling section; consider it deprecated
|
---|
| 678 | -->
|
---|
| 679 | <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
|
---|
| 680 | <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
|
---|
| 681 | <!-- Empty placeholder for easier customization. -->
|
---|
| 682 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 683 | </target>
|
---|
| 684 | <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
|
---|
| 685 | <!-- Empty placeholder for easier customization. -->
|
---|
| 686 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 687 | </target>
|
---|
| 688 | <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
|
---|
| 689 | <macrodef name="resolve">
|
---|
| 690 | <attribute name="name"/>
|
---|
| 691 | <attribute name="value"/>
|
---|
| 692 | <sequential>
|
---|
| 693 | <property name="@{name}" value="${env.@{value}}"/>
|
---|
| 694 | </sequential>
|
---|
| 695 | </macrodef>
|
---|
| 696 | <macrodef name="profile">
|
---|
| 697 | <attribute default="${main.class}" name="classname"/>
|
---|
| 698 | <element name="customize" optional="true"/>
|
---|
| 699 | <sequential>
|
---|
| 700 | <property environment="env"/>
|
---|
| 701 | <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
|
---|
| 702 | <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
|
---|
| 703 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
---|
| 704 | <jvmarg value="${profiler.info.jvmargs.agent}"/>
|
---|
| 705 | <jvmarg line="${profiler.info.jvmargs}"/>
|
---|
| 706 | <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
|
---|
| 707 | <arg line="${application.args}"/>
|
---|
| 708 | <classpath>
|
---|
| 709 | <path path="${run.classpath}"/>
|
---|
| 710 | </classpath>
|
---|
| 711 | <syspropertyset>
|
---|
| 712 | <propertyref prefix="run-sys-prop."/>
|
---|
| 713 | <mapper from="run-sys-prop.*" to="*" type="glob"/>
|
---|
| 714 | </syspropertyset>
|
---|
| 715 | <customize/>
|
---|
| 716 | </java>
|
---|
| 717 | </sequential>
|
---|
| 718 | </macrodef>
|
---|
| 719 | </target>
|
---|
| 720 | <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
|
---|
| 721 | <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
|
---|
| 722 | <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
|
---|
| 723 | </target>
|
---|
| 724 | <!--
|
---|
| 725 | end of pre NB7.2 profiling section
|
---|
| 726 | -->
|
---|
| 727 | <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
|
---|
| 728 | <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
|
---|
| 729 | <attribute default="${main.class}" name="name"/>
|
---|
| 730 | <attribute default="${debug.classpath}" name="classpath"/>
|
---|
| 731 | <attribute default="" name="stopclassname"/>
|
---|
| 732 | <sequential>
|
---|
| 733 | <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
|
---|
| 734 | <classpath>
|
---|
| 735 | <path path="@{classpath}"/>
|
---|
| 736 | </classpath>
|
---|
| 737 | </nbjpdastart>
|
---|
| 738 | </sequential>
|
---|
| 739 | </macrodef>
|
---|
| 740 | <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
|
---|
| 741 | <attribute default="${build.classes.dir}" name="dir"/>
|
---|
| 742 | <sequential>
|
---|
| 743 | <nbjpdareload>
|
---|
| 744 | <fileset dir="@{dir}" includes="${fix.classes}">
|
---|
| 745 | <include name="${fix.includes}*.class"/>
|
---|
| 746 | </fileset>
|
---|
| 747 | </nbjpdareload>
|
---|
| 748 | </sequential>
|
---|
| 749 | </macrodef>
|
---|
| 750 | </target>
|
---|
| 751 | <target name="-init-debug-args">
|
---|
| 752 | <property name="version-output" value="java version "${ant.java.version}"/>
|
---|
| 753 | <condition property="have-jdk-older-than-1.4">
|
---|
| 754 | <or>
|
---|
| 755 | <contains string="${version-output}" substring="java version "1.0"/>
|
---|
| 756 | <contains string="${version-output}" substring="java version "1.1"/>
|
---|
| 757 | <contains string="${version-output}" substring="java version "1.2"/>
|
---|
| 758 | <contains string="${version-output}" substring="java version "1.3"/>
|
---|
| 759 | </or>
|
---|
| 760 | </condition>
|
---|
| 761 | <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
|
---|
| 762 | <istrue value="${have-jdk-older-than-1.4}"/>
|
---|
| 763 | </condition>
|
---|
| 764 | <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
|
---|
| 765 | <os family="windows"/>
|
---|
| 766 | </condition>
|
---|
| 767 | <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
|
---|
| 768 | <isset property="debug.transport"/>
|
---|
| 769 | </condition>
|
---|
| 770 | </target>
|
---|
| 771 | <target depends="-init-debug-args" name="-init-macrodef-debug">
|
---|
| 772 | <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 773 | <attribute default="${main.class}" name="classname"/>
|
---|
| 774 | <attribute default="${debug.classpath}" name="classpath"/>
|
---|
| 775 | <element name="customize" optional="true"/>
|
---|
| 776 | <sequential>
|
---|
| 777 | <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
|
---|
| 778 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
---|
| 779 | <jvmarg line="${debug-args-line}"/>
|
---|
| 780 | <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
|
---|
| 781 | <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
|
---|
| 782 | <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
|
---|
| 783 | <jvmarg line="${run.jvmargs}"/>
|
---|
| 784 | <jvmarg line="${run.jvmargs.ide}"/>
|
---|
| 785 | <classpath>
|
---|
| 786 | <path path="@{classpath}"/>
|
---|
| 787 | </classpath>
|
---|
| 788 | <syspropertyset>
|
---|
| 789 | <propertyref prefix="run-sys-prop."/>
|
---|
| 790 | <mapper from="run-sys-prop.*" to="*" type="glob"/>
|
---|
| 791 | </syspropertyset>
|
---|
| 792 | <customize/>
|
---|
| 793 | </java>
|
---|
| 794 | </sequential>
|
---|
| 795 | </macrodef>
|
---|
| 796 | </target>
|
---|
| 797 | <target name="-init-macrodef-java">
|
---|
| 798 | <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
|
---|
| 799 | <attribute default="${main.class}" name="classname"/>
|
---|
| 800 | <attribute default="${run.classpath}" name="classpath"/>
|
---|
| 801 | <attribute default="jvm" name="jvm"/>
|
---|
| 802 | <element name="customize" optional="true"/>
|
---|
| 803 | <sequential>
|
---|
| 804 | <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
|
---|
| 805 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
---|
| 806 | <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
|
---|
| 807 | <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
|
---|
| 808 | <jvmarg line="${run.jvmargs}"/>
|
---|
| 809 | <jvmarg line="${run.jvmargs.ide}"/>
|
---|
| 810 | <classpath>
|
---|
| 811 | <path path="@{classpath}"/>
|
---|
| 812 | </classpath>
|
---|
| 813 | <syspropertyset>
|
---|
| 814 | <propertyref prefix="run-sys-prop."/>
|
---|
| 815 | <mapper from="run-sys-prop.*" to="*" type="glob"/>
|
---|
| 816 | </syspropertyset>
|
---|
| 817 | <customize/>
|
---|
| 818 | </java>
|
---|
| 819 | </sequential>
|
---|
| 820 | </macrodef>
|
---|
| 821 | </target>
|
---|
| 822 | <target name="-init-macrodef-copylibs">
|
---|
| 823 | <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
|
---|
| 824 | <attribute default="${manifest.file}" name="manifest"/>
|
---|
| 825 | <element name="customize" optional="true"/>
|
---|
| 826 | <sequential>
|
---|
| 827 | <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
---|
| 828 | <pathconvert property="run.classpath.without.build.classes.dir">
|
---|
| 829 | <path path="${run.classpath}"/>
|
---|
| 830 | <map from="${build.classes.dir.resolved}" to=""/>
|
---|
| 831 | </pathconvert>
|
---|
| 832 | <pathconvert pathsep=" " property="jar.classpath">
|
---|
| 833 | <path path="${run.classpath.without.build.classes.dir}"/>
|
---|
| 834 | <chainedmapper>
|
---|
| 835 | <flattenmapper/>
|
---|
| 836 | <filtermapper>
|
---|
| 837 | <replacestring from=" " to="%20"/>
|
---|
| 838 | </filtermapper>
|
---|
| 839 | <globmapper from="*" to="lib/*"/>
|
---|
| 840 | </chainedmapper>
|
---|
| 841 | </pathconvert>
|
---|
| 842 | <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
---|
| 843 | <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
---|
| 844 | <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
---|
| 845 | <manifest>
|
---|
| 846 | <attribute name="Class-Path" value="${jar.classpath}"/>
|
---|
| 847 | <customize/>
|
---|
| 848 | </manifest>
|
---|
| 849 | </copylibs>
|
---|
| 850 | </sequential>
|
---|
| 851 | </macrodef>
|
---|
| 852 | </target>
|
---|
| 853 | <target name="-init-presetdef-jar">
|
---|
| 854 | <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
---|
| 855 | <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
|
---|
| 856 | <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
---|
| 857 | </jar>
|
---|
| 858 | </presetdef>
|
---|
| 859 | </target>
|
---|
| 860 | <target name="-init-ap-cmdline-properties">
|
---|
| 861 | <property name="annotation.processing.enabled" value="true"/>
|
---|
| 862 | <property name="annotation.processing.processors.list" value=""/>
|
---|
| 863 | <property name="annotation.processing.processor.options" value=""/>
|
---|
| 864 | <property name="annotation.processing.run.all.processors" value="true"/>
|
---|
| 865 | <property name="javac.processorpath" value="${javac.classpath}"/>
|
---|
| 866 | <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
|
---|
| 867 | <condition property="ap.supported.internal" value="true">
|
---|
| 868 | <not>
|
---|
| 869 | <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
|
---|
| 870 | </not>
|
---|
| 871 | </condition>
|
---|
| 872 | </target>
|
---|
| 873 | <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
|
---|
| 874 | <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
|
---|
| 875 | <isfalse value="${annotation.processing.run.all.processors}"/>
|
---|
| 876 | </condition>
|
---|
| 877 | <condition else="" property="ap.proc.none.internal" value="-proc:none">
|
---|
| 878 | <isfalse value="${annotation.processing.enabled}"/>
|
---|
| 879 | </condition>
|
---|
| 880 | </target>
|
---|
| 881 | <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
|
---|
| 882 | <property name="ap.cmd.line.internal" value=""/>
|
---|
| 883 | </target>
|
---|
| 884 | <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
|
---|
| 885 | <!--
|
---|
| 886 | ===================
|
---|
| 887 | COMPILATION SECTION
|
---|
| 888 | ===================
|
---|
| 889 | -->
|
---|
| 890 | <target name="-deps-jar-init" unless="built-jar.properties">
|
---|
| 891 | <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
|
---|
| 892 | <delete file="${built-jar.properties}" quiet="true"/>
|
---|
| 893 | </target>
|
---|
| 894 | <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
|
---|
| 895 | <echo level="warn" message="Cycle detected: QCG-Icon was already built"/>
|
---|
| 896 | </target>
|
---|
| 897 | <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
|
---|
| 898 | <mkdir dir="${build.dir}"/>
|
---|
| 899 | <touch file="${built-jar.properties}" verbose="false"/>
|
---|
| 900 | <property file="${built-jar.properties}" prefix="already.built.jar."/>
|
---|
| 901 | <antcall target="-warn-already-built-jar"/>
|
---|
| 902 | <propertyfile file="${built-jar.properties}">
|
---|
| 903 | <entry key="${basedir}" value=""/>
|
---|
| 904 | </propertyfile>
|
---|
| 905 | </target>
|
---|
| 906 | <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
|
---|
| 907 | <target depends="init" name="-check-automatic-build">
|
---|
| 908 | <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
|
---|
| 909 | </target>
|
---|
| 910 | <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
|
---|
| 911 | <antcall target="clean"/>
|
---|
| 912 | </target>
|
---|
| 913 | <target depends="init,deps-jar" name="-pre-pre-compile">
|
---|
| 914 | <mkdir dir="${build.classes.dir}"/>
|
---|
| 915 | </target>
|
---|
| 916 | <target name="-pre-compile">
|
---|
| 917 | <!-- Empty placeholder for easier customization. -->
|
---|
| 918 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 919 | </target>
|
---|
| 920 | <target if="do.depend.true" name="-compile-depend">
|
---|
| 921 | <pathconvert property="build.generated.subdirs">
|
---|
| 922 | <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
---|
| 923 | <include name="*"/>
|
---|
| 924 | </dirset>
|
---|
| 925 | </pathconvert>
|
---|
| 926 | <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
|
---|
| 927 | </target>
|
---|
| 928 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
|
---|
| 929 | <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
|
---|
| 930 | <copy todir="${build.classes.dir}">
|
---|
| 931 | <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
---|
| 932 | </copy>
|
---|
| 933 | </target>
|
---|
| 934 | <target if="has.persistence.xml" name="-copy-persistence-xml">
|
---|
| 935 | <mkdir dir="${build.classes.dir}/META-INF"/>
|
---|
| 936 | <copy todir="${build.classes.dir}/META-INF">
|
---|
| 937 | <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
|
---|
| 938 | </copy>
|
---|
| 939 | </target>
|
---|
| 940 | <target name="-post-compile">
|
---|
| 941 | <!-- Empty placeholder for easier customization. -->
|
---|
| 942 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 943 | </target>
|
---|
| 944 | <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
|
---|
| 945 | <target name="-pre-compile-single">
|
---|
| 946 | <!-- Empty placeholder for easier customization. -->
|
---|
| 947 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 948 | </target>
|
---|
| 949 | <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
|
---|
| 950 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
---|
| 951 | <j2seproject3:force-recompile/>
|
---|
| 952 | <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
|
---|
| 953 | </target>
|
---|
| 954 | <target name="-post-compile-single">
|
---|
| 955 | <!-- Empty placeholder for easier customization. -->
|
---|
| 956 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 957 | </target>
|
---|
| 958 | <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
|
---|
| 959 | <!--
|
---|
| 960 | ====================
|
---|
| 961 | JAR BUILDING SECTION
|
---|
| 962 | ====================
|
---|
| 963 | -->
|
---|
| 964 | <target depends="init" name="-pre-pre-jar">
|
---|
| 965 | <dirname file="${dist.jar}" property="dist.jar.dir"/>
|
---|
| 966 | <mkdir dir="${dist.jar.dir}"/>
|
---|
| 967 | </target>
|
---|
| 968 | <target name="-pre-jar">
|
---|
| 969 | <!-- Empty placeholder for easier customization. -->
|
---|
| 970 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 971 | </target>
|
---|
| 972 | <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
|
---|
| 973 | <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
---|
| 974 | <touch file="${tmp.manifest.file}" verbose="false"/>
|
---|
| 975 | </target>
|
---|
| 976 | <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
|
---|
| 977 | <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
---|
| 978 | <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
|
---|
| 979 | </target>
|
---|
| 980 | <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
|
---|
| 981 | <manifest file="${tmp.manifest.file}" mode="update">
|
---|
| 982 | <attribute name="Main-Class" value="${main.class}"/>
|
---|
| 983 | </manifest>
|
---|
| 984 | </target>
|
---|
| 985 | <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
|
---|
| 986 | <manifest file="${tmp.manifest.file}" mode="update">
|
---|
| 987 | <attribute name="Profile" value="${javac.profile}"/>
|
---|
| 988 | </manifest>
|
---|
| 989 | </target>
|
---|
| 990 | <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
|
---|
| 991 | <basename file="${application.splash}" property="splashscreen.basename"/>
|
---|
| 992 | <mkdir dir="${build.classes.dir}/META-INF"/>
|
---|
| 993 | <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
---|
| 994 | <manifest file="${tmp.manifest.file}" mode="update">
|
---|
| 995 | <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
---|
| 996 | </manifest>
|
---|
| 997 | </target>
|
---|
| 998 | <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
|
---|
| 999 | <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
|
---|
| 1000 | <echo level="info">To run this application from the command line without Ant, try:</echo>
|
---|
| 1001 | <property location="${dist.jar}" name="dist.jar.resolved"/>
|
---|
| 1002 | <echo level="info">java -jar "${dist.jar.resolved}"</echo>
|
---|
| 1003 | </target>
|
---|
| 1004 | <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
|
---|
| 1005 | <j2seproject1:jar manifest="${tmp.manifest.file}"/>
|
---|
| 1006 | <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
---|
| 1007 | <property location="${dist.jar}" name="dist.jar.resolved"/>
|
---|
| 1008 | <pathconvert property="run.classpath.with.dist.jar">
|
---|
| 1009 | <path path="${run.classpath}"/>
|
---|
| 1010 | <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
---|
| 1011 | </pathconvert>
|
---|
| 1012 | <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
|
---|
| 1013 | <isset property="main.class.available"/>
|
---|
| 1014 | </condition>
|
---|
| 1015 | <condition else="debug" property="jar.usage.level" value="info">
|
---|
| 1016 | <isset property="main.class.available"/>
|
---|
| 1017 | </condition>
|
---|
| 1018 | <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
|
---|
| 1019 | </target>
|
---|
| 1020 | <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
|
---|
| 1021 | <delete>
|
---|
| 1022 | <fileset file="${tmp.manifest.file}"/>
|
---|
| 1023 | </delete>
|
---|
| 1024 | </target>
|
---|
| 1025 | <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
|
---|
| 1026 | <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
|
---|
| 1027 | <target name="-post-jar">
|
---|
| 1028 | <!-- Empty placeholder for easier customization. -->
|
---|
| 1029 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 1030 | </target>
|
---|
| 1031 | <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
|
---|
| 1032 | <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
|
---|
| 1033 | <!--
|
---|
| 1034 | =================
|
---|
| 1035 | EXECUTION SECTION
|
---|
| 1036 | =================
|
---|
| 1037 | -->
|
---|
| 1038 | <target depends="init,compile" description="Run a main class." name="run">
|
---|
| 1039 | <j2seproject1:java>
|
---|
| 1040 | <customize>
|
---|
| 1041 | <arg line="${application.args}"/>
|
---|
| 1042 | </customize>
|
---|
| 1043 | </j2seproject1:java>
|
---|
| 1044 | </target>
|
---|
| 1045 | <target name="-do-not-recompile">
|
---|
| 1046 | <property name="javac.includes.binary" value=""/>
|
---|
| 1047 | </target>
|
---|
| 1048 | <target depends="init,compile-single" name="run-single">
|
---|
| 1049 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
---|
| 1050 | <j2seproject1:java classname="${run.class}"/>
|
---|
| 1051 | </target>
|
---|
| 1052 | <target depends="init,compile-test-single" name="run-test-with-main">
|
---|
| 1053 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
---|
| 1054 | <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
|
---|
| 1055 | </target>
|
---|
| 1056 | <!--
|
---|
| 1057 | =================
|
---|
| 1058 | DEBUGGING SECTION
|
---|
| 1059 | =================
|
---|
| 1060 | -->
|
---|
| 1061 | <target depends="init" if="netbeans.home" name="-debug-start-debugger">
|
---|
| 1062 | <j2seproject1:nbjpdastart name="${debug.class}"/>
|
---|
| 1063 | </target>
|
---|
| 1064 | <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
|
---|
| 1065 | <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
|
---|
| 1066 | </target>
|
---|
| 1067 | <target depends="init,compile" name="-debug-start-debuggee">
|
---|
| 1068 | <j2seproject3:debug>
|
---|
| 1069 | <customize>
|
---|
| 1070 | <arg line="${application.args}"/>
|
---|
| 1071 | </customize>
|
---|
| 1072 | </j2seproject3:debug>
|
---|
| 1073 | </target>
|
---|
| 1074 | <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
|
---|
| 1075 | <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
|
---|
| 1076 | <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
|
---|
| 1077 | </target>
|
---|
| 1078 | <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
|
---|
| 1079 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
|
---|
| 1080 | <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
|
---|
| 1081 | <j2seproject3:debug classname="${debug.class}"/>
|
---|
| 1082 | </target>
|
---|
| 1083 | <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
|
---|
| 1084 | <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
|
---|
| 1085 | <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
|
---|
| 1086 | <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
|
---|
| 1087 | </target>
|
---|
| 1088 | <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
|
---|
| 1089 | <target depends="init" name="-pre-debug-fix">
|
---|
| 1090 | <fail unless="fix.includes">Must set fix.includes</fail>
|
---|
| 1091 | <property name="javac.includes" value="${fix.includes}.java"/>
|
---|
| 1092 | </target>
|
---|
| 1093 | <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
|
---|
| 1094 | <j2seproject1:nbjpdareload/>
|
---|
| 1095 | </target>
|
---|
| 1096 | <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
|
---|
| 1097 | <!--
|
---|
| 1098 | =================
|
---|
| 1099 | PROFILING SECTION
|
---|
| 1100 | =================
|
---|
| 1101 | -->
|
---|
| 1102 | <!--
|
---|
| 1103 | pre NB7.2 profiler integration
|
---|
| 1104 | -->
|
---|
| 1105 | <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
|
---|
| 1106 | <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
|
---|
| 1107 | <nbprofiledirect>
|
---|
| 1108 | <classpath>
|
---|
| 1109 | <path path="${run.classpath}"/>
|
---|
| 1110 | </classpath>
|
---|
| 1111 | </nbprofiledirect>
|
---|
| 1112 | <profile/>
|
---|
| 1113 | </target>
|
---|
| 1114 | <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
|
---|
| 1115 | <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
|
---|
| 1116 | <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
|
---|
| 1117 | <nbprofiledirect>
|
---|
| 1118 | <classpath>
|
---|
| 1119 | <path path="${run.classpath}"/>
|
---|
| 1120 | </classpath>
|
---|
| 1121 | </nbprofiledirect>
|
---|
| 1122 | <profile classname="${profile.class}"/>
|
---|
| 1123 | </target>
|
---|
| 1124 | <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
|
---|
| 1125 | <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
|
---|
| 1126 | <nbprofiledirect>
|
---|
| 1127 | <classpath>
|
---|
| 1128 | <path path="${run.classpath}"/>
|
---|
| 1129 | </classpath>
|
---|
| 1130 | </nbprofiledirect>
|
---|
| 1131 | <profile classname="sun.applet.AppletViewer">
|
---|
| 1132 | <customize>
|
---|
| 1133 | <arg value="${applet.url}"/>
|
---|
| 1134 | </customize>
|
---|
| 1135 | </profile>
|
---|
| 1136 | </target>
|
---|
| 1137 | <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
|
---|
| 1138 | <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
|
---|
| 1139 | <nbprofiledirect>
|
---|
| 1140 | <classpath>
|
---|
| 1141 | <path path="${run.test.classpath}"/>
|
---|
| 1142 | </classpath>
|
---|
| 1143 | </nbprofiledirect>
|
---|
| 1144 | <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
|
---|
| 1145 | <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
|
---|
| 1146 | <jvmarg value="${profiler.info.jvmargs.agent}"/>
|
---|
| 1147 | <jvmarg line="${profiler.info.jvmargs}"/>
|
---|
| 1148 | <test name="${profile.class}"/>
|
---|
| 1149 | <classpath>
|
---|
| 1150 | <path path="${run.test.classpath}"/>
|
---|
| 1151 | </classpath>
|
---|
| 1152 | <syspropertyset>
|
---|
| 1153 | <propertyref prefix="test-sys-prop."/>
|
---|
| 1154 | <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
---|
| 1155 | </syspropertyset>
|
---|
| 1156 | <formatter type="brief" usefile="false"/>
|
---|
| 1157 | <formatter type="xml"/>
|
---|
| 1158 | </junit>
|
---|
| 1159 | </target>
|
---|
| 1160 | <!--
|
---|
| 1161 | end of pre NB72 profiling section
|
---|
| 1162 | -->
|
---|
| 1163 | <target if="netbeans.home" name="-profile-check">
|
---|
| 1164 | <condition property="profiler.configured">
|
---|
| 1165 | <or>
|
---|
| 1166 | <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
|
---|
| 1167 | <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
|
---|
| 1168 | </or>
|
---|
| 1169 | </condition>
|
---|
| 1170 | </target>
|
---|
| 1171 | <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
|
---|
| 1172 | <startprofiler/>
|
---|
| 1173 | <antcall target="run"/>
|
---|
| 1174 | </target>
|
---|
| 1175 | <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
|
---|
| 1176 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
---|
| 1177 | <startprofiler/>
|
---|
| 1178 | <antcall target="run-single"/>
|
---|
| 1179 | </target>
|
---|
| 1180 | <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
|
---|
| 1181 | <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
|
---|
| 1182 | <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
|
---|
| 1183 | <startprofiler/>
|
---|
| 1184 | <antcall target="test-single"/>
|
---|
| 1185 | </target>
|
---|
| 1186 | <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
|
---|
| 1187 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
---|
| 1188 | <startprofiler/>
|
---|
| 1189 | <antcal target="run-test-with-main"/>
|
---|
| 1190 | </target>
|
---|
| 1191 | <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
|
---|
| 1192 | <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
---|
| 1193 | <startprofiler/>
|
---|
| 1194 | <antcall target="run-applet"/>
|
---|
| 1195 | </target>
|
---|
| 1196 | <!--
|
---|
| 1197 | ===============
|
---|
| 1198 | JAVADOC SECTION
|
---|
| 1199 | ===============
|
---|
| 1200 | -->
|
---|
| 1201 | <target depends="init" if="have.sources" name="-javadoc-build">
|
---|
| 1202 | <mkdir dir="${dist.javadoc.dir}"/>
|
---|
| 1203 | <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
|
---|
| 1204 | <and>
|
---|
| 1205 | <isset property="endorsed.classpath.cmd.line.arg"/>
|
---|
| 1206 | <not>
|
---|
| 1207 | <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
|
---|
| 1208 | </not>
|
---|
| 1209 | </and>
|
---|
| 1210 | </condition>
|
---|
| 1211 | <condition else="" property="bug5101868workaround" value="*.java">
|
---|
| 1212 | <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
|
---|
| 1213 | </condition>
|
---|
| 1214 | <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${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}">
|
---|
| 1215 | <classpath>
|
---|
| 1216 | <path path="${javac.classpath}"/>
|
---|
| 1217 | </classpath>
|
---|
| 1218 | <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
|
---|
| 1219 | <filename name="**/*.java"/>
|
---|
| 1220 | </fileset>
|
---|
| 1221 | <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
---|
| 1222 | <include name="**/*.java"/>
|
---|
| 1223 | <exclude name="*.java"/>
|
---|
| 1224 | </fileset>
|
---|
| 1225 | <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
|
---|
| 1226 | </javadoc>
|
---|
| 1227 | <copy todir="${dist.javadoc.dir}">
|
---|
| 1228 | <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
|
---|
| 1229 | <filename name="**/doc-files/**"/>
|
---|
| 1230 | </fileset>
|
---|
| 1231 | <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
---|
| 1232 | <include name="**/doc-files/**"/>
|
---|
| 1233 | </fileset>
|
---|
| 1234 | </copy>
|
---|
| 1235 | </target>
|
---|
| 1236 | <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
|
---|
| 1237 | <nbbrowse file="${dist.javadoc.dir}/index.html"/>
|
---|
| 1238 | </target>
|
---|
| 1239 | <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
|
---|
| 1240 | <!--
|
---|
| 1241 | =========================
|
---|
| 1242 | TEST COMPILATION SECTION
|
---|
| 1243 | =========================
|
---|
| 1244 | -->
|
---|
| 1245 | <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
|
---|
| 1246 | <mkdir dir="${build.test.classes.dir}"/>
|
---|
| 1247 | </target>
|
---|
| 1248 | <target name="-pre-compile-test">
|
---|
| 1249 | <!-- Empty placeholder for easier customization. -->
|
---|
| 1250 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 1251 | </target>
|
---|
| 1252 | <target if="do.depend.true" name="-compile-test-depend">
|
---|
| 1253 | <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
|
---|
| 1254 | </target>
|
---|
| 1255 | <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
|
---|
| 1256 | <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}"/>
|
---|
| 1257 | <copy todir="${build.test.classes.dir}">
|
---|
| 1258 | <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
---|
| 1259 | </copy>
|
---|
| 1260 | </target>
|
---|
| 1261 | <target name="-post-compile-test">
|
---|
| 1262 | <!-- Empty placeholder for easier customization. -->
|
---|
| 1263 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 1264 | </target>
|
---|
| 1265 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
|
---|
| 1266 | <target name="-pre-compile-test-single">
|
---|
| 1267 | <!-- Empty placeholder for easier customization. -->
|
---|
| 1268 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 1269 | </target>
|
---|
| 1270 | <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
|
---|
| 1271 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
---|
| 1272 | <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
|
---|
| 1273 | <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}"/>
|
---|
| 1274 | <copy todir="${build.test.classes.dir}">
|
---|
| 1275 | <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
---|
| 1276 | </copy>
|
---|
| 1277 | </target>
|
---|
| 1278 | <target name="-post-compile-test-single">
|
---|
| 1279 | <!-- Empty placeholder for easier customization. -->
|
---|
| 1280 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 1281 | </target>
|
---|
| 1282 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
|
---|
| 1283 | <!--
|
---|
| 1284 | =======================
|
---|
| 1285 | TEST EXECUTION SECTION
|
---|
| 1286 | =======================
|
---|
| 1287 | -->
|
---|
| 1288 | <target depends="init" if="have.tests" name="-pre-test-run">
|
---|
| 1289 | <mkdir dir="${build.test.results.dir}"/>
|
---|
| 1290 | </target>
|
---|
| 1291 | <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
|
---|
| 1292 | <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
|
---|
| 1293 | </target>
|
---|
| 1294 | <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
|
---|
| 1295 | <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
---|
| 1296 | </target>
|
---|
| 1297 | <target depends="init" if="have.tests" name="test-report"/>
|
---|
| 1298 | <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
|
---|
| 1299 | <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
|
---|
| 1300 | <target depends="init" if="have.tests" name="-pre-test-run-single">
|
---|
| 1301 | <mkdir dir="${build.test.results.dir}"/>
|
---|
| 1302 | </target>
|
---|
| 1303 | <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
|
---|
| 1304 | <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
|
---|
| 1305 | <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
|
---|
| 1306 | </target>
|
---|
| 1307 | <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
|
---|
| 1308 | <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
---|
| 1309 | </target>
|
---|
| 1310 | <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"/>
|
---|
| 1311 | <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
|
---|
| 1312 | <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
|
---|
| 1313 | <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
|
---|
| 1314 | <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
|
---|
| 1315 | </target>
|
---|
| 1316 | <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
|
---|
| 1317 | <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
---|
| 1318 | </target>
|
---|
| 1319 | <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
|
---|
| 1320 | <!--
|
---|
| 1321 | =======================
|
---|
| 1322 | TEST DEBUGGING SECTION
|
---|
| 1323 | =======================
|
---|
| 1324 | -->
|
---|
| 1325 | <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
|
---|
| 1326 | <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
|
---|
| 1327 | <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
|
---|
| 1328 | </target>
|
---|
| 1329 | <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
|
---|
| 1330 | <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
|
---|
| 1331 | <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
|
---|
| 1332 | <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
|
---|
| 1333 | </target>
|
---|
| 1334 | <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
|
---|
| 1335 | <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
|
---|
| 1336 | </target>
|
---|
| 1337 | <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
|
---|
| 1338 | <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
|
---|
| 1339 | <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
|
---|
| 1340 | <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
|
---|
| 1341 | </target>
|
---|
| 1342 | <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
|
---|
| 1343 | <!--
|
---|
| 1344 | =========================
|
---|
| 1345 | APPLET EXECUTION SECTION
|
---|
| 1346 | =========================
|
---|
| 1347 | -->
|
---|
| 1348 | <target depends="init,compile-single" name="run-applet">
|
---|
| 1349 | <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
---|
| 1350 | <j2seproject1:java classname="sun.applet.AppletViewer">
|
---|
| 1351 | <customize>
|
---|
| 1352 | <arg value="${applet.url}"/>
|
---|
| 1353 | </customize>
|
---|
| 1354 | </j2seproject1:java>
|
---|
| 1355 | </target>
|
---|
| 1356 | <!--
|
---|
| 1357 | =========================
|
---|
| 1358 | APPLET DEBUGGING SECTION
|
---|
| 1359 | =========================
|
---|
| 1360 | -->
|
---|
| 1361 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
|
---|
| 1362 | <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
---|
| 1363 | <j2seproject3:debug classname="sun.applet.AppletViewer">
|
---|
| 1364 | <customize>
|
---|
| 1365 | <arg value="${applet.url}"/>
|
---|
| 1366 | </customize>
|
---|
| 1367 | </j2seproject3:debug>
|
---|
| 1368 | </target>
|
---|
| 1369 | <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
|
---|
| 1370 | <!--
|
---|
| 1371 | ===============
|
---|
| 1372 | CLEANUP SECTION
|
---|
| 1373 | ===============
|
---|
| 1374 | -->
|
---|
| 1375 | <target name="-deps-clean-init" unless="built-clean.properties">
|
---|
| 1376 | <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
|
---|
| 1377 | <delete file="${built-clean.properties}" quiet="true"/>
|
---|
| 1378 | </target>
|
---|
| 1379 | <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
|
---|
| 1380 | <echo level="warn" message="Cycle detected: QCG-Icon was already built"/>
|
---|
| 1381 | </target>
|
---|
| 1382 | <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
|
---|
| 1383 | <mkdir dir="${build.dir}"/>
|
---|
| 1384 | <touch file="${built-clean.properties}" verbose="false"/>
|
---|
| 1385 | <property file="${built-clean.properties}" prefix="already.built.clean."/>
|
---|
| 1386 | <antcall target="-warn-already-built-clean"/>
|
---|
| 1387 | <propertyfile file="${built-clean.properties}">
|
---|
| 1388 | <entry key="${basedir}" value=""/>
|
---|
| 1389 | </propertyfile>
|
---|
| 1390 | </target>
|
---|
| 1391 | <target depends="init" name="-do-clean">
|
---|
| 1392 | <delete dir="${build.dir}"/>
|
---|
| 1393 | <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
|
---|
| 1394 | </target>
|
---|
| 1395 | <target name="-post-clean">
|
---|
| 1396 | <!-- Empty placeholder for easier customization. -->
|
---|
| 1397 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 1398 | </target>
|
---|
| 1399 | <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
|
---|
| 1400 | <target name="-check-call-dep">
|
---|
| 1401 | <property file="${call.built.properties}" prefix="already.built."/>
|
---|
| 1402 | <condition property="should.call.dep">
|
---|
| 1403 | <and>
|
---|
| 1404 | <not>
|
---|
| 1405 | <isset property="already.built.${call.subproject}"/>
|
---|
| 1406 | </not>
|
---|
| 1407 | <available file="${call.script}"/>
|
---|
| 1408 | </and>
|
---|
| 1409 | </condition>
|
---|
| 1410 | </target>
|
---|
| 1411 | <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
|
---|
| 1412 | <ant antfile="${call.script}" inheritall="false" target="${call.target}">
|
---|
| 1413 | <propertyset>
|
---|
| 1414 | <propertyref prefix="transfer."/>
|
---|
| 1415 | <mapper from="transfer.*" to="*" type="glob"/>
|
---|
| 1416 | </propertyset>
|
---|
| 1417 | </ant>
|
---|
| 1418 | </target>
|
---|
| 1419 | </project>
|
---|