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.
Scenario: - Create Welcome project - Open Project Properties window - Select Launchers category - Press New button - Set Run Command = "${OUTPUT_PATH}" - Press OK ==> "C:\Users\user\Documents\NetBeansProjects\Welcome_1\dist\Debug\Cygwin-Windows\welcome_1 does not exist or is not a executable" window appears
Also I see exception in messages.log: [catch] at org.netbeans.modules.cnd.utils.CndUtils.assertTrueInConsole(CndUtils.java:222) at org.netbeans.modules.cnd.utils.CndUtils.assertTrueInConsole(CndUtils.java:287) at org.netbeans.modules.cnd.makeproject.api.ProjectActionEvent.getExecutable(ProjectActionEvent.java:199) at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$EventsProcessorImpl.checkExecutable(ProjectActionSupport.java:652) at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$EventsProcessorImpl.run(ProjectActionSupport.java:433) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
1st scenario is not a valid. I forgot to build project. My real problem in tests on Windows: - Create Welcome project - Open Project Properties window - Select Launchers category - Press New button - Set Run Command = ${OUTPUT_PATH} > 111.txt - Build project - Push Run|launcher1000 menu item ==> On Solaris/Linux I see new 111.txt file. On Windows I see: Welcome... Arguments: 1: > 2: 111.txt RUN LAUNCHER1000 SUCCESSFUL (total time: 57ms)
Launcher 1: "${PROJECT_DIR}/${OUTPUT_PATH}" > 111.txt Launcher 2: "${PROJECT_DIR}/${OUTPUT_PATH} 1 2 hello" Launcher 3: "${PROJECT_DIR}/${OUTPUT_PATH}" 1 2 hello Launcher 1: Linux: redirects all output to 111.txt Windows: Welcome... Arguments: 1: > 2: 111.txt Launcher 2: Linux: /home/ilia/<...>/welcome_43 1 2 hello does not exist or is not an executable Windows: C:\Windows\<...>\welcome_5 1 2 hello does not exist or is not an executable Launcher 3: Linux: Welcome... Arguments: 1: 1 2: 2 3: hello Win: Welcome ... Arguments: 1: 1 2: 2 3: hello
b/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/NativeProcessInfo.java setCommandLine method it seems its safe to remove if (isWindows && commandLine != null) branch
Integrated into 'main-silver', will be available in build *201707201608* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/5c5c0ffff99a User: Ilia Gromov <ilia@netbeans.org> Log: Fixed #267483 - Launchers: "${OUTPUT_PATH} > file" command doesn't work on Windows