[wildfly-dev] MORE_JAVA_OPTS in standalone.sh

James R. Perkins jperkins at redhat.com
Wed Mar 18 12:29:53 EDT 2015



On 03/18/2015 09:26 AM, Arun Gupta wrote:
> On Wed, Mar 18, 2015 at 9:08 AM, James R. Perkins <jperkins at redhat.com> wrote:
>> This will definitely be an issue. I can guarantee that some will want to
>> replace one option that's already defined resulting in a duplicate.
>> Processing the either option looking for duplicates is not an option.
>> Every time we introduce something that requires scanning JAVA_OPTS it's
>> extremely painful and error prone.
> Valid point.
>
> How do we recommend users to specify JAVA_OPTS in that case? Edit
> standalone.conf?
For now yes. I say for now because I have an ultimate goal of removing 
most of the logic from the scripts in general :) Whether or not that 
will become reality has not yet been decided.
>
>> In docker wouldn't we just do something like:
>>
>> RUN echo "JAVA_OPTS=\"$JAVA_OPTS -Dkey.value\"" >>
>> $JBOSS_HOME/standalone.conf
> This worked very well, thanks for the tip!
Excellent!
>
> Arun
>
>>
>
>

-- 
James R. Perkins
JBoss by Red Hat



More information about the wildfly-dev mailing list