135
135
<condition property =" do.display.browser" >
136
136
<istrue value =" ${display.browser}" />
137
137
</condition >
138
+ <condition property =" do.display.browser.debug.old" >
139
+ <and >
140
+ <isset property =" do.display.browser" />
141
+ <not >
142
+ <isset property =" do.debug.client" />
143
+ </not >
144
+ <not >
145
+ <isset property =" browser.context" />
146
+ </not >
147
+ </and >
148
+ </condition >
138
149
<condition property =" do.display.browser.debug" >
139
150
<and >
140
151
<isset property =" do.display.browser" />
141
152
<not >
142
153
<isset property =" do.debug.client" />
143
154
</not >
155
+ <isset property =" browser.context" />
144
156
</and >
145
157
</condition >
146
158
<available file =" ${conf.dir}/MANIFEST.MF" property =" has.custom.manifest" />
@@ -403,6 +415,11 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f
403
415
</and >
404
416
</condition >
405
417
</target >
418
+ <target name =" -init-test-properties" >
419
+ <property name =" test.binaryincludes" value =" < nothing> " />
420
+ <property name =" test.binarytestincludes" value =" " />
421
+ <property name =" test.binaryexcludes" value =" " />
422
+ </target >
406
423
<target if =" ${nb.junit.single}" name =" -init-macrodef-junit-single" unless =" ${nb.junit.batch}" >
407
424
<macrodef name =" junit" uri =" http://www.netbeans.org/ns/web-project/2" >
408
425
<attribute default =" ${includes}" name =" includes" />
@@ -425,7 +442,7 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f
425
442
</sequential >
426
443
</macrodef >
427
444
</target >
428
- <target if =" ${nb.junit.batch}" name =" -init-macrodef-junit-batch" unless =" ${nb.junit.single}" >
445
+ <target depends = " -init-test-properties " if =" ${nb.junit.batch}" name =" -init-macrodef-junit-batch" unless =" ${nb.junit.single}" >
429
446
<macrodef name =" junit" uri =" http://www.netbeans.org/ns/web-project/2" >
430
447
<attribute default =" ${includes}" name =" includes" />
431
448
<attribute default =" ${excludes}" name =" excludes" />
@@ -439,6 +456,9 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f
439
456
<fileset dir =" ${test.src.dir}" excludes =" @{excludes},${excludes}" includes =" @{includes}" >
440
457
<filename name =" @{testincludes}" />
441
458
</fileset >
459
+ <fileset dir =" ${build.test.classes.dir}" excludes =" @{excludes},${excludes},${test.binaryexcludes}" includes =" ${test.binaryincludes}" >
460
+ <filename name =" ${test.binarytestincludes}" />
461
+ </fileset >
442
462
</batchtest >
443
463
<syspropertyset >
444
464
<propertyref prefix =" test-sys-prop." />
@@ -471,7 +491,7 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f
471
491
</fileset >
472
492
</union >
473
493
<taskdef classname =" org.testng.TestNGAntTask" classpath =" ${run.test.classpath}" name =" testng" />
474
- <testng classfilesetref =" test.set" failureProperty =" tests.failed" jvm =" ${platform.java}" methods =" ${testng.methods.arg}" mode =" ${testng.mode}" outputdir =" ${build.test.results.dir}" suitename =" remotecontrol" testname =" TestNG tests" workingDir =" ${basedir}" >
494
+ <testng classfilesetref =" test.set" failureProperty =" tests.failed" jvm =" ${platform.java}" listeners = " org.testng.reporters.VerboseReporter " methods =" ${testng.methods.arg}" mode =" ${testng.mode}" outputdir =" ${build.test.results.dir}" suitename =" remotecontrol" testname =" TestNG tests" workingDir =" ${basedir}" >
475
495
<xmlfileset dir =" ${build.test.classes.dir}" includes =" @{testincludes}" />
476
496
<propertyset >
477
497
<propertyref prefix =" test-sys-prop." />
@@ -565,7 +585,7 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f
565
585
</sequential >
566
586
</macrodef >
567
587
</target >
568
- <target if =" ${nb.junit.batch}" name =" -init-macrodef-junit-debug-batch" >
588
+ <target depends = " -init-test-properties " if =" ${nb.junit.batch}" name =" -init-macrodef-junit-debug-batch" >
569
589
<macrodef name =" junit-debug" uri =" http://www.netbeans.org/ns/web-project/2" >
570
590
<attribute default =" ${includes}" name =" includes" />
571
591
<attribute default =" ${excludes}" name =" excludes" />
@@ -579,6 +599,9 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f
579
599
<fileset dir =" ${test.src.dir}" excludes =" @{excludes},${excludes}" includes =" @{includes}" >
580
600
<filename name =" @{testincludes}" />
581
601
</fileset >
602
+ <fileset dir =" ${build.test.classes.dir}" excludes =" @{excludes},${excludes},${test.binaryexcludes}" includes =" ${test.binaryincludes}" >
603
+ <filename name =" ${test.binarytestincludes}" />
604
+ </fileset >
582
605
</batchtest >
583
606
<syspropertyset >
584
607
<propertyref prefix =" test-sys-prop." />
@@ -836,11 +859,11 @@ exists or setup the property manually. For example like this:
836
859
pre NB7.2 profiling section; consider it deprecated
837
860
-->
838
861
<target depends =" -profile-pre-init, init, -profile-post-init, -profile-init-check" if =" profiler.info.jvmargs.agent" name =" profile-init" />
839
- <target name =" -profile-pre-init" >
862
+ <target if = " profiler.info.jvmargs.agent " name =" -profile-pre-init" >
840
863
<!-- Empty placeholder for easier customization. -->
841
864
<!-- You can override this target in the ../build.xml file. -->
842
865
</target >
843
- <target name =" -profile-post-init" >
866
+ <target if = " profiler.info.jvmargs.agent " name =" -profile-post-init" >
844
867
<!-- Empty placeholder for easier customization. -->
845
868
<!-- You can override this target in the ../build.xml file. -->
846
869
</target >
@@ -888,7 +911,7 @@ exists or setup the property manually. For example like this:
888
911
<target if =" has.persistence.xml" name =" -copy-persistence-xml" >
889
912
<mkdir dir =" ${build.web.dir}/WEB-INF/classes/META-INF" />
890
913
<copy todir =" ${build.web.dir}/WEB-INF/classes/META-INF" >
891
- <fileset dir =" ${persistence.xml.dir}" includes =" persistence.xml" />
914
+ <fileset dir =" ${persistence.xml.dir}" includes =" persistence.xml orm.xml " />
892
915
</copy >
893
916
</target >
894
917
<target name =" -post-compile" >
@@ -974,28 +997,28 @@ exists or setup the property manually. For example like this:
974
997
<dirname file =" ${dist.war}" property =" dist.jar.dir" />
975
998
<mkdir dir =" ${dist.jar.dir}" />
976
999
<jar compress =" ${jar.compress}" jarfile =" ${dist.war}" >
977
- <fileset dir =" ${build.web.dir}" excludes =" WEB-INF/classes/.netbeans_*" />
1000
+ <fileset dir =" ${build.web.dir}" excludes =" WEB-INF/classes/.netbeans_*,${dist.archive.excludes} " />
978
1001
</jar >
979
1002
</target >
980
1003
<target depends =" init,compile,compile-jsps,-pre-dist" if =" do.war.package.with.custom.manifest" name =" -do-dist-with-manifest" >
981
1004
<dirname file =" ${dist.war}" property =" dist.jar.dir" />
982
1005
<mkdir dir =" ${dist.jar.dir}" />
983
1006
<jar compress =" ${jar.compress}" jarfile =" ${dist.war}" manifest =" ${build.meta.inf.dir}/MANIFEST.MF" >
984
- <fileset dir =" ${build.web.dir}" excludes =" WEB-INF/classes/.netbeans_*" />
1007
+ <fileset dir =" ${build.web.dir}" excludes =" WEB-INF/classes/.netbeans_*,${dist.archive.excludes} " />
985
1008
</jar >
986
1009
</target >
987
1010
<target depends =" init,compile,compile-jsps,-pre-dist" if =" do.tmp.war.package.without.custom.manifest" name =" -do-tmp-dist-without-manifest" >
988
1011
<dirname file =" ${dist.war}" property =" dist.jar.dir" />
989
1012
<mkdir dir =" ${dist.jar.dir}" />
990
1013
<jar compress =" ${jar.compress}" jarfile =" ${dist.war}" >
991
- <fileset dir =" ${build.web.dir}" excludes =" WEB-INF/classes/.netbeans_*" />
1014
+ <fileset dir =" ${build.web.dir}" excludes =" WEB-INF/classes/.netbeans_*,${dist.archive.excludes} " />
992
1015
</jar >
993
1016
</target >
994
1017
<target depends =" init,compile,compile-jsps,-pre-dist" if =" do.tmp.war.package.with.custom.manifest" name =" -do-tmp-dist-with-manifest" >
995
1018
<dirname file =" ${dist.war}" property =" dist.jar.dir" />
996
1019
<mkdir dir =" ${dist.jar.dir}" />
997
1020
<jar compress =" ${jar.compress}" jarfile =" ${dist.war}" manifest =" ${build.meta.inf.dir}/MANIFEST.MF" >
998
- <fileset dir =" ${build.web.dir}" excludes =" WEB-INF/classes/.netbeans_*" />
1021
+ <fileset dir =" ${build.web.dir}" excludes =" WEB-INF/classes/.netbeans_*,${dist.archive.excludes} " />
999
1022
</jar >
1000
1023
</target >
1001
1024
<target depends =" init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name =" do-dist" />
@@ -1016,7 +1039,7 @@ exists or setup the property manually. For example like this:
1016
1039
<dirname file =" ${dist.ear.war}" property =" dist.jar.dir" />
1017
1040
<mkdir dir =" ${dist.jar.dir}" />
1018
1041
<jar compress =" ${jar.compress}" jarfile =" ${dist.ear.war}" manifest =" ${build.web.dir}/META-INF/MANIFEST.MF" >
1019
- <fileset dir =" ${build.web.dir}" excludes =" WEB-INF/classes/.netbeans_*" />
1042
+ <fileset dir =" ${build.web.dir}" excludes =" WEB-INF/classes/.netbeans_*,${dist.archive.excludes} " />
1020
1043
</jar >
1021
1044
</target >
1022
1045
<target name =" -post-dist" >
@@ -1065,18 +1088,32 @@ exists or setup the property manually. For example like this:
1065
1088
<target depends =" init,-pre-dist,dist,-post-dist" name =" verify" >
1066
1089
<nbverify file =" ${dist.war}" />
1067
1090
</target >
1068
- <target depends =" run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name =" run-display-browser" />
1091
+ <target depends =" run-deploy,-init-display-browser,-display-browser-nb-old,-display-browser-nb ,-display-browser-cl" name =" run-display-browser" />
1069
1092
<target if =" do.display.browser" name =" -init-display-browser" >
1093
+ <condition property =" do.display.browser.nb.old" >
1094
+ <and >
1095
+ <isset property =" netbeans.home" />
1096
+ <not >
1097
+ <isset property =" browser.context" />
1098
+ </not >
1099
+ </and >
1100
+ </condition >
1070
1101
<condition property =" do.display.browser.nb" >
1071
- <isset property =" netbeans.home" />
1102
+ <and >
1103
+ <isset property =" netbeans.home" />
1104
+ <isset property =" browser.context" />
1105
+ </and >
1072
1106
</condition >
1073
1107
<condition property =" do.display.browser.cl" >
1074
1108
<isset property =" deploy.ant.enabled" />
1075
1109
</condition >
1076
1110
</target >
1077
- <target if =" do.display.browser.nb" name =" -display-browser-nb" >
1111
+ <target if =" do.display.browser.nb.old " name =" -display-browser-nb-old " >
1078
1112
<nbbrowse url =" ${client.url}" />
1079
1113
</target >
1114
+ <target if =" do.display.browser.nb" name =" -display-browser-nb" >
1115
+ <nbbrowse context =" ${browser.context}" url =" ${client.url}" urlPath =" ${client.urlPart}" />
1116
+ </target >
1080
1117
<target if =" do.display.browser.cl" name =" -get-browser" unless =" browser" >
1081
1118
<condition property =" browser" value =" rundll32" >
1082
1119
<os family =" windows" />
@@ -1144,6 +1181,7 @@ exists or setup the property manually. For example like this:
1144
1181
<nbstartserver debugmode =" true" />
1145
1182
<antcall target =" connect-debugger" />
1146
1183
<nbdeploy clientUrlPart =" ${client.urlPart}" debugmode =" true" forceRedeploy =" true" />
1184
+ <antcall target =" debug-display-browser-old" />
1147
1185
<antcall target =" debug-display-browser" />
1148
1186
<antcall target =" connect-client-debugger" />
1149
1187
</target >
@@ -1163,9 +1201,12 @@ exists or setup the property manually. For example like this:
1163
1201
</bootclasspath >
1164
1202
</nbjpdaconnect >
1165
1203
</target >
1166
- <target if =" do.display.browser.debug" name =" debug-display-browser" >
1204
+ <target if =" do.display.browser.debug.old " name =" debug-display-browser-old " >
1167
1205
<nbbrowse url =" ${client.url}" />
1168
1206
</target >
1207
+ <target if =" do.display.browser.debug" name =" debug-display-browser" >
1208
+ <nbbrowse context =" ${browser.context}" url =" ${client.url}" urlPath =" ${client.urlPart}" />
1209
+ </target >
1169
1210
<target if =" do.debug.client" name =" connect-client-debugger" >
1170
1211
<webproject1 : nbjsdebugstart webUrl =" ${client.url}" />
1171
1212
</target >
@@ -1223,7 +1264,7 @@ exists or setup the property manually. For example like this:
1223
1264
<jvmarg value =" ${profiler.j2ee.agentID}" />
1224
1265
</nbstartprofiledserver >
1225
1266
</target >
1226
- <target if =" profiler.info.jvmargs.agent" name =" -profile-test-single-pre72" >
1267
+ <target depends = " profile-init,compile-test-single " if =" profiler.info.jvmargs.agent" name =" -profile-test-single-pre72" >
1227
1268
<fail unless =" netbeans.home" >This target only works when run from inside the NetBeans IDE.</fail >
1228
1269
<nbprofiledirect >
1229
1270
<classpath >
@@ -1260,6 +1301,7 @@ exists or setup the property manually. For example like this:
1260
1301
<startprofiler />
1261
1302
<nbstartserver profilemode =" true" />
1262
1303
<nbdeploy clientUrlPart =" ${client.urlPart}" forceRedeploy =" true" profilemode =" true" />
1304
+ <antcall target =" debug-display-browser-old" />
1263
1305
<antcall target =" debug-display-browser" />
1264
1306
<antcall target =" -profile-start-loadgen" />
1265
1307
</target >
0 commit comments