Lines 287-298
Link Here
|
287 |
<target name="-init-macrodef-java"> |
287 |
<target name="-init-macrodef-java"> |
288 |
<macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> |
288 |
<macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> |
289 |
<attribute default="${main.class}" name="classname"/> |
289 |
<attribute default="${main.class}" name="classname"/> |
|
|
290 |
<attribute default="${run.classpath}" name="classpath"/> |
290 |
<element name="customize" optional="true"/> |
291 |
<element name="customize" optional="true"/> |
291 |
<sequential> |
292 |
<sequential> |
292 |
<java classname="@{classname}" dir="${work.dir}" fork="true"> |
293 |
<java classname="@{classname}" dir="${work.dir}" fork="true"> |
293 |
<jvmarg line="${run.jvmargs}"/> |
294 |
<jvmarg line="${run.jvmargs}"/> |
294 |
<classpath> |
295 |
<classpath> |
295 |
<path path="${run.classpath}"/> |
296 |
<path path="@{classpath}"/> |
296 |
</classpath> |
297 |
</classpath> |
297 |
<syspropertyset> |
298 |
<syspropertyset> |
298 |
<propertyref prefix="run-sys-prop."/> |
299 |
<propertyref prefix="run-sys-prop."/> |
Lines 442-447
Link Here
|
442 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
443 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
443 |
<j2seproject1:java classname="${run.class}"/> |
444 |
<j2seproject1:java classname="${run.class}"/> |
444 |
</target> |
445 |
</target> |
|
|
446 |
<target depends="init,-do-not-recompile,compile-test-single" name="run-test-with-main"> |
447 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
448 |
<j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> |
449 |
</target> |
445 |
<!-- |
450 |
<!-- |
446 |
================= |
451 |
================= |
447 |
DEBUGGING SECTION |
452 |
DEBUGGING SECTION |
Lines 450-455
Link Here
|
450 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger"> |
455 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger"> |
451 |
<j2seproject1:nbjpdastart name="${debug.class}"/> |
456 |
<j2seproject1:nbjpdastart name="${debug.class}"/> |
452 |
</target> |
457 |
</target> |
|
|
458 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test"> |
459 |
<j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/> |
460 |
</target> |
453 |
<target depends="init,compile" name="-debug-start-debuggee"> |
461 |
<target depends="init,compile" name="-debug-start-debuggee"> |
454 |
<j2seproject3:debug> |
462 |
<j2seproject3:debug> |
455 |
<customize> |
463 |
<customize> |
Lines 467-472
Link Here
|
467 |
<j2seproject3:debug classname="${debug.class}"/> |
475 |
<j2seproject3:debug classname="${debug.class}"/> |
468 |
</target> |
476 |
</target> |
469 |
<target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> |
477 |
<target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> |
|
|
478 |
<target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> |
479 |
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> |
480 |
<j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> |
481 |
</target> |
482 |
<target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> |
470 |
<target depends="init" name="-pre-debug-fix"> |
483 |
<target depends="init" name="-pre-debug-fix"> |
471 |
<fail unless="fix.includes">Must set fix.includes</fail> |
484 |
<fail unless="fix.includes">Must set fix.includes</fail> |
472 |
<property name="javac.includes" value="${fix.includes}.java"/> |
485 |
<property name="javac.includes" value="${fix.includes}.java"/> |