|
|
@ -46,8 +46,8 @@ is divided into following sections:
|
|
|
|
<property file="${user.properties.file}"/>
|
|
|
|
<property file="${user.properties.file}"/>
|
|
|
|
<!-- The two properties below are usually overridden -->
|
|
|
|
<!-- The two properties below are usually overridden -->
|
|
|
|
<!-- by the active platform. Just a fallback. -->
|
|
|
|
<!-- by the active platform. Just a fallback. -->
|
|
|
|
<property name="default.javac.source" value="1.4"/>
|
|
|
|
<property name="default.javac.source" value="1.6"/>
|
|
|
|
<property name="default.javac.target" value="1.4"/>
|
|
|
|
<property name="default.javac.target" value="1.6"/>
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
|
<target depends="-pre-init,-init-private,-init-user" name="-init-project">
|
|
|
|
<target depends="-pre-init,-init-private,-init-user" name="-init-project">
|
|
|
|
<property file="nbproject/configs/${config}.properties"/>
|
|
|
|
<property file="nbproject/configs/${config}.properties"/>
|
|
|
@ -76,7 +76,7 @@ is divided into following sections:
|
|
|
|
<and>
|
|
|
|
<and>
|
|
|
|
<isset property="javac.profile"/>
|
|
|
|
<isset property="javac.profile"/>
|
|
|
|
<length length="0" string="${javac.profile}" when="greater"/>
|
|
|
|
<length length="0" string="${javac.profile}" when="greater"/>
|
|
|
|
<matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
|
|
|
|
<matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/>
|
|
|
|
</and>
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
</condition>
|
|
|
|
<condition property="do.archive">
|
|
|
|
<condition property="do.archive">
|
|
|
@ -156,6 +156,7 @@ is divided into following sections:
|
|
|
|
<property name="application.args" value=""/>
|
|
|
|
<property name="application.args" value=""/>
|
|
|
|
<property name="source.encoding" value="${file.encoding}"/>
|
|
|
|
<property name="source.encoding" value="${file.encoding}"/>
|
|
|
|
<property name="runtime.encoding" value="${source.encoding}"/>
|
|
|
|
<property name="runtime.encoding" value="${source.encoding}"/>
|
|
|
|
|
|
|
|
<property name="manifest.encoding" value="${source.encoding}"/>
|
|
|
|
<condition property="javadoc.encoding.used" value="${javadoc.encoding}">
|
|
|
|
<condition property="javadoc.encoding.used" value="${javadoc.encoding}">
|
|
|
|
<and>
|
|
|
|
<and>
|
|
|
|
<isset property="javadoc.encoding"/>
|
|
|
|
<isset property="javadoc.encoding"/>
|
|
|
@ -191,7 +192,12 @@ is divided into following sections:
|
|
|
|
</not>
|
|
|
|
</not>
|
|
|
|
</and>
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
</condition>
|
|
|
|
<property name="javac.fork" value="${jdkBug6558476}"/>
|
|
|
|
<condition else="false" property="javac.fork">
|
|
|
|
|
|
|
|
<or>
|
|
|
|
|
|
|
|
<istrue value="${jdkBug6558476}"/>
|
|
|
|
|
|
|
|
<istrue value="${javac.external.vm}"/>
|
|
|
|
|
|
|
|
</or>
|
|
|
|
|
|
|
|
</condition>
|
|
|
|
<property name="jar.index" value="false"/>
|
|
|
|
<property name="jar.index" value="false"/>
|
|
|
|
<property name="jar.index.metainf" value="${jar.index}"/>
|
|
|
|
<property name="jar.index.metainf" value="${jar.index}"/>
|
|
|
|
<property name="copylibs.rebase" value="true"/>
|
|
|
|
<property name="copylibs.rebase" value="true"/>
|
|
|
@ -217,6 +223,7 @@ is divided into following sections:
|
|
|
|
<condition else="" property="testng.debug.mode" value="-mixed">
|
|
|
|
<condition else="" property="testng.debug.mode" value="-mixed">
|
|
|
|
<istrue value="${junit+testng.available}"/>
|
|
|
|
<istrue value="${junit+testng.available}"/>
|
|
|
|
</condition>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<property name="java.failonerror" value="true"/>
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
|
<target name="-post-init">
|
|
|
|
<target name="-post-init">
|
|
|
|
<!-- Empty placeholder for easier customization. -->
|
|
|
|
<!-- Empty placeholder for easier customization. -->
|
|
|
@ -693,7 +700,7 @@ is divided into following sections:
|
|
|
|
<sequential>
|
|
|
|
<sequential>
|
|
|
|
<property environment="env"/>
|
|
|
|
<property environment="env"/>
|
|
|
|
<resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
|
|
|
|
<resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
|
|
|
|
<java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
|
|
|
|
<java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
|
|
|
|
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
|
|
|
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
|
|
|
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
|
|
|
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
|
|
|
<jvmarg line="${profiler.info.jvmargs}"/>
|
|
|
|
<jvmarg line="${profiler.info.jvmargs}"/>
|
|
|
@ -768,7 +775,7 @@ is divided into following sections:
|
|
|
|
<attribute default="${debug.classpath}" name="classpath"/>
|
|
|
|
<attribute default="${debug.classpath}" name="classpath"/>
|
|
|
|
<element name="customize" optional="true"/>
|
|
|
|
<element name="customize" optional="true"/>
|
|
|
|
<sequential>
|
|
|
|
<sequential>
|
|
|
|
<java classname="@{classname}" dir="${work.dir}" fork="true">
|
|
|
|
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
|
|
|
|
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
|
|
|
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
|
|
|
<jvmarg line="${debug-args-line}"/>
|
|
|
|
<jvmarg line="${debug-args-line}"/>
|
|
|
|
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
|
|
|
|
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
|
|
|
@ -795,7 +802,7 @@ is divided into following sections:
|
|
|
|
<attribute default="jvm" name="jvm"/>
|
|
|
|
<attribute default="jvm" name="jvm"/>
|
|
|
|
<element name="customize" optional="true"/>
|
|
|
|
<element name="customize" optional="true"/>
|
|
|
|
<sequential>
|
|
|
|
<sequential>
|
|
|
|
<java classname="@{classname}" dir="${work.dir}" fork="true">
|
|
|
|
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
|
|
|
|
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
|
|
|
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
|
|
|
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
|
|
|
|
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
|
|
|
|
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
|
|
|
|
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
|
|
|
@ -834,7 +841,7 @@ is divided into following sections:
|
|
|
|
</chainedmapper>
|
|
|
|
</chainedmapper>
|
|
|
|
</pathconvert>
|
|
|
|
</pathconvert>
|
|
|
|
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
|
|
|
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
|
|
|
<copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
|
|
|
<copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
|
|
|
<fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
|
|
|
<fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
|
|
|
<manifest>
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Class-Path" value="${jar.classpath}"/>
|
|
|
|
<attribute name="Class-Path" value="${jar.classpath}"/>
|
|
|
@ -846,7 +853,7 @@ is divided into following sections:
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
|
<target name="-init-presetdef-jar">
|
|
|
|
<target name="-init-presetdef-jar">
|
|
|
|
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
|
|
|
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
|
|
|
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
|
|
|
|
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">
|
|
|
|
<j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
|
|
|
<j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
|
|
|
</jar>
|
|
|
|
</jar>
|
|
|
|
</presetdef>
|
|
|
|
</presetdef>
|
|
|
@ -969,15 +976,15 @@ is divided into following sections:
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
|
<target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
|
|
|
|
<target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
|
|
|
|
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
|
|
|
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
|
|
|
<copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
|
|
|
|
<copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
|
|
|
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
|
|
|
|
<manifest file="${tmp.manifest.file}" mode="update">
|
|
|
|
<manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
|
|
|
|
<attribute name="Main-Class" value="${main.class}"/>
|
|
|
|
<attribute name="Main-Class" value="${main.class}"/>
|
|
|
|
</manifest>
|
|
|
|
</manifest>
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
|
|
|
|
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
|
|
|
|
<manifest file="${tmp.manifest.file}" mode="update">
|
|
|
|
<manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
|
|
|
|
<attribute name="Profile" value="${javac.profile}"/>
|
|
|
|
<attribute name="Profile" value="${javac.profile}"/>
|
|
|
|
</manifest>
|
|
|
|
</manifest>
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
@ -985,7 +992,7 @@ is divided into following sections:
|
|
|
|
<basename file="${application.splash}" property="splashscreen.basename"/>
|
|
|
|
<basename file="${application.splash}" property="splashscreen.basename"/>
|
|
|
|
<mkdir dir="${build.classes.dir}/META-INF"/>
|
|
|
|
<mkdir dir="${build.classes.dir}/META-INF"/>
|
|
|
|
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
|
|
|
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
|
|
|
<manifest file="${tmp.manifest.file}" mode="update">
|
|
|
|
<manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
|
|
|
|
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
|
|
|
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
|
|
|
</manifest>
|
|
|
|
</manifest>
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
@ -1180,7 +1187,7 @@ is divided into following sections:
|
|
|
|
<target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
|
|
|
|
<target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
|
|
|
|
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
|
|
|
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
|
|
|
<startprofiler/>
|
|
|
|
<startprofiler/>
|
|
|
|
<antcal target="run-test-with-main"/>
|
|
|
|
<antcall target="run-test-with-main"/>
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
|
<target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
|
|
|
|
<target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
|
|
|
|
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
|
|
|
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
|
|
|