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 255973 - Contradictory behavior with profiles
Summary: Contradictory behavior with profiles
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-16 13:57 UTC by Valery-Sh
Modified: 2016-07-05 01:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valery-Sh 2015-10-16 13:57:38 UTC
The contradictory behavior № 1:


Let's create a maven application. Add the main class, to be specific a.b.AppMainClass01.

The defaul profile is specified.

Project → Popup Menu → Set Configuration → release-profile

Project → Popup Menu → Run
ʺSelect Main Class for Executionʺ dialog appears. Mark option ʺSelect Permanentlyʺ. 


As a result nbactions.xml files is created instead of the  nbactions-release-profile.xml. 


The contradictory behavior № 2


Let's create a maven application. Add the main class, to be specific a.b.AppMainClass01.

1. Customize the default profile and set a Main Class as a.b.AppMainClass01
(nbactions.xml will be created)

2. Project → Set Configuration → release-profile

3. Project → Properties → Run. Add argument (any permissible value ) to the field titled as ʺargumentsʺ. Click Ok. (Main Class field remains empty). The file named as nbactions-release-profile.xml is created. 

4. Project → Popup Menu → Run. ʺSelect Main Class for Executionʺ dialog appears. If you choose ʺSelect Permanentlyʺ then the action performs. Try ʺRunʺ action again. And again the same dialog window appears. This behavior repeats until we delete  nbactions-release-profile.xml file or customize the project and specify a main class.
Comment 1 Tomas Stupka 2016-07-04 14:57:59 UTC
fixed in jet-main #b56247ed14a6
Comment 2 Quality Engineering 2016-07-05 01:48:18 UTC
Integrated into 'main-silver', will be available in build *201607050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b56247ed14a6
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #255973 - Contradictory behavior with profiles