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 268021 - Possibility to add command line parameters to Wildfly start script needed
Summary: Possibility to add command line parameters to Wildfly start script needed
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WildFly (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: ehsavoie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-14 13:28 UTC by johannes.geiger
Modified: 2016-10-11 08:14 UTC (History)
1 user (show)

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 johannes.geiger 2016-09-14 13:28:32 UTC
When configuring Wildfly via standalone.xml one can use default properties directly provided by Wildfly (e.g. "jboss.server.config.dir") and/or invent custom properties (e.g. "org.example.project.datasource.name") instead of hard-coded values. The custom properties can be provided via two possibilities: Via explicitely named command line parameters or a properties file given via command line parameter.

As of Netbeans 8.1 one can not specifiy the actual command to run Wildfly with, one is unable to provide a Wildfly with custom properties (standalone.bat -Dorg.example.project.datasource.name=test or standalone.sh --properties=test.properties).
Comment 1 ehsavoie 2016-09-14 13:30:11 UTC
You can by passing them as the JVM arguments when editing the server configuration
Comment 2 ehsavoie 2016-09-14 13:30:31 UTC
not properties file though
Comment 3 johannes.geiger 2016-09-14 13:38:54 UTC
OK, thanks for the clarification, I tried the properties file, failed and discontinued testing.
Comment 4 ozinder 2016-10-10 11:08:35 UTC
I need this too to have multiple instances of wildfly running from netbeans.
Comment 5 ehsavoie 2016-10-10 15:03:40 UTC
Currently (aka 8.2) you can have as many wildfly instances as you want
Comment 6 ozinder 2016-10-11 08:14:20 UTC
It's true, that I can have mutliple instances, but these share the same base folder. You can name a different base using a parameter for standalone.bat. This would start wildfly correctly, but NB would not recognize the changed position of the files.

I think it's better to provide a way to specify base folder in the server configuration and use it within NB.

Made new proposal as https://netbeans.org/bugzilla/show_bug.cgi?id=268446