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 211686 - org.codehaus.plexus.util.cli.CommandLineException: unbalanced quotes in -Dmaven.home='C:Program
Summary: org.codehaus.plexus.util.cli.CommandLineException: unbalanced quotes in -Dmav...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 220841 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-25 09:17 UTC by lolo_101
Modified: 2012-10-31 02:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187351


Attachments
stacktrace (985 bytes, text/plain)
2012-04-25 09:18 UTC, lolo_101
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lolo_101 2012-04-25 09:17:58 UTC
This issue was reported manually by lolo_101.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 201204240400)
VM: Java HotSpot(TM) Client VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05
OS: Windows XP

User Comments:
Lolo_101: The trailing quote seems to be removed from the text fields in the project properties "run" tab.




Stacktrace: 
org.codehaus.plexus.util.cli.CommandLineException: unbalanced quotes in -Dmaven.home='C:Program
   at org.codehaus.plexus.util.cli.CommandLineUtils.translateCommandline(CommandLineUtils.java:506)
   at org.netbeans.modules.maven.cos.CosChecker.extractDebugJVMOptions(CosChecker.java:727)
   at org.netbeans.modules.maven.cos.CosChecker.checkRunMainClass(CosChecker.java:291)
   at org.netbeans.modules.maven.cos.CosChecker.checkRunConfig(CosChecker.java:122)
   at org.netbeans.modules.maven.execute.PrereqCheckerMerger$Impl.checkRunConfig(PrereqCheckerMerger.java:88)
   at org.netbeans.modules.maven.api.execute.RunUtils.run(RunUtils.java:86)
Comment 1 lolo_101 2012-04-25 09:18:02 UTC
Created attachment 118729 [details]
stacktrace
Comment 2 Marian Mirilovic 2012-04-25 10:14:28 UTC
3rd-party ?
Comment 3 Milos Kleint 2012-04-25 10:20:46 UTC
could be related to or duplicate of 201132
Comment 4 Jesse Glick 2012-04-25 16:22:29 UTC
["Bug #201132" that is, if you want Bugzilla to hyperlink it.]
Comment 5 Milos Kleint 2012-04-26 12:24:46 UTC
interestingly it works fine with doublequotes (as opposed to quotes used in the example)
Comment 6 Milos Kleint 2012-04-26 13:43:26 UTC
https://hg.netbeans.org/core-main/rev/7c1c7fa9a960
Comment 7 Quality Engineering 2012-04-27 10:01:19 UTC
Integrated into 'main-golden', will be available in build *201204270400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7c1c7fa9a960
User: Milos Kleint <mkleint@netbeans.org>
Log: #211686 only double quotes were used for quoting, also use regular quotes
Comment 8 Marian Mirilovic 2012-10-26 05:19:51 UTC
reported against NB 7.3 Beta ... see issue 220841
Comment 9 Marian Mirilovic 2012-10-26 05:20:04 UTC
*** Bug 220841 has been marked as a duplicate of this bug. ***
Comment 10 Milos Kleint 2012-10-30 10:17:25 UTC
in issue 220841 the line being parsed is -Djava.library.path="${project.build.directory}/target  ch.sitel.themis.batchrefactor.main.MainElpTransmissionLoaderBatch

which looks like user error, given that the double quote is after =, it's counterpart should be after /target.

we catch the exception and use Exceptions.printStackTrace(ex); to notify the user. I've changed that to a custom popup error message dialog 

https://hg.netbeans.org/core-main/rev/f92db6c691f2
Comment 11 Quality Engineering 2012-10-31 02:57:19 UTC
Integrated into 'main-golden', will be available in build *201210310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f92db6c691f2
User: Milos Kleint <mkleint@netbeans.org>
Log: #211686 turn away from Exceptions.printStackTrace to logging and popup message dialog