Index: ant/src/org/apache/tools/ant/module/run/AntCompilerGroup.java =================================================================== RCS file: /cvs/ant/src/org/apache/tools/ant/module/run/AntCompilerGroup.java,v retrieving revision 1.5 diff -c -r1.5 AntCompilerGroup.java *** ant/src/org/apache/tools/ant/module/run/AntCompilerGroup.java 11 Apr 2002 16:27:47 -0000 1.5 --- ant/src/org/apache/tools/ant/module/run/AntCompilerGroup.java 1 Aug 2002 20:25:38 -0000 *************** *** 26,31 **** --- 26,32 ---- import org.apache.tools.ant.module.AntModule; import org.apache.tools.ant.module.api.AntProjectCookie; + import org.openide.util.NbBundle; public class AntCompilerGroup extends CompilerGroup { *************** *** 62,68 **** String target = (String) targetsit.next (); try { TargetExecutor te = new TargetExecutor (script, (target == null) ? null : new String[] { target }); ! if (te.execute ().result () != 0) { // More annoying than useful: //fireErrorEvent (new ErrorEvent (this, script, 0, 0, null, null)); return false; --- 63,69 ---- String target = (String) targetsit.next (); try { TargetExecutor te = new TargetExecutor (script, (target == null) ? null : new String[] { target }); ! if (te.execute (NbBundle.getMessage (AntCompilerGroup.class, "TITLE_output_compilation")).result () != 0) { // More annoying than useful: //fireErrorEvent (new ErrorEvent (this, script, 0, 0, null, null)); return false; Index: ant/src/org/apache/tools/ant/module/run/Bundle.properties =================================================================== RCS file: /cvs/ant/src/org/apache/tools/ant/module/run/Bundle.properties,v retrieving revision 1.13 diff -c -r1.13 Bundle.properties *** ant/src/org/apache/tools/ant/module/run/Bundle.properties 23 Jul 2002 14:03:38 -0000 1.13 --- ant/src/org/apache/tools/ant/module/run/Bundle.properties 1 Aug 2002 20:25:38 -0000 *************** *** 51,56 **** --- 51,57 ---- # {1} - file name TITLE_output_notarget={0} TITLE_output_reused=Ant Execution + TITLE_output_compilation=Compiler LBL_unparseable_proj_name=??? EXC_non_local_proj_file=You may only execute Ant scripts residing on disk. Index: ant/src/org/apache/tools/ant/module/run/TargetExecutor.java =================================================================== RCS file: /cvs/ant/src/org/apache/tools/ant/module/run/TargetExecutor.java,v retrieving revision 1.23 diff -c -r1.23 TargetExecutor.java *** ant/src/org/apache/tools/ant/module/run/TargetExecutor.java 24 Jul 2002 11:21:42 -0000 1.23 --- ant/src/org/apache/tools/ant/module/run/TargetExecutor.java 1 Aug 2002 20:25:38 -0000 *************** *** 82,92 **** public void setSwitchWorkspace(boolean sw) { switchWorkspace = sw; } /** Start it going. */ ! public ExecutorTask execute () throws IOException { //System.err.println("execute #1: " + this); ! String name; if (AntSettings.getDefault ().getReuseOutput ()) { name = NbBundle.getMessage (TargetExecutor.class, "TITLE_output_reused"); } else { --- 82,97 ---- public void setSwitchWorkspace(boolean sw) { switchWorkspace = sw; } + + public ExecutorTask execute () throws IOException { + return execute(null); + } /** Start it going. */ ! ExecutorTask execute (String name) throws IOException { //System.err.println("execute #1: " + this); ! //String name; ! if (name == null) { if (AntSettings.getDefault ().getReuseOutput ()) { name = NbBundle.getMessage (TargetExecutor.class, "TITLE_output_reused"); } else { *************** *** 122,127 **** --- 127,133 ---- } else { name = NbBundle.getMessage (TargetExecutor.class, "TITLE_output_notarget", projectName, fileName); } + } } final ExecutorTask task; synchronized (this) {