This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 57011
Collapse All | Expand All

(-)freeform/src/org/netbeans/modules/ant/freeform/Actions.java (+8 lines)
Lines 16-21 Link Here
16
import java.awt.event.ActionEvent;
16
import java.awt.event.ActionEvent;
17
import java.io.File;
17
import java.io.File;
18
import java.io.IOException;
18
import java.io.IOException;
19
import java.text.MessageFormat;
19
import java.util.ArrayList;
20
import java.util.ArrayList;
20
import java.util.Arrays;
21
import java.util.Arrays;
21
import java.util.Collection;
22
import java.util.Collection;
Lines 39-44 Link Here
39
import org.netbeans.spi.project.support.ant.AntProjectHelper;
40
import org.netbeans.spi.project.support.ant.AntProjectHelper;
40
import org.netbeans.spi.project.ui.support.CommonProjectActions;
41
import org.netbeans.spi.project.ui.support.CommonProjectActions;
41
import org.netbeans.spi.project.ui.support.ProjectSensitiveActions;
42
import org.netbeans.spi.project.ui.support.ProjectSensitiveActions;
43
import org.openide.DialogDescriptor;
44
import org.openide.DialogDisplayer;
42
import org.openide.ErrorManager;
45
import org.openide.ErrorManager;
43
import org.openide.actions.FindAction;
46
import org.openide.actions.FindAction;
44
import org.openide.actions.ToolsAction;
47
import org.openide.actions.ToolsAction;
Lines 260-265 Link Here
260
        String scriptLocation = project.evaluator().evaluate(script);
263
        String scriptLocation = project.evaluator().evaluate(script);
261
        FileObject scriptFile = project.helper().resolveFileObject(scriptLocation);
264
        FileObject scriptFile = project.helper().resolveFileObject(scriptLocation);
262
        if (scriptFile == null) {
265
        if (scriptFile == null) {
266
            //#57011: if the script does not exist, show a warning:
267
            Exception noScriptFile = new Exception("No script file: " + scriptLocation); // NOI18N
268
            
269
            ErrorManager.getDefault().annotate(noScriptFile, MessageFormat.format(NbBundle.getMessage(Actions.class, "LBL_ScriptFileNotFoundError"), new Object[] {scriptLocation}));
270
            ErrorManager.getDefault().notify(ErrorManager.USER, noScriptFile);
263
            return;
271
            return;
264
        }
272
        }
265
        List/*<Element>*/ targets = Util.findSubElements(actionEl);
273
        List/*<Element>*/ targets = Util.findSubElements(actionEl);
(-)freeform/src/org/netbeans/modules/ant/freeform/Bundle.properties (+4 lines)
Lines 39-41 Link Here
39
LBL_project.xml_errors=Errors in {0}
39
LBL_project.xml_errors=Errors in {0}
40
40
41
LBL_Manual_Editing_Warning=Do not use Project Properties customizer when editing this file manually.
41
LBL_Manual_Editing_Warning=Do not use Project Properties customizer when editing this file manually.
42
43
#If the script file is not found
44
# {0} - path to the script file
45
LBL_ScriptFileNotFoundError=Script file {0} cannot be found.

Return to bug 57011