Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions server/basedir-includes/engine.vmoptions
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Lines begining with a # are ignored as comments.
# Do not add customizations to this file.

-include-options conf/base_includes.vmoptions

# Comment out the following line if you are running on Java 8
-include-options conf/default_modules.vmoptions

# Put any custom options in the following file
-include-options conf/custom.vmoptions
3 changes: 2 additions & 1 deletion server/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ docs.javadocs=${docs}/javadocs
docs.javadocs.userapi=${docs.javadocs}/user-api
installer=${basedir}/installer
installer.lib=${installer}/lib
basedir_includes=${basedir}/basedir-includes

# jars
client-core.jar=mirth-client-core.jar
Expand Down Expand Up @@ -47,4 +48,4 @@ setup.docs=${setup}/docs
# dist directory
dist=${basedir}/dist
dist.extensions=${dist}/extensions
test.dist=${basedir}/testdist
test.dist=${basedir}/testdist
5 changes: 5 additions & 0 deletions server/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,11 @@
<fileset dir="${docs}" />
</copy>

<!-- copy basedir files -->
<copy todir="${setup}">
<fileset dir="${basedir_includes}" />
</copy>

<!-- create the server jar -->
<jar destfile="${setup.server.lib}/${server.jar}" basedir="${classes}">
<include name="com/mirth/connect/server/**" />
Expand Down
8 changes: 8 additions & 0 deletions server/conf/base_includes.vmoptions
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# Do not modify this file! It may get overwritten in an update. Please put all custom
# options in custom.vmoptions
#
-server
-Xmx256m
-Djava.awt.headless=true
-Dapple.awt.UIElement=true
22 changes: 22 additions & 0 deletions server/conf/custom.vmoptions
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Add any custom vmoptions to this file. Special directives are:
#
# -include-options <path to file>
# : include options from another .vmoptions file. Applied recursively.
#
# -classpath <path>
# : replace the classpath built so far with <path>
#
# -classpath/p <path>
# : prepend <path> to classpath.
#
# -classpath/a <path>
# : append <path> to classpath.
#
# -java-cmd <path to java command>
# : use the java binary specified to launch the engine.
#
# Additionally, the form ${ENV_VAR} can be used anywhere in the file to substitute the value
# from an environment variable.
#
# Any lines which do not match the special directives above will be passed through directly as
# arguments to the java binary.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# Do not modify this file! It may get overwritten in an update. Please put all custom
# options in custom.vmoptions
#
--add-modules=java.sql.rowset
--add-exports=java.base/com.sun.crypto.provider=ALL-UNNAMED
--add-exports=java.base/sun.security.provider=ALL-UNNAMED
Expand All @@ -15,4 +19,4 @@
--add-opens=java.desktop/java.awt=ALL-UNNAMED
--add-opens=java.desktop/java.awt.color=ALL-UNNAMED
--add-opens=java.desktop/java.awt.font=ALL-UNNAMED
--add-opens=java.xml/com.sun.org.apache.xalan.internal.xsltc.trax=ALL-UNNAMED
--add-opens=java.xml/com.sun.org.apache.xalan.internal.xsltc.trax=ALL-UNNAMED