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 251510 - Enable to run a single file in a platform project
Summary: Enable to run a single file in a platform project
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
Depends on:
Reported: 2015-03-30 14:27 UTC by cezariusz
Modified: 2015-04-02 16:31 UTC (History)
0 users

See Also:
Exception Reporter:

Run File action is disabled (18.77 KB, image/png)
2015-03-30 14:27 UTC, cezariusz

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2015-03-30 14:27:37 UTC
Created attachment 152923 [details]
Run File action is disabled

Sometimes it's useful to run a single file (with main) when working on a platform project. Currently it's possible only by creating and running a test case for that file, but that's not a good solution, because:
1. you have to write a test case only to run a file.
2. you cannot leave the test case, because it will be run on the continuous integration server, which is not desired
3. you cannot just @Ignore it, because you will have to comment out the @Ignore each time you want to run the file, and it will skew test statistics on CI

Why the "Run File" action is greyed out?