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 226017 - “Private” run configuration is stored in project sources
Summary: “Private” run configuration is stored in project sources
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-12 14:19 UTC by Jesse Glick
Modified: 2016-07-07 08:39 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2013-02-12 14:19:28 UTC
If I have a Git-controlled Maven project and select “Keep private to this IDE instance” in the “Add configuration” dialog, and select a main class and args in this configuration, NetBeans nonetheless creates two files in my project directory:

1. nb-configuration.xml, even though <configurations/> is empty! This file marks the project as modified in the Projects tab.

2. nbactions-foo.xml, which appears as ignored (grey) in the Projects tab, but is still considered an “untracked file” by Git, i.e. it is not added to .gitignore.

When I click the checkbox in question I expect the IDE to not touch my version-controlled sources; it should keep all the information it needs in the user directory somewhere.
Comment 1 Milos Kleint 2013-02-13 14:32:52 UTC
partly solved by issue 224450, the rest is here: 
http://hg.netbeans.org/core-main/rev/f0077e617638
Comment 2 Jesse Glick 2013-02-13 19:19:58 UTC
OK that should solve #1; are you intentionally punting on #2?
Comment 3 Milos Kleint 2013-02-13 19:31:22 UTC
the nbactions file doesn't appear anymore? so it's correctly only created when shared configuration is created and then it's ok to be not-ignored?
Comment 4 Jesse Glick 2013-02-13 19:56:21 UTC
I am saying that f0077e617638 should correctly suppress an empty nb-configuration.xml. The complaint remains that when I create a “private” run configuration and bind actions in it, this nbactions-*.xml configuration is stored in ${basedir} rather than being kept somehow in ${netbeans.user}. It is not offered for commit by the IDE’s own SCM actions, because it is considered ignorable, but still pollutes the project from the perspective of command-line SCM operations.
Comment 5 Quality Engineering 2013-02-14 02:19:26 UTC
Integrated into 'main-golden', will be available in build *201302132300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f0077e617638
User: Milos Kleint <mkleint@netbeans.org>
Log: #226017 don't create new file when no configs are specified. (eg. when creating a private configuration)
Comment 6 Milos Kleint 2013-02-20 13:00:30 UTC
cachedirectoryprovider's location would be a possibility, however the main drawback there is that on upgrading the IDE, the customizations are lost.  Or at least I don't know of a way of telling the import to include such files/folders from previous version of the IDE.
Comment 7 Jesse Glick 2013-02-20 15:32:44 UTC
Does adding an OptionsExport entry not suffice?
Comment 8 Milos Kleint 2013-02-20 16:22:31 UTC
(In reply to comment #7)
> Does adding an OptionsExport entry not suffice?

last time I checked it only handles stuff on the system file system. no way to import/export stuff from cache directory. I wanted to use it to move the maven indexes folders over to the new cache directory to save people from re-downloading central index
Comment 9 Milos Kleint 2013-04-08 09:27:25 UTC
btw ant projects' private configuration is also stored in project space (nbproject/private)
Comment 10 Jesse Glick 2013-04-08 12:28:31 UTC
Which was a mistake.
Comment 11 Milos Kleint 2013-06-28 07:35:20 UTC
I don't want to dismiss the idea entirely, not a bug though. The current scope is "per user" you are suggesting to change that per "IDE version instance" with import possibilities, changing to enhancement
Comment 12 Martin Balin 2016-07-07 08:39:34 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss