@@ -72,8 +72,8 @@ is divided into following sections:
7272 <property  file =" ${user.properties.file}" 
7373 <!--  The two properties below are usually overridden --> 
7474 <!--  by the active platform. Just a fallback. --> 
75-  <property  name =" default.javac.source" value =" 1.4 " 
76-  <property  name =" default.javac.target" value =" 1.4 " 
75+  <property  name =" default.javac.source" value =" 1.6 " 
76+  <property  name =" default.javac.target" value =" 1.6 " 
7777 </target >
7878 <target  depends =" -pre-init,-init-private,-init-libraries,-init-user" name =" -init-project" 
7979 <property  file =" nbproject/configs/${config}.properties" 
@@ -102,7 +102,7 @@ is divided into following sections:
102102 <and >
103103 <isset  property =" javac.profile" 
104104 <length  length =" 0" string =" ${javac.profile}" when =" greater" 
105-  <matches  pattern =" 1\.[89](\..*)?" string =" ${javac.source}" 
105+  <matches  pattern =" (( 1\.[89])|9) (\..*)?" string =" ${javac.source}" 
106106 </and >
107107 </condition >
108108 <condition  property =" do.archive" 
@@ -183,6 +183,7 @@ is divided into following sections:
183183 <property  name =" application.args" value =" " 
184184 <property  name =" source.encoding" value =" ${file.encoding}" 
185185 <property  name =" runtime.encoding" value =" ${source.encoding}" 
186+  <property  name =" manifest.encoding" value =" ${source.encoding}" 
186187 <condition  property =" javadoc.encoding.used" value =" ${javadoc.encoding}" 
187188 <and >
188189 <isset  property =" javadoc.encoding" 
@@ -218,7 +219,12 @@ is divided into following sections:
218219 </not >
219220 </and >
220221 </condition >
221-  <property  name =" javac.fork" value =" ${jdkBug6558476}" 
222+  <condition  else =" false" property =" javac.fork" 
223+  <or >
224+  <istrue  value =" ${jdkBug6558476}" 
225+  <istrue  value =" ${javac.external.vm}" 
226+  </or >
227+  </condition >
222228 <property  name =" jar.index" value =" false" 
223229 <property  name =" jar.index.metainf" value =" ${jar.index}" 
224230 <property  name =" copylibs.rebase" value =" true" 
@@ -244,6 +250,7 @@ is divided into following sections:
244250 <condition  else =" " property =" testng.debug.mode" value =" -mixed" 
245251 <istrue  value =" ${junit+testng.available}" 
246252 </condition >
253+  <property  name =" java.failonerror" value =" true" 
247254 </target >
248255 <target  name =" -post-init" 
249256 <!--  Empty placeholder for easier customization. --> 
@@ -721,7 +728,7 @@ is divided into following sections:
721728 <sequential >
722729 <property  environment =" env" 
723730 <resolve  name =" profiler.current.path" value =" ${profiler.info.pathvar}" 
724-  <java  classname =" @{classname}" dir =" ${profiler.info.dir}" fork =" true" jvm =" ${profiler.info.jvm}" 
731+  <java  classname =" @{classname}" dir =" ${profiler.info.dir}" failonerror = " ${java.failonerror} " fork =" true" jvm =" ${profiler.info.jvm}" 
725732 <jvmarg  line =" ${endorsed.classpath.cmd.line.arg}" 
726733 <jvmarg  value =" ${profiler.info.jvmargs.agent}" 
727734 <jvmarg  line =" ${profiler.info.jvmargs}" 
@@ -796,7 +803,7 @@ is divided into following sections:
796803 <attribute  default =" ${debug.classpath}" name =" classpath" 
797804 <element  name =" customize" optional =" true" 
798805 <sequential >
799-  <java  classname =" @{classname}" dir =" ${work.dir}" fork =" true" 
806+  <java  classname =" @{classname}" dir =" ${work.dir}" failonerror = " ${java.failonerror} " fork =" true" 
800807 <jvmarg  line =" ${endorsed.classpath.cmd.line.arg}" 
801808 <jvmarg  line =" ${debug-args-line}" 
802809 <jvmarg  value =" -Xrunjdwp:transport=${debug-transport},address=${jpda.address}" 
@@ -823,7 +830,7 @@ is divided into following sections:
823830 <attribute  default =" jvm" name =" jvm" 
824831 <element  name =" customize" optional =" true" 
825832 <sequential >
826-  <java  classname =" @{classname}" dir =" ${work.dir}" fork =" true" 
833+  <java  classname =" @{classname}" dir =" ${work.dir}" failonerror = " ${java.failonerror} " fork =" true" 
827834 <jvmarg  line =" ${endorsed.classpath.cmd.line.arg}" 
828835 <jvmarg  value =" -Dfile.encoding=${runtime.encoding}" 
829836 <redirector  errorencoding =" ${runtime.encoding}" inputencoding =" ${runtime.encoding}" outputencoding =" ${runtime.encoding}" 
@@ -862,7 +869,7 @@ is divided into following sections:
862869 </chainedmapper >
863870 </pathconvert >
864871 <taskdef  classname =" org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath =" ${libs.CopyLibs.classpath}" name =" copylibs" 
865-  <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}" 
872+  <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}" 
866873 <fileset  dir =" ${build.classes.dir}" excludes =" ${dist.archive.excludes}" 
867874 <manifest >
868875 <attribute  name =" Class-Path" value =" ${jar.classpath}" 
@@ -874,7 +881,7 @@ is divided into following sections:
874881 </target >
875882 <target  name =" -init-presetdef-jar" 
876883 <presetdef  name =" jar" uri =" http://www.netbeans.org/ns/j2se-project/1" 
877-  <jar  compress =" ${jar.compress}" index =" ${jar.index}" jarfile =" ${dist.jar}" 
884+  <jar  compress =" ${jar.compress}" index =" ${jar.index}" jarfile =" ${dist.jar}" manifestencoding = " UTF-8 " 
878885 <j2seproject1 : fileset  dir =" ${build.classes.dir}" excludes =" ${dist.archive.excludes}" 
879886 </jar >
880887 </presetdef >
@@ -998,23 +1005,23 @@ is divided into following sections:
9981005 </target >
9991006 <target  depends =" init" if =" do.archive+manifest.available" name =" -do-jar-copy-manifest" 
10001007 <tempfile  deleteonexit =" true" destdir =" ${build.dir}" property =" tmp.manifest.file" 
1001-  <copy  file =" ${manifest.file}" tofile =" ${tmp.manifest.file}" 
1008+  <copy  encoding = " ${manifest.encoding} " file =" ${manifest.file}" outputencoding = " UTF-8 " tofile =" ${tmp.manifest.file}" 
10021009 </target >
10031010 <target  depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+main.class.available" name =" -do-jar-set-mainclass" 
1004-  <manifest  file =" ${tmp.manifest.file}" mode =" update" 
1011+  <manifest  encoding = " UTF-8 " file =" ${tmp.manifest.file}" mode =" update" 
10051012 <attribute  name =" Main-Class" value =" ${main.class}" 
10061013 </manifest >
10071014 </target >
10081015 <target  depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+profile.available" name =" -do-jar-set-profile" 
1009-  <manifest  file =" ${tmp.manifest.file}" mode =" update" 
1016+  <manifest  encoding = " UTF-8 " file =" ${tmp.manifest.file}" mode =" update" 
10101017 <attribute  name =" Profile" value =" ${javac.profile}" 
10111018 </manifest >
10121019 </target >
10131020 <target  depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+splashscreen.available" name =" -do-jar-set-splashscreen" 
10141021 <basename  file =" ${application.splash}" property =" splashscreen.basename" 
10151022 <mkdir  dir =" ${build.classes.dir}/META-INF" 
10161023 <copy  failonerror =" false" file =" ${application.splash}" todir =" ${build.classes.dir}/META-INF" 
1017-  <manifest  file =" ${tmp.manifest.file}" mode =" update" 
1024+  <manifest  encoding = " UTF-8 " file =" ${tmp.manifest.file}" mode =" update" 
10181025 <attribute  name =" SplashScreen-Image" value =" META-INF/${splashscreen.basename}" 
10191026 </manifest >
10201027 </target >
@@ -1209,7 +1216,7 @@ is divided into following sections:
12091216 <target  depends =" -profile-check" description =" Profile a selected class in the IDE." if =" profiler.configured" name =" profile-test-with-main" 
12101217 <fail  unless =" run.class" fail >
12111218 <startprofiler />
1212-  <antcal  target =" run-test-with-main" 
1219+  <antcall  target =" run-test-with-main" 
12131220 </target >
12141221 <target  depends =" -profile-check,-profile-applet-pre72" if =" profiler.configured" name =" profile-applet" unless =" profiler.info.jvmargs.agent" 
12151222 <fail  unless =" applet.url" fail >
0 commit comments