Skip to content

Commit 47e75ee

Browse files
committed
Add tiered vmoptions to local build
engine.vmoptions in the basedir now only has includes for the following three files: /conf/base_includes.vmoptions contains the default options for all runs as of mirth 4.5.2. /conf/default_modules.vmoptions contains the java 9+ options as of 4.5.2. /conf/custom.vmoptions is empty other than usage instructions and is the target for user changes Signed-off-by: Tony Germano <tony@germano.name>
1 parent 6f113eb commit 47e75ee

File tree

6 files changed

+52
-2
lines changed

6 files changed

+52
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Lines begining with a # are ignored as comments.
2+
# Do not add customizations to this file.
3+
4+
-include-options conf/base_includes.vmoptions
5+
6+
# Comment out the following line if you are running on Java 8
7+
-include-options conf/default_modules.vmoptions
8+
9+
# Put any custom options in the following file
10+
-include-options conf/custom.vmoptions

server/build.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ docs.javadocs=${docs}/javadocs
1919
docs.javadocs.userapi=${docs.javadocs}/user-api
2020
installer=${basedir}/installer
2121
installer.lib=${installer}/lib
22+
basedir_includes=${basedir}/basedir-includes
2223

2324
# jars
2425
client-core.jar=mirth-client-core.jar
@@ -47,4 +48,4 @@ setup.docs=${setup}/docs
4748
# dist directory
4849
dist=${basedir}/dist
4950
dist.extensions=${dist}/extensions
50-
test.dist=${basedir}/testdist
51+
test.dist=${basedir}/testdist

server/build.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,11 @@
10021002
<fileset dir="${docs}" />
10031003
</copy>
10041004

1005+
<!-- copy basedir files -->
1006+
<copy todir="${setup}">
1007+
<fileset dir="${basedir_includes}" />
1008+
</copy>
1009+
10051010
<!-- create the server jar -->
10061011
<jar destfile="${setup.server.lib}/${server.jar}" basedir="${classes}">
10071012
<include name="com/mirth/connect/server/**" />

server/conf/base_includes.vmoptions

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# Do not modify this file! It may get overwritten in an update. Please put all custom
3+
# options in custom.vmoptions
4+
#
5+
-server
6+
-Xmx256m
7+
-Djava.awt.headless=true
8+
-Dapple.awt.UIElement=true

server/conf/custom.vmoptions

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Add any custom vmoptions to this file. Special directives are:
2+
#
3+
# -include-options <path to file>
4+
# : include options from another .vmoptions file. Applied recursively.
5+
#
6+
# -classpath <path>
7+
# : replace the classpath built so far with <path>
8+
#
9+
# -classpath/p <path>
10+
# : prepend <path> to classpath.
11+
#
12+
# -classpath/a <path>
13+
# : append <path> to classpath.
14+
#
15+
# -java-cmd <path to java command>
16+
# : use the java binary specified to launch the engine.
17+
#
18+
# Additionally, the form ${ENV_VAR} can be used anywhere in the file to substitute the value
19+
# from an environment variable.
20+
#
21+
# Any lines which do not match the special directives above will be passed through directly as
22+
# arguments to the java binary.

server/conf/default_modules.vmoptions

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#
2+
# Do not modify this file! It may get overwritten in an update. Please put all custom
3+
# options in custom.vmoptions
4+
#
15
--add-modules=java.sql.rowset
26
--add-exports=java.base/com.sun.crypto.provider=ALL-UNNAMED
37
--add-exports=java.base/sun.security.provider=ALL-UNNAMED
@@ -15,4 +19,4 @@
1519
--add-opens=java.desktop/java.awt=ALL-UNNAMED
1620
--add-opens=java.desktop/java.awt.color=ALL-UNNAMED
1721
--add-opens=java.desktop/java.awt.font=ALL-UNNAMED
18-
--add-opens=java.xml/com.sun.org.apache.xalan.internal.xsltc.trax=ALL-UNNAMED
22+
--add-opens=java.xml/com.sun.org.apache.xalan.internal.xsltc.trax=ALL-UNNAMED

0 commit comments

Comments
 (0)