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