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 178201
Collapse All | Expand All

(-)a/cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/api/DefaultProjectActionHandler.java (-1 / +2 lines)
Lines 102-108 Link Here
102
        if (pae.getType() == ProjectActionEvent.Type.RUN ||
102
        if (pae.getType() == ProjectActionEvent.Type.RUN ||
103
                pae.getType() == ProjectActionEvent.Type.BUILD ||
103
                pae.getType() == ProjectActionEvent.Type.BUILD ||
104
                pae.getType() == ProjectActionEvent.Type.CLEAN) {
104
                pae.getType() == ProjectActionEvent.Type.CLEAN) {
105
            String exe = IpeUtils.quoteIfNecessary(pae.getExecutable());
105
            String exe = pae.getExecutable();
106
            String args = getArguments();
106
            String args = getArguments();
107
            String[] env = getEnvironment();
107
            String[] env = getEnvironment();
108
            boolean showInput = pae.getType() == ProjectActionEvent.Type.RUN;
108
            boolean showInput = pae.getType() == ProjectActionEvent.Type.RUN;
Lines 175-180 Link Here
175
                            exe = exe + ".exe"; // NOI18N
175
                            exe = exe + ".exe"; // NOI18N
176
                        }
176
                        }
177
                        // fixing #178201 Run fails if 'Show profiling indicators' is off and the project is created in folder with space
177
                        // fixing #178201 Run fails if 'Show profiling indicators' is off and the project is created in folder with space
178
                        exe = IpeUtils.quoteIfNecessary(exe);
178
                        StringBuilder b = new StringBuilder();
179
                        StringBuilder b = new StringBuilder();
179
                        for (int i = 0; i < exe.length(); i++) {
180
                        for (int i = 0; i < exe.length(); i++) {
180
                            if (exe.charAt(i) == '"') {
181
                            if (exe.charAt(i) == '"') {
(-)a/cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/api/runprofiles/RunProfile.java (-1 / +1 lines)
Lines 203-209 Link Here
203
        // 0 - file to store return code
203
        // 0 - file to store return code
204
        // 1 - executable name (quated if need, i.e. if it contains spaces, asterisks, etc.)
204
        // 1 - executable name (quated if need, i.e. if it contains spaces, asterisks, etc.)
205
        // 2 - args (quated if need, i.e. if it contains spaces, asterisks, etc.)
205
        // 2 - args (quated if need, i.e. if it contains spaces, asterisks, etc.)
206
        // 3 - the same as {3}, but quotes are escaped with '\'
206
        // 3 - the same as {2}, but quotes are escaped with '\'
207
        // 4 - (added by VK: the same as {1}, but quotes are escaped with '\'
207
        // 4 - (added by VK: the same as {1}, but quotes are escaped with '\'
208
        // fixing #178201 Run fails if 'Show profiling indicators' is off and the project is created in folder with space
208
        // fixing #178201 Run fails if 'Show profiling indicators' is off and the project is created in folder with space
209
        list.add(def);
209
        list.add(def);

Return to bug 178201