|
From: Leif M. <le...@ta...> - 2006-07-16 10:31:02
|
David,
On my system when I attempt to add a property, I get a dialog which
only shows me a
comment field. If I manually resize the dialog then I figured out that
a property name and
value is also available. You need to change the default dialog size.
Ideas:
One thing that you could easily do with Java is to have a simple
help dialog for each
property. If you are using Swing, you can show HTML content in a
label. Maybe add
property documentation by simply loading the content of the property's
documention
from the wrapper web site. You could probably even do some simple
manipulation of
the HTML to strip out the menus etc to get the simple content text. If
you want to play
with your own style sheets, you could also build local documentation
based on the
documention source files in the wrapper source distributions.
To make this really useful, it would be nice to have things set up
in such a way as to help
users discover what is available when configuring the wrapper. Rather
than a structured
editor, maybe set it up as a Windows style tab dialog. Tabs would be
"JVM configuration",
"Classpath", "Application Configuration", "Logging", etc.
The users would not have to necessarily see the actual properties.
If you automatically add the wrapper.commandfile and
wrapper.restart.reload_configuration
properties, you could do things like restarting the wrapper to update
its configuration all
from within your tool. Note that not all properties are reloadable.
A great configuration tool would be a good addition to the Wrapper.
I am looking
forward to seeing where you take this.
Cheers,
Leif
David Days wrote:
> Leif (and anyone else interested.)
>
> I've placed the Jar file on my company site (please excuse the
> sparseness if you look around) at:
>
> http://www.tdcs.cc/apps/jswconf/JSWConf.jar (for some reason,
> capitalization is important when specifying the file)
>
> My hosting service is reluctant to add the mime-type for Java Web
> Start, but you can download the JNLP file and get any updates using
> the following:
>
> http://www.tdcs.cc/apps/JSWConf.jnlp (again, caps seem to be
> important to the hosting service)
>
> Running: Either use the jnlp file or enter "java -jar
> JSWConf.jar" That's it!
>
> Usage:
>
> * Select the file using the "Load" button
> * The list of configuration properties is in the lower window:
> Green indicates enabled files, Red indicates disables (commented
> out)
> * Select a property and the property, value, state
> (enabled/disabled), and comments will be displayed in the top panel.
> * Changes made are instantaneous
> * "Add" places the new property below the currently selected one.
> * "Remove" deletes the currently selected property.
> * If you want to go back to the originally loaded configuration,
> select "Reload"
> * Click "Save" and the file will be written back to the same place
> you loaded it from.
> * Empty property settings (anything with a blank before the "=")
> are dropped when writing the output.
>
> Bugs/Shortcomings/"Gee, I'd like it to do this..."/Next version
> (or so)
>
> * Everything has to be manually entered: No auto fill of jars, no
> file selection (yet), no automatic use of environment settings
> * No pre-select list of properties (simple enough to do, probably
> in the next version)
> * Needs to split up the properties into their relevant sections
> (JVM, Application Params, Service config, etc)
> * No GPL Notice within the application yet, but I'm going on
> record as saying that anyone who wants to grab it, mod it, and
> use it in accordance with the GPL has my blessing.
> * Even an unmodded wrapper.conf file looks slightly different
> ("diff original-wrapper.conf saved-wrapper.conf" makes it seem
> as if nothing is the same), but appears to follow the observable
> conventions of the sample wrapper.conf. This is basically a
> reverse-engineer job--if anyone can direct me to the
> documentation for the "standard" I'll try to make it compliant
> to the letter.
>
> I've had the IO function repeatedly crunch through a file 100
> times (load and unload) and the output is consistent. If anyone has
> any weirdness show up, please let me know. I've tried hard to stamp
> out unwanted padding and such, but I may have missed something.
>
> As always, feel free to pass on criticisms, complaints, faint
> praise, left-handed compliments, and cash bribes. :-)
>
> Hope this helps.
> David Days
>
> "Never confuse movement with action."
> --Hemingway
>
>>
> ------------------------------------------------------------------------
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|