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 - Profiler does not work on Platform apps with Maven
Summary: Profiler does not work on Platform apps with Maven
Status: RESOLVED DUPLICATE of bug 199922
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-06 16:38 UTC by sdrinovsky
Modified: 2011-10-06 08:31 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 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 ***