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 165692 - Profiling a maven project fails if there is a space in the HeapDumpPath
Summary: Profiling a maven project fails if there is a space in the HeapDumpPath
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-21 12:14 UTC by ianfrance
Modified: 2009-05-21 12:58 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 ianfrance 2009-05-21 12:14:02 UTC
The HeapDumpPath is not properly quoted when profiling a maven controlled project. This is the output: 


NetBeans: Executing 'cmd /c mvn.bat -Dexec.args=-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="C:\Documents and
Settings\Ian\netbeans projects\GeneratedCode\nbproject\private\profiler"  \"-agentpath:C:/Program Files/NetBeans 6.7
Beta/profiler3/lib/deployed/jdk16/windows/profilerinterface.dll=C:/Program Files/NetBeans 6.7
Beta/profiler3/lib,5140,10\" -classpath %classpath com.prismt.transform.runtime.exec.RunMaps -Dprofiler.action=profile
-Dexec.executable=C:\Program Files\Java\jdk1.6.0_02\bin\java.exe -Dnetbeans.execution=true process-classes
org.codehaus.mojo:exec-maven-plugin:1.1:exec'

...

------------------------------------------------------------------------
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
Invalid task 'and': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
------------------------------------------------------------------------



Moving the project so it is not in a directory with spaces works fine. 

I assume it is a problem with the quoting of the HeapDumpPath as that is the only thing in the command that has the word
"and" in it, which Maven seems to think is a task to run.
Comment 1 ianfrance 2009-05-21 12:14:56 UTC
Sorry, should have said. I am running 6.7 beta, on Windows XP.
Comment 2 Tomas Hurka 2009-05-21 12:33:45 UTC
Probably fixed. Can you try latest NB 6.7 daily build (http://bits.netbeans.org/dev/nightly/latest/)?
Comment 3 ianfrance 2009-05-21 12:56:12 UTC
Yep. That is fixed in the daily build. Thanks for the quick response.
Comment 4 J Bachorik 2009-05-21 12:58:47 UTC
Marking as fixed - per user response