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 67998 - Save ${application.args} and ${run.jvmargs} as multiline values
Summary: Save ${application.args} and ${run.jvmargs} as multiline values
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-02 18:22 UTC by Jesse Glick
Modified: 2011-08-31 14:06 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-11-02 18:22:55 UTC
Dev build. Make a j2seproject. In Properties, set Application Args to "a b c"
and VM Args to "d e f". private.properties gets

application.args=a b c

and project.properties gets

run.jvmargs=d e f

I would have expected

application.args=\
    a \
    b \
    c

and

run.jvmargs=\
    d \
    e \
    f

Easily done by using EP.setProperty(String,String[]) of course. Problem:
currently StoreGroup provides no API to save split properties. Could either

1. Override StoreGroup in J2SEProjectProperties for these two props.

2. Add an API to SG like

public final Document createSplitStringDocument(PropertyEvaluator evaluator,
String propertyName, String splitter) throws PatternSyntaxException;

where splitter would be used to break apart values, e.g.

Pattern regex = Pattern.compile("(?<=" + splitter + ")");
// ...
String val;
String[] pieces = regex.split(val, -1);
Comment 1 Tomas Zezula 2005-11-03 09:03:18 UTC
Would be nice to have it in 5.0, maybe without API change in the 5.0.
The SG API can be changed later.