# HG changeset patch # User Vladimir Kvashin # Date 1264533551 -10800 # Node ID fdc34ef98dddced7dc00c304f83a8afdd2778168 # Parent dc10aa86566744d5ebd9ea6e15a9763a0fe05915 additional fix for #178201 Run fails if 'Show profiling indicators during run' is off diff -r dc10aa865667 -r fdc34ef98ddd cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/api/DefaultProjectActionHandler.java --- a/cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/api/DefaultProjectActionHandler.java Mon Jan 25 18:15:56 2010 +0100 +++ b/cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/api/DefaultProjectActionHandler.java Tue Jan 26 22:19:11 2010 +0300 @@ -102,7 +102,7 @@ if (pae.getType() == ProjectActionEvent.Type.RUN || pae.getType() == ProjectActionEvent.Type.BUILD || pae.getType() == ProjectActionEvent.Type.CLEAN) { - String exe = IpeUtils.quoteIfNecessary(pae.getExecutable()); + String exe = pae.getExecutable(); String args = getArguments(); String[] env = getEnvironment(); boolean showInput = pae.getType() == ProjectActionEvent.Type.RUN; @@ -175,6 +175,7 @@ exe = exe + ".exe"; // NOI18N } // fixing #178201 Run fails if 'Show profiling indicators' is off and the project is created in folder with space + exe = IpeUtils.quoteIfNecessary(exe); StringBuilder b = new StringBuilder(); for (int i = 0; i < exe.length(); i++) { if (exe.charAt(i) == '"') { diff -r dc10aa865667 -r fdc34ef98ddd cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/api/runprofiles/RunProfile.java --- a/cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/api/runprofiles/RunProfile.java Mon Jan 25 18:15:56 2010 +0100 +++ b/cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/api/runprofiles/RunProfile.java Tue Jan 26 22:19:11 2010 +0300 @@ -203,7 +203,7 @@ // 0 - file to store return code // 1 - executable name (quated if need, i.e. if it contains spaces, asterisks, etc.) // 2 - args (quated if need, i.e. if it contains spaces, asterisks, etc.) - // 3 - the same as {3}, but quotes are escaped with '\' + // 3 - the same as {2}, but quotes are escaped with '\' // 4 - (added by VK: the same as {1}, but quotes are escaped with '\' // fixing #178201 Run fails if 'Show profiling indicators' is off and the project is created in folder with space list.add(def);