[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"> |
---|
[19] | 23 | <fail message="Please build using Ant 1.7.1 or higher."> |
---|
| 24 | <condition> |
---|
| 25 | <not> |
---|
| 26 | <antversion atleast="1.7.1"/> |
---|
| 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}"/> |
---|
[19] | 254 | <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> |
---|
[11] | 255 | </target> |
---|
| 256 | <target name="-post-init"> |
---|
| 257 | <!-- Empty placeholder for easier customization. --> |
---|
| 258 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 259 | </target> |
---|
| 260 | <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init" name="-init-check"> |
---|
| 261 | <fail unless="src.dir">Must set src.dir</fail> |
---|
| 262 | <fail unless="test.src.dir">Must set test.src.dir</fail> |
---|
| 263 | <fail unless="build.dir">Must set build.dir</fail> |
---|
| 264 | <fail unless="dist.dir">Must set dist.dir</fail> |
---|
| 265 | <fail unless="build.classes.dir">Must set build.classes.dir</fail> |
---|
| 266 | <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> |
---|
| 267 | <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> |
---|
| 268 | <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> |
---|
| 269 | <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> |
---|
| 270 | <fail unless="dist.jar">Must set dist.jar</fail> |
---|
| 271 | </target> |
---|
| 272 | <target name="-init-macrodef-property"> |
---|
| 273 | <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> |
---|
| 274 | <attribute name="name"/> |
---|
| 275 | <attribute name="value"/> |
---|
| 276 | <sequential> |
---|
| 277 | <property name="@{name}" value="${@{value}}"/> |
---|
| 278 | </sequential> |
---|
| 279 | </macrodef> |
---|
| 280 | </target> |
---|
[19] | 281 | <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors"> |
---|
[11] | 282 | <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 283 | <attribute default="${src.dir}" name="srcdir"/> |
---|
| 284 | <attribute default="${build.classes.dir}" name="destdir"/> |
---|
| 285 | <attribute default="${javac.classpath}" name="classpath"/> |
---|
[19] | 286 | <attribute default="${javac.processorpath}" name="processorpath"/> |
---|
| 287 | <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> |
---|
[11] | 288 | <attribute default="${includes}" name="includes"/> |
---|
| 289 | <attribute default="${excludes}" name="excludes"/> |
---|
| 290 | <attribute default="${javac.debug}" name="debug"/> |
---|
[19] | 291 | <attribute default="${empty.dir}" name="sourcepath"/> |
---|
| 292 | <attribute default="${empty.dir}" name="gensrcdir"/> |
---|
[11] | 293 | <element name="customize" optional="true"/> |
---|
| 294 | <sequential> |
---|
[19] | 295 | <property location="${build.dir}/empty" name="empty.dir"/> |
---|
| 296 | <mkdir dir="${empty.dir}"/> |
---|
| 297 | <mkdir dir="@{apgeneratedsrcdir}"/> |
---|
[26] | 298 | <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] | 299 | <src> |
---|
| 300 | <dirset dir="@{gensrcdir}" erroronmissingdir="false"> |
---|
| 301 | <include name="*"/> |
---|
| 302 | </dirset> |
---|
| 303 | </src> |
---|
[11] | 304 | <classpath> |
---|
| 305 | <path path="@{classpath}"/> |
---|
| 306 | </classpath> |
---|
[19] | 307 | <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> |
---|
| 308 | <compilerarg line="${javac.compilerargs}"/> |
---|
| 309 | <compilerarg value="-processorpath"/> |
---|
| 310 | <compilerarg path="@{processorpath}:${empty.dir}"/> |
---|
| 311 | <compilerarg line="${ap.processors.internal}"/> |
---|
| 312 | <compilerarg line="${annotation.processing.processor.options}"/> |
---|
| 313 | <compilerarg value="-s"/> |
---|
| 314 | <compilerarg path="@{apgeneratedsrcdir}"/> |
---|
| 315 | <compilerarg line="${ap.proc.none.internal}"/> |
---|
[11] | 316 | <customize/> |
---|
| 317 | </javac> |
---|
| 318 | </sequential> |
---|
| 319 | </macrodef> |
---|
[19] | 320 | </target> |
---|
| 321 | <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal"> |
---|
| 322 | <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 323 | <attribute default="${src.dir}" name="srcdir"/> |
---|
| 324 | <attribute default="${build.classes.dir}" name="destdir"/> |
---|
| 325 | <attribute default="${javac.classpath}" name="classpath"/> |
---|
| 326 | <attribute default="${javac.processorpath}" name="processorpath"/> |
---|
| 327 | <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> |
---|
| 328 | <attribute default="${includes}" name="includes"/> |
---|
| 329 | <attribute default="${excludes}" name="excludes"/> |
---|
| 330 | <attribute default="${javac.debug}" name="debug"/> |
---|
| 331 | <attribute default="${empty.dir}" name="sourcepath"/> |
---|
| 332 | <attribute default="${empty.dir}" name="gensrcdir"/> |
---|
| 333 | <element name="customize" optional="true"/> |
---|
| 334 | <sequential> |
---|
| 335 | <property location="${build.dir}/empty" name="empty.dir"/> |
---|
| 336 | <mkdir dir="${empty.dir}"/> |
---|
[26] | 337 | <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] | 338 | <src> |
---|
| 339 | <dirset dir="@{gensrcdir}" erroronmissingdir="false"> |
---|
| 340 | <include name="*"/> |
---|
| 341 | </dirset> |
---|
| 342 | </src> |
---|
| 343 | <classpath> |
---|
| 344 | <path path="@{classpath}"/> |
---|
| 345 | </classpath> |
---|
| 346 | <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> |
---|
| 347 | <compilerarg line="${javac.compilerargs}"/> |
---|
| 348 | <customize/> |
---|
| 349 | </javac> |
---|
| 350 | </sequential> |
---|
| 351 | </macrodef> |
---|
| 352 | </target> |
---|
| 353 | <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac"> |
---|
[11] | 354 | <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 355 | <attribute default="${src.dir}" name="srcdir"/> |
---|
| 356 | <attribute default="${build.classes.dir}" name="destdir"/> |
---|
| 357 | <attribute default="${javac.classpath}" name="classpath"/> |
---|
| 358 | <sequential> |
---|
| 359 | <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> |
---|
| 360 | <classpath> |
---|
| 361 | <path path="@{classpath}"/> |
---|
| 362 | </classpath> |
---|
| 363 | </depend> |
---|
| 364 | </sequential> |
---|
| 365 | </macrodef> |
---|
| 366 | <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 367 | <attribute default="${build.classes.dir}" name="destdir"/> |
---|
| 368 | <sequential> |
---|
| 369 | <fail unless="javac.includes">Must set javac.includes</fail> |
---|
[32] | 370 | <pathconvert pathsep="${line.separator}" property="javac.includes.binary"> |
---|
[11] | 371 | <path> |
---|
| 372 | <filelist dir="@{destdir}" files="${javac.includes}"/> |
---|
| 373 | </path> |
---|
| 374 | <globmapper from="*.java" to="*.class"/> |
---|
| 375 | </pathconvert> |
---|
[32] | 376 | <tempfile deleteonexit="true" property="javac.includesfile.binary"/> |
---|
| 377 | <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/> |
---|
[11] | 378 | <delete> |
---|
[32] | 379 | <files includesfile="${javac.includesfile.binary}"/> |
---|
[11] | 380 | </delete> |
---|
[32] | 381 | <delete> |
---|
| 382 | <fileset file="${javac.includesfile.binary}"/> |
---|
| 383 | </delete> |
---|
[11] | 384 | </sequential> |
---|
| 385 | </macrodef> |
---|
| 386 | </target> |
---|
| 387 | <target name="-init-macrodef-junit"> |
---|
| 388 | <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 389 | <attribute default="${includes}" name="includes"/> |
---|
| 390 | <attribute default="${excludes}" name="excludes"/> |
---|
| 391 | <attribute default="**" name="testincludes"/> |
---|
| 392 | <sequential> |
---|
[32] | 393 | <property name="junit.forkmode" value="perTest"/> |
---|
| 394 | <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> |
---|
[11] | 395 | <batchtest todir="${build.test.results.dir}"> |
---|
| 396 | <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> |
---|
| 397 | <filename name="@{testincludes}"/> |
---|
| 398 | </fileset> |
---|
| 399 | </batchtest> |
---|
| 400 | <classpath> |
---|
| 401 | <path path="${run.test.classpath}"/> |
---|
| 402 | </classpath> |
---|
| 403 | <syspropertyset> |
---|
| 404 | <propertyref prefix="test-sys-prop."/> |
---|
| 405 | <mapper from="test-sys-prop.*" to="*" type="glob"/> |
---|
| 406 | </syspropertyset> |
---|
| 407 | <formatter type="brief" usefile="false"/> |
---|
| 408 | <formatter type="xml"/> |
---|
[19] | 409 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
---|
[32] | 410 | <jvmarg value="-ea"/> |
---|
[11] | 411 | <jvmarg line="${run.jvmargs}"/> |
---|
| 412 | </junit> |
---|
| 413 | </sequential> |
---|
| 414 | </macrodef> |
---|
| 415 | </target> |
---|
[32] | 416 | <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/> |
---|
| 417 | <target name="-profile-pre-init"> |
---|
| 418 | <!-- Empty placeholder for easier customization. --> |
---|
| 419 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 420 | </target> |
---|
| 421 | <target name="-profile-post-init"> |
---|
| 422 | <!-- Empty placeholder for easier customization. --> |
---|
| 423 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 424 | </target> |
---|
| 425 | <target name="-profile-init-macrodef-profile"> |
---|
| 426 | <macrodef name="resolve"> |
---|
| 427 | <attribute name="name"/> |
---|
| 428 | <attribute name="value"/> |
---|
| 429 | <sequential> |
---|
| 430 | <property name="@{name}" value="${env.@{value}}"/> |
---|
| 431 | </sequential> |
---|
| 432 | </macrodef> |
---|
| 433 | <macrodef name="profile"> |
---|
| 434 | <attribute default="${main.class}" name="classname"/> |
---|
| 435 | <element name="customize" optional="true"/> |
---|
| 436 | <sequential> |
---|
| 437 | <property environment="env"/> |
---|
| 438 | <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> |
---|
| 439 | <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}"> |
---|
| 440 | <jvmarg value="${profiler.info.jvmargs.agent}"/> |
---|
| 441 | <jvmarg line="${profiler.info.jvmargs}"/> |
---|
| 442 | <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> |
---|
| 443 | <arg line="${application.args}"/> |
---|
| 444 | <classpath> |
---|
| 445 | <path path="${run.classpath}"/> |
---|
| 446 | </classpath> |
---|
| 447 | <syspropertyset> |
---|
| 448 | <propertyref prefix="run-sys-prop."/> |
---|
| 449 | <mapper from="run-sys-prop.*" to="*" type="glob"/> |
---|
| 450 | </syspropertyset> |
---|
| 451 | <customize/> |
---|
| 452 | </java> |
---|
| 453 | </sequential> |
---|
| 454 | </macrodef> |
---|
| 455 | </target> |
---|
| 456 | <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check"> |
---|
| 457 | <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail> |
---|
| 458 | <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail> |
---|
| 459 | </target> |
---|
[11] | 460 | <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> |
---|
| 461 | <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> |
---|
| 462 | <attribute default="${main.class}" name="name"/> |
---|
| 463 | <attribute default="${debug.classpath}" name="classpath"/> |
---|
| 464 | <attribute default="" name="stopclassname"/> |
---|
| 465 | <sequential> |
---|
| 466 | <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}"> |
---|
| 467 | <classpath> |
---|
| 468 | <path path="@{classpath}"/> |
---|
| 469 | </classpath> |
---|
[26] | 470 | <bootclasspath> |
---|
| 471 | <path path="${platform.bootcp}"/> |
---|
| 472 | </bootclasspath> |
---|
[11] | 473 | </nbjpdastart> |
---|
| 474 | </sequential> |
---|
| 475 | </macrodef> |
---|
| 476 | <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> |
---|
| 477 | <attribute default="${build.classes.dir}" name="dir"/> |
---|
| 478 | <sequential> |
---|
| 479 | <nbjpdareload> |
---|
| 480 | <fileset dir="@{dir}" includes="${fix.classes}"> |
---|
| 481 | <include name="${fix.includes}*.class"/> |
---|
| 482 | </fileset> |
---|
| 483 | </nbjpdareload> |
---|
| 484 | </sequential> |
---|
| 485 | </macrodef> |
---|
| 486 | </target> |
---|
| 487 | <target name="-init-debug-args"> |
---|
[26] | 488 | <exec executable="${platform.java}" outputproperty="version-output"> |
---|
| 489 | <arg value="-version"/> |
---|
| 490 | </exec> |
---|
[11] | 491 | <condition property="have-jdk-older-than-1.4"> |
---|
| 492 | <or> |
---|
| 493 | <contains string="${version-output}" substring="java version "1.0"/> |
---|
| 494 | <contains string="${version-output}" substring="java version "1.1"/> |
---|
| 495 | <contains string="${version-output}" substring="java version "1.2"/> |
---|
| 496 | <contains string="${version-output}" substring="java version "1.3"/> |
---|
| 497 | </or> |
---|
| 498 | </condition> |
---|
| 499 | <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> |
---|
| 500 | <istrue value="${have-jdk-older-than-1.4}"/> |
---|
| 501 | </condition> |
---|
| 502 | <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem"> |
---|
| 503 | <os family="windows"/> |
---|
| 504 | </condition> |
---|
| 505 | <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}"> |
---|
| 506 | <isset property="debug.transport"/> |
---|
| 507 | </condition> |
---|
| 508 | </target> |
---|
| 509 | <target depends="-init-debug-args" name="-init-macrodef-debug"> |
---|
| 510 | <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
| 511 | <attribute default="${main.class}" name="classname"/> |
---|
| 512 | <attribute default="${debug.classpath}" name="classpath"/> |
---|
| 513 | <element name="customize" optional="true"/> |
---|
| 514 | <sequential> |
---|
[26] | 515 | <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}"> |
---|
[19] | 516 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
---|
[11] | 517 | <jvmarg line="${debug-args-line}"/> |
---|
| 518 | <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> |
---|
[19] | 519 | <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> |
---|
| 520 | <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> |
---|
[11] | 521 | <jvmarg line="${run.jvmargs}"/> |
---|
| 522 | <classpath> |
---|
| 523 | <path path="@{classpath}"/> |
---|
| 524 | </classpath> |
---|
| 525 | <syspropertyset> |
---|
| 526 | <propertyref prefix="run-sys-prop."/> |
---|
| 527 | <mapper from="run-sys-prop.*" to="*" type="glob"/> |
---|
| 528 | </syspropertyset> |
---|
| 529 | <customize/> |
---|
| 530 | </java> |
---|
| 531 | </sequential> |
---|
| 532 | </macrodef> |
---|
| 533 | </target> |
---|
| 534 | <target name="-init-macrodef-java"> |
---|
| 535 | <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> |
---|
| 536 | <attribute default="${main.class}" name="classname"/> |
---|
[19] | 537 | <attribute default="${run.classpath}" name="classpath"/> |
---|
[11] | 538 | <element name="customize" optional="true"/> |
---|
| 539 | <sequential> |
---|
[26] | 540 | <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}"> |
---|
[19] | 541 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
---|
| 542 | <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> |
---|
| 543 | <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> |
---|
[11] | 544 | <jvmarg line="${run.jvmargs}"/> |
---|
| 545 | <classpath> |
---|
[19] | 546 | <path path="@{classpath}"/> |
---|
[11] | 547 | </classpath> |
---|
| 548 | <syspropertyset> |
---|
| 549 | <propertyref prefix="run-sys-prop."/> |
---|
| 550 | <mapper from="run-sys-prop.*" to="*" type="glob"/> |
---|
| 551 | </syspropertyset> |
---|
| 552 | <customize/> |
---|
| 553 | </java> |
---|
| 554 | </sequential> |
---|
| 555 | </macrodef> |
---|
| 556 | </target> |
---|
[19] | 557 | <target name="-init-macrodef-copylibs"> |
---|
| 558 | <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3"> |
---|
[32] | 559 | <attribute default="${manifest.file}" name="manifest"/> |
---|
[19] | 560 | <element name="customize" optional="true"/> |
---|
| 561 | <sequential> |
---|
| 562 | <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> |
---|
| 563 | <pathconvert property="run.classpath.without.build.classes.dir"> |
---|
| 564 | <path path="${run.classpath}"/> |
---|
| 565 | <map from="${build.classes.dir.resolved}" to=""/> |
---|
| 566 | </pathconvert> |
---|
| 567 | <pathconvert pathsep=" " property="jar.classpath"> |
---|
| 568 | <path path="${run.classpath.without.build.classes.dir}"/> |
---|
| 569 | <chainedmapper> |
---|
| 570 | <flattenmapper/> |
---|
| 571 | <globmapper from="*" to="lib/*"/> |
---|
| 572 | </chainedmapper> |
---|
| 573 | </pathconvert> |
---|
| 574 | <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> |
---|
[32] | 575 | <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> |
---|
[19] | 576 | <fileset dir="${build.classes.dir}"/> |
---|
| 577 | <manifest> |
---|
| 578 | <attribute name="Class-Path" value="${jar.classpath}"/> |
---|
| 579 | <customize/> |
---|
| 580 | </manifest> |
---|
| 581 | </copylibs> |
---|
| 582 | </sequential> |
---|
| 583 | </macrodef> |
---|
| 584 | </target> |
---|
[11] | 585 | <target name="-init-presetdef-jar"> |
---|
| 586 | <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> |
---|
[19] | 587 | <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}"> |
---|
[11] | 588 | <j2seproject1:fileset dir="${build.classes.dir}"/> |
---|
| 589 | </jar> |
---|
| 590 | </presetdef> |
---|
| 591 | </target> |
---|
[19] | 592 | <target name="-init-ap-cmdline-properties"> |
---|
| 593 | <property name="annotation.processing.enabled" value="true"/> |
---|
| 594 | <property name="annotation.processing.processors.list" value=""/> |
---|
| 595 | <property name="annotation.processing.processor.options" value=""/> |
---|
| 596 | <property name="annotation.processing.run.all.processors" value="true"/> |
---|
| 597 | <property name="javac.processorpath" value="${javac.classpath}"/> |
---|
| 598 | <property name="javac.test.processorpath" value="${javac.test.classpath}"/> |
---|
| 599 | <condition property="ap.supported.internal" value="true"> |
---|
| 600 | <not> |
---|
| 601 | <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/> |
---|
| 602 | </not> |
---|
| 603 | </condition> |
---|
| 604 | </target> |
---|
| 605 | <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported"> |
---|
| 606 | <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}"> |
---|
| 607 | <isfalse value="${annotation.processing.run.all.processors}"/> |
---|
| 608 | </condition> |
---|
| 609 | <condition else="" property="ap.proc.none.internal" value="-proc:none"> |
---|
| 610 | <isfalse value="${annotation.processing.enabled}"/> |
---|
| 611 | </condition> |
---|
| 612 | </target> |
---|
| 613 | <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline"> |
---|
| 614 | <property name="ap.cmd.line.internal" value=""/> |
---|
| 615 | </target> |
---|
| 616 | <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] | 617 | <!-- |
---|
| 618 | =================== |
---|
| 619 | COMPILATION SECTION |
---|
| 620 | =================== |
---|
| 621 | --> |
---|
[19] | 622 | <target name="-deps-jar-init" unless="built-jar.properties"> |
---|
| 623 | <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/> |
---|
| 624 | <delete file="${built-jar.properties}" quiet="true"/> |
---|
| 625 | </target> |
---|
| 626 | <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> |
---|
| 627 | <echo level="warn" message="Cycle detected: fmgVen was already built"/> |
---|
| 628 | </target> |
---|
| 629 | <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> |
---|
| 630 | <mkdir dir="${build.dir}"/> |
---|
| 631 | <touch file="${built-jar.properties}" verbose="false"/> |
---|
| 632 | <property file="${built-jar.properties}" prefix="already.built.jar."/> |
---|
| 633 | <antcall target="-warn-already-built-jar"/> |
---|
| 634 | <propertyfile file="${built-jar.properties}"> |
---|
| 635 | <entry key="${basedir}" value=""/> |
---|
| 636 | </propertyfile> |
---|
| 637 | </target> |
---|
[11] | 638 | <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> |
---|
| 639 | <target depends="init" name="-check-automatic-build"> |
---|
| 640 | <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> |
---|
| 641 | </target> |
---|
| 642 | <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> |
---|
| 643 | <antcall target="clean"/> |
---|
| 644 | </target> |
---|
| 645 | <target depends="init,deps-jar" name="-pre-pre-compile"> |
---|
| 646 | <mkdir dir="${build.classes.dir}"/> |
---|
| 647 | </target> |
---|
| 648 | <target name="-pre-compile"> |
---|
| 649 | <!-- Empty placeholder for easier customization. --> |
---|
| 650 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 651 | </target> |
---|
| 652 | <target if="do.depend.true" name="-compile-depend"> |
---|
[19] | 653 | <pathconvert property="build.generated.subdirs"> |
---|
| 654 | <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false"> |
---|
| 655 | <include name="*"/> |
---|
| 656 | </dirset> |
---|
| 657 | </pathconvert> |
---|
| 658 | <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/> |
---|
[11] | 659 | </target> |
---|
[19] | 660 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile"> |
---|
| 661 | <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> |
---|
[11] | 662 | <copy todir="${build.classes.dir}"> |
---|
| 663 | <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> |
---|
| 664 | </copy> |
---|
| 665 | </target> |
---|
[19] | 666 | <target if="has.persistence.xml" name="-copy-persistence-xml"> |
---|
| 667 | <mkdir dir="${build.classes.dir}/META-INF"/> |
---|
| 668 | <copy todir="${build.classes.dir}/META-INF"> |
---|
| 669 | <fileset dir="${meta.inf.dir}" includes="persistence.xml"/> |
---|
| 670 | </copy> |
---|
| 671 | </target> |
---|
[11] | 672 | <target name="-post-compile"> |
---|
| 673 | <!-- Empty placeholder for easier customization. --> |
---|
| 674 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 675 | </target> |
---|
| 676 | <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> |
---|
| 677 | <target name="-pre-compile-single"> |
---|
| 678 | <!-- Empty placeholder for easier customization. --> |
---|
| 679 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 680 | </target> |
---|
| 681 | <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> |
---|
| 682 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> |
---|
| 683 | <j2seproject3:force-recompile/> |
---|
[19] | 684 | <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/> |
---|
[11] | 685 | </target> |
---|
| 686 | <target name="-post-compile-single"> |
---|
| 687 | <!-- Empty placeholder for easier customization. --> |
---|
| 688 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 689 | </target> |
---|
| 690 | <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> |
---|
| 691 | <!-- |
---|
| 692 | ==================== |
---|
| 693 | JAR BUILDING SECTION |
---|
| 694 | ==================== |
---|
| 695 | --> |
---|
| 696 | <target depends="init" name="-pre-pre-jar"> |
---|
| 697 | <dirname file="${dist.jar}" property="dist.jar.dir"/> |
---|
| 698 | <mkdir dir="${dist.jar.dir}"/> |
---|
| 699 | </target> |
---|
| 700 | <target name="-pre-jar"> |
---|
| 701 | <!-- Empty placeholder for easier customization. --> |
---|
| 702 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 703 | </target> |
---|
[32] | 704 | <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available"> |
---|
[11] | 705 | <j2seproject1:jar/> |
---|
| 706 | </target> |
---|
[32] | 707 | <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] | 708 | <j2seproject1:jar manifest="${manifest.file}"/> |
---|
| 709 | </target> |
---|
[19] | 710 | <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] | 711 | <j2seproject1:jar manifest="${manifest.file}"> |
---|
| 712 | <j2seproject1:manifest> |
---|
| 713 | <j2seproject1:attribute name="Main-Class" value="${main.class}"/> |
---|
| 714 | </j2seproject1:manifest> |
---|
| 715 | </j2seproject1:jar> |
---|
[32] | 716 | <echo level="info">To run this application from the command line without Ant, try:</echo> |
---|
[11] | 717 | <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> |
---|
| 718 | <property location="${dist.jar}" name="dist.jar.resolved"/> |
---|
| 719 | <pathconvert property="run.classpath.with.dist.jar"> |
---|
| 720 | <path path="${run.classpath}"/> |
---|
| 721 | <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> |
---|
| 722 | </pathconvert> |
---|
[32] | 723 | <echo level="info">${platform.java} -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> |
---|
[11] | 724 | </target> |
---|
[32] | 725 | <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available"> |
---|
| 726 | <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> |
---|
| 727 | <touch file="${tmp.manifest.file}" verbose="false"/> |
---|
| 728 | </target> |
---|
| 729 | <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest"> |
---|
| 730 | <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> |
---|
| 731 | <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/> |
---|
| 732 | </target> |
---|
| 733 | <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"> |
---|
| 734 | <manifest file="${tmp.manifest.file}" mode="update"> |
---|
| 735 | <attribute name="Main-Class" value="${main.class}"/> |
---|
| 736 | </manifest> |
---|
| 737 | </target> |
---|
| 738 | <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] | 739 | <basename file="${application.splash}" property="splashscreen.basename"/> |
---|
| 740 | <mkdir dir="${build.classes.dir}/META-INF"/> |
---|
| 741 | <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> |
---|
[32] | 742 | <manifest file="${tmp.manifest.file}" mode="update"> |
---|
| 743 | <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> |
---|
| 744 | </manifest> |
---|
[11] | 745 | </target> |
---|
[32] | 746 | <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"> |
---|
| 747 | <j2seproject3:copylibs manifest="${tmp.manifest.file}"/> |
---|
| 748 | <echo level="info">To run this application from the command line without Ant, try:</echo> |
---|
[19] | 749 | <property location="${dist.jar}" name="dist.jar.resolved"/> |
---|
[32] | 750 | <echo level="info">${platform.java} -jar "${dist.jar.resolved}"</echo> |
---|
[19] | 751 | </target> |
---|
[32] | 752 | <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest"> |
---|
| 753 | <delete> |
---|
| 754 | <fileset file="${tmp.manifest.file}"/> |
---|
| 755 | </delete> |
---|
| 756 | </target> |
---|
| 757 | <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] | 758 | <target name="-post-jar"> |
---|
| 759 | <!-- Empty placeholder for easier customization. --> |
---|
| 760 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 761 | </target> |
---|
[32] | 762 | <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] | 763 | <!-- |
---|
| 764 | ================= |
---|
| 765 | EXECUTION SECTION |
---|
| 766 | ================= |
---|
| 767 | --> |
---|
| 768 | <target depends="init,compile" description="Run a main class." name="run"> |
---|
| 769 | <j2seproject1:java> |
---|
| 770 | <customize> |
---|
| 771 | <arg line="${application.args}"/> |
---|
| 772 | </customize> |
---|
| 773 | </j2seproject1:java> |
---|
| 774 | </target> |
---|
| 775 | <target name="-do-not-recompile"> |
---|
| 776 | <property name="javac.includes.binary" value=""/> |
---|
| 777 | </target> |
---|
[19] | 778 | <target depends="init,compile-single" name="run-single"> |
---|
[11] | 779 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
---|
| 780 | <j2seproject1:java classname="${run.class}"/> |
---|
| 781 | </target> |
---|
[19] | 782 | <target depends="init,compile-test-single" name="run-test-with-main"> |
---|
| 783 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
---|
| 784 | <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> |
---|
| 785 | </target> |
---|
[11] | 786 | <!-- |
---|
| 787 | ================= |
---|
| 788 | DEBUGGING SECTION |
---|
| 789 | ================= |
---|
| 790 | --> |
---|
| 791 | <target depends="init" if="netbeans.home" name="-debug-start-debugger"> |
---|
| 792 | <j2seproject1:nbjpdastart name="${debug.class}"/> |
---|
| 793 | </target> |
---|
[19] | 794 | <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test"> |
---|
| 795 | <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/> |
---|
| 796 | </target> |
---|
[11] | 797 | <target depends="init,compile" name="-debug-start-debuggee"> |
---|
| 798 | <j2seproject3:debug> |
---|
| 799 | <customize> |
---|
| 800 | <arg line="${application.args}"/> |
---|
| 801 | </customize> |
---|
| 802 | </j2seproject3:debug> |
---|
| 803 | </target> |
---|
| 804 | <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> |
---|
| 805 | <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> |
---|
| 806 | <j2seproject1:nbjpdastart stopclassname="${main.class}"/> |
---|
| 807 | </target> |
---|
| 808 | <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> |
---|
| 809 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> |
---|
| 810 | <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> |
---|
| 811 | <j2seproject3:debug classname="${debug.class}"/> |
---|
| 812 | </target> |
---|
[19] | 813 | <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> |
---|
| 814 | <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> |
---|
| 815 | <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> |
---|
| 816 | <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> |
---|
| 817 | </target> |
---|
| 818 | <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] | 819 | <target depends="init" name="-pre-debug-fix"> |
---|
| 820 | <fail unless="fix.includes">Must set fix.includes</fail> |
---|
| 821 | <property name="javac.includes" value="${fix.includes}.java"/> |
---|
| 822 | </target> |
---|
| 823 | <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> |
---|
| 824 | <j2seproject1:nbjpdareload/> |
---|
| 825 | </target> |
---|
| 826 | <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> |
---|
| 827 | <!-- |
---|
[32] | 828 | ================= |
---|
| 829 | PROFILING SECTION |
---|
| 830 | ================= |
---|
| 831 | --> |
---|
| 832 | <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile"> |
---|
| 833 | <nbprofiledirect> |
---|
| 834 | <classpath> |
---|
| 835 | <path path="${run.classpath}"/> |
---|
| 836 | </classpath> |
---|
| 837 | </nbprofiledirect> |
---|
| 838 | <profile/> |
---|
| 839 | </target> |
---|
| 840 | <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single"> |
---|
| 841 | <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail> |
---|
| 842 | <nbprofiledirect> |
---|
| 843 | <classpath> |
---|
| 844 | <path path="${run.classpath}"/> |
---|
| 845 | </classpath> |
---|
| 846 | </nbprofiledirect> |
---|
| 847 | <profile classname="${profile.class}"/> |
---|
| 848 | </target> |
---|
| 849 | <!-- |
---|
| 850 | ========================= |
---|
| 851 | APPLET PROFILING SECTION |
---|
| 852 | ========================= |
---|
| 853 | --> |
---|
| 854 | <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet"> |
---|
| 855 | <nbprofiledirect> |
---|
| 856 | <classpath> |
---|
| 857 | <path path="${run.classpath}"/> |
---|
| 858 | </classpath> |
---|
| 859 | </nbprofiledirect> |
---|
| 860 | <profile classname="sun.applet.AppletViewer"> |
---|
| 861 | <customize> |
---|
| 862 | <arg value="${applet.url}"/> |
---|
| 863 | </customize> |
---|
| 864 | </profile> |
---|
| 865 | </target> |
---|
| 866 | <!-- |
---|
| 867 | ========================= |
---|
| 868 | TESTS PROFILING SECTION |
---|
| 869 | ========================= |
---|
| 870 | --> |
---|
| 871 | <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single"> |
---|
| 872 | <nbprofiledirect> |
---|
| 873 | <classpath> |
---|
| 874 | <path path="${run.test.classpath}"/> |
---|
| 875 | </classpath> |
---|
| 876 | </nbprofiledirect> |
---|
| 877 | <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true"> |
---|
| 878 | <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> |
---|
| 879 | <jvmarg value="${profiler.info.jvmargs.agent}"/> |
---|
| 880 | <jvmarg line="${profiler.info.jvmargs}"/> |
---|
| 881 | <test name="${profile.class}"/> |
---|
| 882 | <classpath> |
---|
| 883 | <path path="${run.test.classpath}"/> |
---|
| 884 | </classpath> |
---|
| 885 | <syspropertyset> |
---|
| 886 | <propertyref prefix="test-sys-prop."/> |
---|
| 887 | <mapper from="test-sys-prop.*" to="*" type="glob"/> |
---|
| 888 | </syspropertyset> |
---|
| 889 | <formatter type="brief" usefile="false"/> |
---|
| 890 | <formatter type="xml"/> |
---|
| 891 | </junit> |
---|
| 892 | </target> |
---|
| 893 | <!-- |
---|
[11] | 894 | =============== |
---|
| 895 | JAVADOC SECTION |
---|
| 896 | =============== |
---|
| 897 | --> |
---|
[19] | 898 | <target depends="init" if="have.sources" name="-javadoc-build"> |
---|
[11] | 899 | <mkdir dir="${dist.javadoc.dir}"/> |
---|
[26] | 900 | <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] | 901 | <classpath> |
---|
| 902 | <path path="${javac.classpath}"/> |
---|
| 903 | </classpath> |
---|
[32] | 904 | <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}"> |
---|
[11] | 905 | <filename name="**/*.java"/> |
---|
| 906 | </fileset> |
---|
[19] | 907 | <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> |
---|
| 908 | <include name="**/*.java"/> |
---|
[32] | 909 | <exclude name="*.java"/> |
---|
[19] | 910 | </fileset> |
---|
[11] | 911 | </javadoc> |
---|
[32] | 912 | <copy todir="${dist.javadoc.dir}"> |
---|
| 913 | <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> |
---|
| 914 | <filename name="**/doc-files/**"/> |
---|
| 915 | </fileset> |
---|
| 916 | <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> |
---|
| 917 | <include name="**/doc-files/**"/> |
---|
| 918 | </fileset> |
---|
| 919 | </copy> |
---|
[11] | 920 | </target> |
---|
| 921 | <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> |
---|
| 922 | <nbbrowse file="${dist.javadoc.dir}/index.html"/> |
---|
| 923 | </target> |
---|
| 924 | <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> |
---|
| 925 | <!-- |
---|
| 926 | ========================= |
---|
| 927 | JUNIT COMPILATION SECTION |
---|
| 928 | ========================= |
---|
| 929 | --> |
---|
| 930 | <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> |
---|
| 931 | <mkdir dir="${build.test.classes.dir}"/> |
---|
| 932 | </target> |
---|
| 933 | <target name="-pre-compile-test"> |
---|
| 934 | <!-- Empty placeholder for easier customization. --> |
---|
| 935 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 936 | </target> |
---|
| 937 | <target if="do.depend.true" name="-compile-test-depend"> |
---|
| 938 | <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> |
---|
| 939 | </target> |
---|
[32] | 940 | <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> |
---|
[19] | 941 | <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] | 942 | <copy todir="${build.test.classes.dir}"> |
---|
| 943 | <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> |
---|
| 944 | </copy> |
---|
| 945 | </target> |
---|
| 946 | <target name="-post-compile-test"> |
---|
| 947 | <!-- Empty placeholder for easier customization. --> |
---|
| 948 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 949 | </target> |
---|
| 950 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> |
---|
| 951 | <target name="-pre-compile-test-single"> |
---|
| 952 | <!-- Empty placeholder for easier customization. --> |
---|
| 953 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 954 | </target> |
---|
[32] | 955 | <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> |
---|
[11] | 956 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> |
---|
| 957 | <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> |
---|
[19] | 958 | <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] | 959 | <copy todir="${build.test.classes.dir}"> |
---|
| 960 | <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> |
---|
| 961 | </copy> |
---|
| 962 | </target> |
---|
| 963 | <target name="-post-compile-test-single"> |
---|
| 964 | <!-- Empty placeholder for easier customization. --> |
---|
| 965 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 966 | </target> |
---|
| 967 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> |
---|
| 968 | <!-- |
---|
| 969 | ======================= |
---|
| 970 | JUNIT EXECUTION SECTION |
---|
| 971 | ======================= |
---|
| 972 | --> |
---|
| 973 | <target depends="init" if="have.tests" name="-pre-test-run"> |
---|
| 974 | <mkdir dir="${build.test.results.dir}"/> |
---|
| 975 | </target> |
---|
| 976 | <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> |
---|
| 977 | <j2seproject3:junit testincludes="**/*Test.java"/> |
---|
| 978 | </target> |
---|
| 979 | <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> |
---|
[19] | 980 | <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> |
---|
[11] | 981 | </target> |
---|
| 982 | <target depends="init" if="have.tests" name="test-report"/> |
---|
| 983 | <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> |
---|
| 984 | <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> |
---|
| 985 | <target depends="init" if="have.tests" name="-pre-test-run-single"> |
---|
| 986 | <mkdir dir="${build.test.results.dir}"/> |
---|
| 987 | </target> |
---|
| 988 | <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> |
---|
| 989 | <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> |
---|
| 990 | <j2seproject3:junit excludes="" includes="${test.includes}"/> |
---|
| 991 | </target> |
---|
| 992 | <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> |
---|
[19] | 993 | <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> |
---|
[11] | 994 | </target> |
---|
[19] | 995 | <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] | 996 | <!-- |
---|
| 997 | ======================= |
---|
| 998 | JUNIT DEBUGGING SECTION |
---|
| 999 | ======================= |
---|
| 1000 | --> |
---|
| 1001 | <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test"> |
---|
| 1002 | <fail unless="test.class">Must select one file in the IDE or set test.class</fail> |
---|
| 1003 | <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/> |
---|
| 1004 | <delete file="${test.report.file}"/> |
---|
| 1005 | <mkdir dir="${build.test.results.dir}"/> |
---|
| 1006 | <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}"> |
---|
| 1007 | <customize> |
---|
| 1008 | <syspropertyset> |
---|
| 1009 | <propertyref prefix="test-sys-prop."/> |
---|
| 1010 | <mapper from="test-sys-prop.*" to="*" type="glob"/> |
---|
| 1011 | </syspropertyset> |
---|
| 1012 | <arg value="${test.class}"/> |
---|
| 1013 | <arg value="showoutput=true"/> |
---|
| 1014 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/> |
---|
| 1015 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/> |
---|
| 1016 | </customize> |
---|
| 1017 | </j2seproject3:debug> |
---|
| 1018 | </target> |
---|
| 1019 | <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> |
---|
| 1020 | <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> |
---|
| 1021 | </target> |
---|
[19] | 1022 | <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> |
---|
[11] | 1023 | <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> |
---|
| 1024 | <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> |
---|
| 1025 | </target> |
---|
| 1026 | <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> |
---|
| 1027 | <!-- |
---|
| 1028 | ========================= |
---|
| 1029 | APPLET EXECUTION SECTION |
---|
| 1030 | ========================= |
---|
| 1031 | --> |
---|
| 1032 | <target depends="init,compile-single" name="run-applet"> |
---|
| 1033 | <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> |
---|
| 1034 | <j2seproject1:java classname="sun.applet.AppletViewer"> |
---|
| 1035 | <customize> |
---|
| 1036 | <arg value="${applet.url}"/> |
---|
| 1037 | </customize> |
---|
| 1038 | </j2seproject1:java> |
---|
| 1039 | </target> |
---|
| 1040 | <!-- |
---|
| 1041 | ========================= |
---|
| 1042 | APPLET DEBUGGING SECTION |
---|
| 1043 | ========================= |
---|
| 1044 | --> |
---|
| 1045 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> |
---|
| 1046 | <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> |
---|
| 1047 | <j2seproject3:debug classname="sun.applet.AppletViewer"> |
---|
| 1048 | <customize> |
---|
| 1049 | <arg value="${applet.url}"/> |
---|
| 1050 | </customize> |
---|
| 1051 | </j2seproject3:debug> |
---|
| 1052 | </target> |
---|
| 1053 | <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> |
---|
| 1054 | <!-- |
---|
| 1055 | =============== |
---|
| 1056 | CLEANUP SECTION |
---|
| 1057 | =============== |
---|
| 1058 | --> |
---|
[19] | 1059 | <target name="-deps-clean-init" unless="built-clean.properties"> |
---|
| 1060 | <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/> |
---|
| 1061 | <delete file="${built-clean.properties}" quiet="true"/> |
---|
| 1062 | </target> |
---|
| 1063 | <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> |
---|
| 1064 | <echo level="warn" message="Cycle detected: fmgVen was already built"/> |
---|
| 1065 | </target> |
---|
| 1066 | <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> |
---|
| 1067 | <mkdir dir="${build.dir}"/> |
---|
| 1068 | <touch file="${built-clean.properties}" verbose="false"/> |
---|
| 1069 | <property file="${built-clean.properties}" prefix="already.built.clean."/> |
---|
| 1070 | <antcall target="-warn-already-built-clean"/> |
---|
| 1071 | <propertyfile file="${built-clean.properties}"> |
---|
| 1072 | <entry key="${basedir}" value=""/> |
---|
| 1073 | </propertyfile> |
---|
| 1074 | </target> |
---|
[11] | 1075 | <target depends="init" name="-do-clean"> |
---|
| 1076 | <delete dir="${build.dir}"/> |
---|
[19] | 1077 | <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/> |
---|
[11] | 1078 | </target> |
---|
| 1079 | <target name="-post-clean"> |
---|
| 1080 | <!-- Empty placeholder for easier customization. --> |
---|
| 1081 | <!-- You can override this target in the ../build.xml file. --> |
---|
| 1082 | </target> |
---|
| 1083 | <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> |
---|
[19] | 1084 | <target name="-check-call-dep"> |
---|
| 1085 | <property file="${call.built.properties}" prefix="already.built."/> |
---|
| 1086 | <condition property="should.call.dep"> |
---|
| 1087 | <not> |
---|
| 1088 | <isset property="already.built.${call.subproject}"/> |
---|
| 1089 | </not> |
---|
| 1090 | </condition> |
---|
| 1091 | </target> |
---|
| 1092 | <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep"> |
---|
| 1093 | <ant antfile="${call.script}" inheritall="false" target="${call.target}"> |
---|
| 1094 | <propertyset> |
---|
| 1095 | <propertyref prefix="transfer."/> |
---|
| 1096 | <mapper from="transfer.*" to="*" type="glob"/> |
---|
| 1097 | </propertyset> |
---|
| 1098 | </ant> |
---|
| 1099 | </target> |
---|
[11] | 1100 | </project> |
---|