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