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 202759 - maven goal properties aren't escaped
Summary: maven goal properties aren't escaped
Status: RESOLVED DUPLICATE of bug 189119
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.1
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 21:58 UTC by athompson
Modified: 2011-09-28 16:39 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 athompson 2011-09-27 21:58:08 UTC
In Maven projects, you can specify additional properties to be passed to Maven goals in the "Set Properties:" input on the "Actions" page.  However, the text isn't escaped properly, which causes exceptions to be thrown and the nbactions.xml file to be butchered.  For example, if you try to add the property:

foo="bar"

(with the quotes), an IllegalNameException is thrown and the nbactions.xml file is created blank.  This later causes a parse exception when trying to reload the project.  Even more madness ensues if you're foolish enough to try to use a backslash or a "<".  Please escape the properties (and unescape when displaying them again) so that what you specify to the right of the "=" is verbatim what you get (including any quotes and leading spaces).
Comment 1 Jesse Glick 2011-09-28 16:39:14 UTC
Workaround is likely to edit nbactions.xml directly.

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