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 198401

Summary: Profiler does not work on Platform apps with Maven
Product: profiler Reporter: sdrinovsky <sdrinovsky>
Component: IdeAssignee: J Bachorik <yardus>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description sdrinovsky 2011-05-06 16:38:41 UTC
The default action is:
<action>
   <actionName>profile</actionName>
   <goals>
      <goal>nbm:cluster</goal>
      <goal>nbm:run-ide</goal>
   </goals>
   <properties>
      <profiler.action>profile</profiler.action>
      <exec.executable>${profiler.java}</exec.executable>
      <netbeans.run.params>${profiler.args} -classpath %classpath ${packageClassName}</netbeans.run.params>
   </properties>
</action>

Two issues, first it runs the wrong goal.
It tries to run  <goal>nbm:run-ide</goal> not <goal>nbm:run-platform</goal>.

Second ${profiler.args} is missing the "-J" in front of each option.

If I change these two settings in a custom action I am then able to profile.
This would be fine except that ${profiler.args} is machine dependent so my nbactions.xml file will not work for anyone else.
Comment 1 Tomas Hurka 2011-05-06 17:41:24 UTC
Thanks for the report.
Comment 2 J Bachorik 2011-10-06 08:31:14 UTC
Actually, this is a duplicate of #199922.

*** This bug has been marked as a duplicate of bug 199922 ***