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 140590 - Make the VM options textfield in properties|run multilined
Summary: Make the VM options textfield in properties|run multilined
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker with 4 votes (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-17 17:14 UTC by Petr Cyhelsky
Modified: 2011-08-31 14:08 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 Petr Cyhelsky 2008-07-17 17:14:54 UTC
Reposting Ian McDonagh's suggestions from nbusers:

"One thing I'd really like to see in NetBeans is the ability to specify VM options (and maybe arguments too) in a
multiline text field so that you can have each option on a separate line.

NetBeans would then replace line breaks with spaces when running/debugging with that particular configuration to ensure
that the VM handles the VM options as expected.

For example, here are some VM options for a particular configuration in one of my projects:

-Xmx256m -Ddatax.configuration.file=/home/data/clients/clientx/conf.xml
-Ddatax.transform.scripts=/home/ian/.projectx/scripts
-Dlog4j.configuration=/home/ian/development/java/projects/proper/projectx/test/etc/logging.properties
-Dswing.aatext=true -DPlastic.defaultTheme=ExperienceBlue -DPlastic.menuFont="Arial-plain-11"
-DPlastic.controlFont="Arial-plain-11" -Dswing.systemlaf=com.jgoodies.looks.plastic.PlasticXPLookAndFeel
 
[Ignore wrapping and consider that the above would be a single line!]

Quite long, but a realistic example.  Managing the VM options also becomes cumbersome.

With multiline VM options the above example would look like this:

-Xmx256m
-Ddatax.configuration.file=/home/data/clients/clientx/conf.xml
-Ddatax.transform.scripts=/home/ian/.projectx/scripts
-Dlog4j.configuration=/home/ian/development/java/projects/proper/projectx/test/etc/logging.properties
-Dswing.aatext=true
-DPlastic.defaultTheme=ExperienceBlue
-DPlastic.menuFont="Arial-plain-11"
-DPlastic.controlFont="Arial-plain-11"
-Dswing.systemlaf=com.jgoodies.looks.plastic.PlasticXPLookAndFeel

This becomes much easier to manage.

Maybe even syntax highlighting would be nice :)" 

I second this - it seems to be reasonable idea.
Comment 1 mithun_gonsalvez 2008-07-18 08:07:44 UTC
Maybe even support to add properties file instead of all the Vm Args will help [I hope i am not asking for too much
here... :) ]

I would like to add one more thing... the Arguments [Parameters to the main method] should also come in multi-line....
Some times when i am trying to run some thing i do wonder why it is a text field and not a Text Area.... Not sure
whether that is how it is done, but you get the idea.

At least for starters, It Fix should be 
1. MultiLine VM-Options + Maybe even syntax highlighting would be nice :) [ If Possible, but this should be the last
stuff, Even support to load a Properties file instead of putting all the stuff in the box]
2. MultiLine Arguments [Parameters to the main method]