@@ -47,8 +47,8 @@ is divided into following sections:
47
47
<property file =" ${user.properties.file}" />
48
48
<!-- The two properties below are usually overridden -->
49
49
<!-- by the active platform. Just a fallback. -->
50
- <property name =" default.javac.source" value =" 1.4 " />
51
- <property name =" default.javac.target" value =" 1.4 " />
50
+ <property name =" default.javac.source" value =" 1.6 " />
51
+ <property name =" default.javac.target" value =" 1.6 " />
52
52
</target >
53
53
<target depends =" -pre-init,-init-private,-init-user" name =" -init-project" >
54
54
<property file =" nbproject/configs/${config}.properties" />
@@ -77,7 +77,7 @@ is divided into following sections:
77
77
<and >
78
78
<isset property =" javac.profile" />
79
79
<length length =" 0" string =" ${javac.profile}" when =" greater" />
80
- <matches pattern =" 1\.[89](\..*)?" string =" ${javac.source}" />
80
+ <matches pattern =" (( 1\.[89])|9) (\..*)?" string =" ${javac.source}" />
81
81
</and >
82
82
</condition >
83
83
<condition property =" do.archive" >
@@ -122,9 +122,7 @@ is divided into following sections:
122
122
</and >
123
123
</condition >
124
124
<condition property =" have.tests" >
125
- <or >
126
- <available file =" ${test.src.dir}" />
127
- </or >
125
+ <or />
128
126
</condition >
129
127
<condition property =" have.sources" >
130
128
<or >
@@ -157,6 +155,7 @@ is divided into following sections:
157
155
<property name =" application.args" value =" " />
158
156
<property name =" source.encoding" value =" ${file.encoding}" />
159
157
<property name =" runtime.encoding" value =" ${source.encoding}" />
158
+ <property name =" manifest.encoding" value =" ${source.encoding}" />
160
159
<condition property =" javadoc.encoding.used" value =" ${javadoc.encoding}" >
161
160
<and >
162
161
<isset property =" javadoc.encoding" />
@@ -231,7 +230,6 @@ is divided into following sections:
231
230
</target >
232
231
<target depends =" -pre-init,-init-private,-init-user,-init-project,-do-init" name =" -init-check" >
233
232
<fail unless =" src.dir" >Must set src.dir</fail >
234
- <fail unless =" test.src.dir" >Must set test.src.dir</fail >
235
233
<fail unless =" build.dir" >Must set build.dir</fail >
236
234
<fail unless =" dist.dir" >Must set dist.dir</fail >
237
235
<fail unless =" build.classes.dir" >Must set build.classes.dir</fail >
@@ -413,9 +411,6 @@ is divided into following sections:
413
411
<property name =" junit.forkmode" value =" perTest" />
414
412
<junit dir =" ${work.dir}" errorproperty =" tests.failed" failureproperty =" tests.failed" fork =" true" forkmode =" ${junit.forkmode}" showoutput =" true" tempdir =" ${build.dir}" >
415
413
<batchtest todir =" ${build.test.results.dir}" >
416
- <fileset dir =" ${test.src.dir}" excludes =" @{excludes},${excludes}" includes =" @{includes}" >
417
- <filename name =" @{testincludes}" />
418
- </fileset >
419
414
<fileset dir =" ${build.test.classes.dir}" excludes =" @{excludes},${excludes},${test.binaryexcludes}" includes =" ${test.binaryincludes}" >
420
415
<filename name =" ${test.binarytestincludes}" />
421
416
</fileset >
@@ -444,11 +439,7 @@ is divided into following sections:
444
439
<condition else =" " property =" testng.methods.arg" value =" @{testincludes}.@{testmethods}" >
445
440
<isset property =" test.method" />
446
441
</condition >
447
- <union id =" test.set" >
448
- <fileset dir =" ${test.src.dir}" excludes =" @{excludes},**/*.xml,${excludes}" includes =" @{includes}" >
449
- <filename name =" @{testincludes}" />
450
- </fileset >
451
- </union >
442
+ <union id =" test.set" />
452
443
<taskdef classname =" org.testng.TestNGAntTask" classpath =" ${run.test.classpath}" name =" testng" />
453
444
<testng classfilesetref =" test.set" failureProperty =" tests.failed" listeners =" org.testng.reporters.VerboseReporter" methods =" ${testng.methods.arg}" mode =" ${testng.mode}" outputdir =" ${build.test.results.dir}" suitename =" pattypan" testname =" TestNG tests" workingDir =" ${work.dir}" >
454
445
<xmlfileset dir =" ${build.test.classes.dir}" includes =" @{testincludes}" />
@@ -557,9 +548,6 @@ is divided into following sections:
557
548
<property name =" junit.forkmode" value =" perTest" />
558
549
<junit dir =" ${work.dir}" errorproperty =" tests.failed" failureproperty =" tests.failed" fork =" true" forkmode =" ${junit.forkmode}" showoutput =" true" tempdir =" ${build.dir}" >
559
550
<batchtest todir =" ${build.test.results.dir}" >
560
- <fileset dir =" ${test.src.dir}" excludes =" @{excludes},${excludes}" includes =" @{includes}" >
561
- <filename name =" @{testincludes}" />
562
- </fileset >
563
551
<fileset dir =" ${build.test.classes.dir}" excludes =" @{excludes},${excludes},${test.binaryexcludes}" includes =" ${test.binaryincludes}" >
564
552
<filename name =" ${test.binarytestincludes}" />
565
553
</fileset >
@@ -841,7 +829,7 @@ is divided into following sections:
841
829
</chainedmapper >
842
830
</pathconvert >
843
831
<taskdef classname =" org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath =" ${libs.CopyLibs.classpath}" name =" copylibs" />
844
- <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}" >
832
+ <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}" >
845
833
<fileset dir =" ${build.classes.dir}" excludes =" ${dist.archive.excludes}" />
846
834
<manifest >
847
835
<attribute name =" Class-Path" value =" ${jar.classpath}" />
@@ -853,7 +841,7 @@ is divided into following sections:
853
841
</target >
854
842
<target name =" -init-presetdef-jar" >
855
843
<presetdef name =" jar" uri =" http://www.netbeans.org/ns/j2se-project/1" >
856
- <jar compress =" ${jar.compress}" index =" ${jar.index}" jarfile =" ${dist.jar}" >
844
+ <jar compress =" ${jar.compress}" index =" ${jar.index}" jarfile =" ${dist.jar}" manifestencoding = " UTF-8 " >
857
845
<j2seproject1 : fileset dir =" ${build.classes.dir}" excludes =" ${dist.archive.excludes}" />
858
846
</jar >
859
847
</presetdef >
@@ -976,23 +964,23 @@ is divided into following sections:
976
964
</target >
977
965
<target depends =" init" if =" do.archive+manifest.available" name =" -do-jar-copy-manifest" >
978
966
<tempfile deleteonexit =" true" destdir =" ${build.dir}" property =" tmp.manifest.file" />
979
- <copy file =" ${manifest.file}" tofile =" ${tmp.manifest.file}" />
967
+ <copy encoding = " ${manifest.encoding} " file =" ${manifest.file}" outputencoding = " UTF-8 " tofile =" ${tmp.manifest.file}" />
980
968
</target >
981
969
<target depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+main.class.available" name =" -do-jar-set-mainclass" >
982
- <manifest file =" ${tmp.manifest.file}" mode =" update" >
970
+ <manifest encoding = " UTF-8 " file =" ${tmp.manifest.file}" mode =" update" >
983
971
<attribute name =" Main-Class" value =" ${main.class}" />
984
972
</manifest >
985
973
</target >
986
974
<target depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+profile.available" name =" -do-jar-set-profile" >
987
- <manifest file =" ${tmp.manifest.file}" mode =" update" >
975
+ <manifest encoding = " UTF-8 " file =" ${tmp.manifest.file}" mode =" update" >
988
976
<attribute name =" Profile" value =" ${javac.profile}" />
989
977
</manifest >
990
978
</target >
991
979
<target depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+splashscreen.available" name =" -do-jar-set-splashscreen" >
992
980
<basename file =" ${application.splash}" property =" splashscreen.basename" />
993
981
<mkdir dir =" ${build.classes.dir}/META-INF" />
994
982
<copy failonerror =" false" file =" ${application.splash}" todir =" ${build.classes.dir}/META-INF" />
995
- <manifest file =" ${tmp.manifest.file}" mode =" update" >
983
+ <manifest encoding = " UTF-8 " file =" ${tmp.manifest.file}" mode =" update" >
996
984
<attribute name =" SplashScreen-Image" value =" META-INF/${splashscreen.basename}" />
997
985
</manifest >
998
986
</target >
@@ -1187,7 +1175,7 @@ is divided into following sections:
1187
1175
<target depends =" -profile-check" description =" Profile a selected class in the IDE." if =" profiler.configured" name =" profile-test-with-main" >
1188
1176
<fail unless =" run.class" >Must select one file in the IDE or set run.class</fail >
1189
1177
<startprofiler />
1190
- <antcal target =" run-test-with-main" />
1178
+ <antcall target =" run-test-with-main" />
1191
1179
</target >
1192
1180
<target depends =" -profile-check,-profile-applet-pre72" if =" profiler.configured" name =" profile-applet" unless =" profiler.info.jvmargs.agent" >
1193
1181
<fail unless =" applet.url" >Must select one file in the IDE or set applet.url</fail >
@@ -1251,13 +1239,11 @@ is divided into following sections:
1251
1239
<!-- You can override this target in the ../build.xml file. -->
1252
1240
</target >
1253
1241
<target if =" do.depend.true" name =" -compile-test-depend" >
1254
- <j2seproject3 : depend classpath =" ${javac.test.classpath}" destdir =" ${build.test.classes.dir}" srcdir =" ${test.src.dir} " />
1242
+ <j2seproject3 : depend classpath =" ${javac.test.classpath}" destdir =" ${build.test.classes.dir}" srcdir =" " />
1255
1243
</target >
1256
1244
<target depends =" init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if =" have.tests" name =" -do-compile-test" >
1257
- <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}" />
1258
- <copy todir =" ${build.test.classes.dir}" >
1259
- <fileset dir =" ${test.src.dir}" excludes =" ${build.classes.excludes},${excludes}" includes =" ${includes}" />
1260
- </copy >
1245
+ <j2seproject3 : javac apgeneratedsrcdir =" ${build.test.classes.dir}" classpath =" ${javac.test.classpath}" debug =" true" destdir =" ${build.test.classes.dir}" processorpath =" ${javac.test.processorpath}" srcdir =" " />
1246
+ <copy todir =" ${build.test.classes.dir}" />
1261
1247
</target >
1262
1248
<target name =" -post-compile-test" >
1263
1249
<!-- Empty placeholder for easier customization. -->
@@ -1271,10 +1257,8 @@ is divided into following sections:
1271
1257
<target depends =" init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if =" have.tests" name =" -do-compile-test-single" >
1272
1258
<fail unless =" javac.includes" >Must select some files in the IDE or set javac.includes</fail >
1273
1259
<j2seproject3 : force-recompile destdir =" ${build.test.classes.dir}" />
1274
- <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}" />
1275
- <copy todir =" ${build.test.classes.dir}" >
1276
- <fileset dir =" ${test.src.dir}" excludes =" ${build.classes.excludes},${excludes}" includes =" ${includes}" />
1277
- </copy >
1260
+ <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 =" " srcdir =" " />
1261
+ <copy todir =" ${build.test.classes.dir}" />
1278
1262
</target >
1279
1263
<target name =" -post-compile-test-single" >
1280
1264
<!-- Empty placeholder for easier customization. -->
@@ -1390,8 +1374,6 @@ is divided into following sections:
1390
1374
</propertyfile >
1391
1375
</target >
1392
1376
<target depends =" init" name =" -do-clean" >
1393
- <property name =" store.dir" value =" store" />
1394
- <delete dir =" ${store.dir}" />
1395
1377
<delete dir =" ${build.dir}" />
1396
1378
<delete dir =" ${dist.dir}" followsymlinks =" false" includeemptydirs =" true" />
1397
1379
</target >
0 commit comments