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.

Bug 271369

Summary: Regressions in launchers on Windows
Product: cnd Reporter: soldatov <soldatov>
Component: -- Other --Assignee: Alexander Simon <alexvsimon>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.2   
Hardware: PC   
OS: Windows 8.1   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2017-08-25 09:38:58 UTC
I see 2 stable test failures on Cygwin(Windows 7) test machine and 5 failures on MSYS2(Windows 8.1) test machine.

Scenario:
- Create Welcome project
- Build project
- Call "Project Properties" window
- Select "Launcher" category and press New button
==> in "Run Command" field I see "${PROJECT_DIR}/${OUTPUT_PATH}" message
- Set new command in "Run Command" field:
a) echo 1 2 3
b) "${OUTPUT_PATH}" 1 2 3
c) ${OUTPUT_PATH} 1 2 3
d) ./dist/Debug/MinGW-Windows/welcome_3.exe 1 2 3
- Push OK button
- Call context menu on projects node and select Run|launcher1000
===>
NetBeans 8.2 - OK
NetBeans trunk:

Cannot run program ""dist/Debug/MinGW-Windows/welcome_2" 1 2 3" (in directory "C:\Users\apepin\Documents\NetBeansProjects\Welcome_2"): CreateProcess error=2, The system cannot find the file specified

RUN LAUNCHER1000 FAILED (exit value -2, total time: 21ms)
Comment 1 soldatov 2017-08-25 10:36:02 UTC
On Cygwin test machine such test case fails:
- Create Welcome project
- Build project
- Call "Project Properties" window
- Select "Launcher" category and press New button
- Set "echo 1 2 3" in "Run Command" field
- Set "echo 1 2 3" in "Build Command" field
- Push OK button
- Call context menu on projects node and select Run|launcher1000
===> ok
- Call context menu on projects node and select Build|launcher1000
===>
cd 'C:\Users\vsoldato\Documents\NetBeansProjects\Welcome_1'
echo 1 2 3
Cannot run program "echo 1 2 3" (in directory "C:\Users\vsoldato\Documents\NetBeansProjects\Welcome_1"): CreateProcess error=2, The system cannot find the file specified

BUILD FAILED (exit value -2, total time: 58ms)

P.S. No failures if I use 'echo "1 2 3"' instead of 'echo 1 2 3'