44 </target> |
44 </target> |
45 <target depends="-pre-init,-init-private" name="-init-user"> |
45 <target depends="-pre-init,-init-private" name="-init-user"> |
46 <property file="${user.properties.file}"/> |
46 <property file="${user.properties.file}"/> |
47 <!-- The two properties below are usually overridden --> |
47 <!-- The two properties below are usually overridden --> |
48 <!-- by the active platform. Just a fallback. --> |
48 <!-- by the active platform. Just a fallback. --> |
49 <property name="default.javac.source" value="1.4"/> |
49 <property name="default.javac.source" value="1.6"/> |
50 <property name="default.javac.target" value="1.4"/> |
50 <property name="default.javac.target" value="1.6"/> |
51 </target> |
51 </target> |
52 <target depends="-pre-init,-init-private,-init-user" name="-init-project"> |
52 <target depends="-pre-init,-init-private,-init-user" name="-init-project"> |
53 <property file="nbproject/configs/${config}.properties"/> |
53 <property file="nbproject/configs/${config}.properties"/> |
54 <property file="nbproject/project.properties"/> |
54 <property file="nbproject/project.properties"/> |
55 </target> |
55 </target> |
156 <property name="javac.debug" value="true"/> |
156 <property name="javac.debug" value="true"/> |
157 <property name="javadoc.preview" value="true"/> |
157 <property name="javadoc.preview" value="true"/> |
158 <property name="application.args" value=""/> |
158 <property name="application.args" value=""/> |
159 <property name="source.encoding" value="${file.encoding}"/> |
159 <property name="source.encoding" value="${file.encoding}"/> |
160 <property name="runtime.encoding" value="${source.encoding}"/> |
160 <property name="runtime.encoding" value="${source.encoding}"/> |
|
161 <property name="manifest.encoding" value="${source.encoding}"/> |
161 <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> |
162 <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> |
162 <and> |
163 <and> |
163 <isset property="javadoc.encoding"/> |
164 <isset property="javadoc.encoding"/> |
164 <not> |
165 <not> |
165 <equals arg1="${javadoc.encoding}" arg2=""/> |
166 <equals arg1="${javadoc.encoding}" arg2=""/> |
191 <not> |
192 <not> |
192 <os family="unix"/> |
193 <os family="unix"/> |
193 </not> |
194 </not> |
194 </and> |
195 </and> |
195 </condition> |
196 </condition> |
196 <property name="javac.fork" value="${jdkBug6558476}"/> |
197 <condition else="false" property="javac.fork"> |
|
198 <or> |
|
199 <istrue value="${jdkBug6558476}"/> |
|
200 <istrue value="${javac.external.vm}"/> |
|
201 </or> |
|
202 </condition> |
197 <property name="jar.index" value="false"/> |
203 <property name="jar.index" value="false"/> |
198 <property name="jar.index.metainf" value="${jar.index}"/> |
204 <property name="jar.index.metainf" value="${jar.index}"/> |
199 <property name="copylibs.rebase" value="true"/> |
205 <property name="copylibs.rebase" value="true"/> |
200 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> |
206 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> |
201 <condition property="junit.available"> |
207 <condition property="junit.available"> |
217 <istrue value="${junit+testng.available}"/> |
223 <istrue value="${junit+testng.available}"/> |
218 </condition> |
224 </condition> |
219 <condition else="" property="testng.debug.mode" value="-mixed"> |
225 <condition else="" property="testng.debug.mode" value="-mixed"> |
220 <istrue value="${junit+testng.available}"/> |
226 <istrue value="${junit+testng.available}"/> |
221 </condition> |
227 </condition> |
|
228 <property name="java.failonerror" value="true"/> |
222 </target> |
229 </target> |
223 <target name="-post-init"> |
230 <target name="-post-init"> |
224 <!-- Empty placeholder for easier customization. --> |
231 <!-- Empty placeholder for easier customization. --> |
225 <!-- You can override this target in the ../build.xml file. --> |
232 <!-- You can override this target in the ../build.xml file. --> |
226 </target> |
233 </target> |
695 <attribute default="${main.class}" name="classname"/> |
702 <attribute default="${main.class}" name="classname"/> |
696 <element name="customize" optional="true"/> |
703 <element name="customize" optional="true"/> |
697 <sequential> |
704 <sequential> |
698 <property environment="env"/> |
705 <property environment="env"/> |
699 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> |
706 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> |
700 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}"> |
707 <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}"> |
701 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
708 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
702 <jvmarg value="${profiler.info.jvmargs.agent}"/> |
709 <jvmarg value="${profiler.info.jvmargs.agent}"/> |
703 <jvmarg line="${profiler.info.jvmargs}"/> |
710 <jvmarg line="${profiler.info.jvmargs}"/> |
704 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> |
711 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> |
705 <arg line="${application.args}"/> |
712 <arg line="${application.args}"/> |
770 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> |
777 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> |
771 <attribute default="${main.class}" name="classname"/> |
778 <attribute default="${main.class}" name="classname"/> |
772 <attribute default="${debug.classpath}" name="classpath"/> |
779 <attribute default="${debug.classpath}" name="classpath"/> |
773 <element name="customize" optional="true"/> |
780 <element name="customize" optional="true"/> |
774 <sequential> |
781 <sequential> |
775 <java classname="@{classname}" dir="${work.dir}" fork="true"> |
782 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true"> |
776 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
783 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
777 <jvmarg line="${debug-args-line}"/> |
784 <jvmarg line="${debug-args-line}"/> |
778 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> |
785 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> |
779 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> |
786 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> |
780 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> |
787 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> |
797 <attribute default="${main.class}" name="classname"/> |
804 <attribute default="${main.class}" name="classname"/> |
798 <attribute default="${run.classpath}" name="classpath"/> |
805 <attribute default="${run.classpath}" name="classpath"/> |
799 <attribute default="jvm" name="jvm"/> |
806 <attribute default="jvm" name="jvm"/> |
800 <element name="customize" optional="true"/> |
807 <element name="customize" optional="true"/> |
801 <sequential> |
808 <sequential> |
802 <java classname="@{classname}" dir="${work.dir}" fork="true"> |
809 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true"> |
803 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
810 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
804 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> |
811 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> |
805 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> |
812 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> |
806 <jvmarg line="${run.jvmargs}"/> |
813 <jvmarg line="${run.jvmargs}"/> |
807 <jvmarg line="${run.jvmargs.ide}"/> |
814 <jvmarg line="${run.jvmargs.ide}"/> |
836 </filtermapper> |
843 </filtermapper> |
837 <globmapper from="*" to="lib/*"/> |
844 <globmapper from="*" to="lib/*"/> |
838 </chainedmapper> |
845 </chainedmapper> |
839 </pathconvert> |
846 </pathconvert> |
840 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> |
847 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> |
841 <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}"> |
848 <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}"> |
842 <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> |
849 <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> |
843 <manifest> |
850 <manifest> |
844 <attribute name="Class-Path" value="${jar.classpath}"/> |
851 <attribute name="Class-Path" value="${jar.classpath}"/> |
845 <customize/> |
852 <customize/> |
846 </manifest> |
853 </manifest> |
973 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> |
980 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> |
974 <touch file="${tmp.manifest.file}" verbose="false"/> |
981 <touch file="${tmp.manifest.file}" verbose="false"/> |
975 </target> |
982 </target> |
976 <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest"> |
983 <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest"> |
977 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> |
984 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> |
978 <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/> |
985 <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/> |
979 </target> |
986 </target> |
980 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass"> |
987 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass"> |
981 <manifest file="${tmp.manifest.file}" mode="update"> |
988 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> |
982 <attribute name="Main-Class" value="${main.class}"/> |
989 <attribute name="Main-Class" value="${main.class}"/> |
983 </manifest> |
990 </manifest> |
984 </target> |
991 </target> |
985 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile"> |
992 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile"> |
986 <manifest file="${tmp.manifest.file}" mode="update"> |
993 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> |
987 <attribute name="Profile" value="${javac.profile}"/> |
994 <attribute name="Profile" value="${javac.profile}"/> |
988 </manifest> |
995 </manifest> |
989 </target> |
996 </target> |
990 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen"> |
997 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen"> |
991 <basename file="${application.splash}" property="splashscreen.basename"/> |
998 <basename file="${application.splash}" property="splashscreen.basename"/> |
992 <mkdir dir="${build.classes.dir}/META-INF"/> |
999 <mkdir dir="${build.classes.dir}/META-INF"/> |
993 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> |
1000 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> |
994 <manifest file="${tmp.manifest.file}" mode="update"> |
1001 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> |
995 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> |
1002 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> |
996 </manifest> |
1003 </manifest> |
997 </target> |
1004 </target> |
998 <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs"> |
1005 <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs"> |
999 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/> |
1006 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/> |
1184 <antcall target="test-single"/> |
1191 <antcall target="test-single"/> |
1185 </target> |
1192 </target> |
1186 <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main"> |
1193 <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main"> |
1187 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
1194 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
1188 <startprofiler/> |
1195 <startprofiler/> |
1189 <antcal target="run-test-with-main"/> |
1196 <antcall target="run-test-with-main"/> |
1190 </target> |
1197 </target> |
1191 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent"> |
1198 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent"> |
1192 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> |
1199 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> |
1193 <startprofiler/> |
1200 <startprofiler/> |
1194 <antcall target="run-applet"/> |
1201 <antcall target="run-applet"/> |