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 45061 - EditableProperties.putProperty(String, new String[0]) results in ugly formatting
Summary: EditableProperties.putProperty(String, new String[0]) results in ugly formatting
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-06-16 22:28 UTC by Jesse Glick
Modified: 2006-03-24 09:47 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 Jesse Glick 2004-06-16 22:28:46 UTC
040616. If I make a new j2seproject, its
project.properties contains

# ...
jar.compress=false
javac.classpath=\

javac.debug=true
# ...

but for aesthetic reasons would prefer

# ...
jar.compress=false
javac.classpath=
javac.debug=true
# ...

It's true that adding an entry will then have to
modify the line with the key, thus:

# ...
jar.compress=false
javac.classpath=\      <-- APPEARS in DIFF
    val1
javac.debug=true
# ...

but this is true anyway of the last line whenever
you add a new entry:

# ...
jar.compress=false
javac.classpath=\
    val1:\            <-- APPEARS in DIFF
    val2
javac.debug=true
# ...

so I think that doesn't matter too much.
Comment 1 David Konecny 2004-06-17 08:41:08 UTC
Agreed. On option could be to always end array with backslash and
empty line, eg:

# ...
jar.compress=false
javac.classpath=\
    val1\

javac.debug=true
# ...

but I agree that it is ugly. I will fix that as you suggests.
Comment 2 Jesse Glick 2004-10-29 00:47:56 UTC
Have fix.
Comment 3 Jesse Glick 2004-10-29 15:03:38 UTC
committed   * Up-To-Date  1.11       
ant/project/src/org/netbeans/spi/project/support/ant/EditableProperties.java
committed   * Up-To-Date  1.8        
ant/project/test/unit/src/org/netbeans/spi/project/support/ant/EditablePropertiesTest.java
Comment 4 David Konecny 2004-11-01 08:42:23 UTC
Thanks.
Comment 5 Jaromir Uhrik 2005-07-14 16:20:36 UTC
Verified.