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
30 changes: 25 additions & 5 deletions client/ant-build.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<project name="mirth-client" basedir="." default="help">
<property file="build.properties" />
<target name="help">
<echo>Mirth Client Build Help</echo>
<echo>-----------------------</echo>
Expand Down Expand Up @@ -338,11 +339,23 @@
<classpath refid="testclasspath" />
</javac>
</target>

<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
<classpath path="${server}/lib/ant/jacocoant.jar"/>
</taskdef>


<path id="jacoco.classpath">
<fileset dir="${server}/lib/ant">
<include name="org.jacoco.ant-0.8.8.jar"/>
<include name="org.jacoco.core-0.8.8.jar"/>
<include name="org.jacoco.report-0.8.8.jar"/>
<include name="org.jacoco.agent-0.8.8.jar"/>
<include name="asm-9.2.jar"/>
<include name="asm-tree-9.2.jar"/>
<include name="asm-commons-9.2.jar"/>
</fileset>
</path>

<taskdef uri="antlib:org.jacoco.ant"
resource="org/jacoco/ant/antlib.xml"
classpathref="jacoco.classpath"/>

<target name="test-run" depends="test-compile">
<property name="junit-reports" value="junit-reports" />
<property name="code-coverage-reports" value="code-coverage-reports" />
Expand All @@ -353,6 +366,13 @@
<junit haltonfailure="false" fork="true" forkmode="once">
<jvmarg value="-Xms128m" />
<jvmarg value="-Xmx2048m" />
<jvmarg value="--add-opens=java.base/sun.misc=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/com.sun.rowset=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/com.sun.rowset.internal=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/com.sun.rowset.providers=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/javax.sql.rowset=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql/java.sql=ALL-UNNAMED"/>
<classpath>
<path refid="testclasspath" />
<dirset dir="${test_classes}"/>
Expand Down
Binary file added client/lib/commons-vfs2-2.10.0.jar
Binary file not shown.
Binary file removed client/lib/commons-vfs2-2.9.0.jar
Binary file not shown.
Binary file removed client/lib/guava-28.2-jre.jar
Binary file not shown.
Binary file added client/lib/guava-32.0.1-jre.jar
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@
// ///////////////////////////////////////////////////////
package com.mirth.connect.client.ui;

import java.lang.reflect.Method;
import java.awt.Desktop;
import java.net.URI;


public class BareBonesBrowserLaunch {

public static void openURL(String url) {
String osName = System.getProperty("os.name");
try {
if (osName.startsWith("Mac OS")) {
Class<?> fileMgr = Class.forName("com.apple.eio.FileManager");
Method openURL = fileMgr.getDeclaredMethod("openURL", new Class[] { String.class });
openURL.invoke(null, new Object[] { url });
if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
Desktop.getDesktop().browse(new URI(url));
} else {
System.err.println("Desktop browsing not supported on this platform.");
}
} else if (osName.startsWith("Windows")) {
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
} else {
Expand Down
6 changes: 3 additions & 3 deletions client/src/com/mirth/connect/client/ui/UIConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ public class UIConstants {
public static final Font MONOSPACED_FONT = new Font(MONOSPACED_FONT_NAME, Font.PLAIN, 12);

// issue link
public static final String ISSUE_TRACKER_LOCATION = "https://www.innovarhealthcare.com";
public static final String ISSUE_TRACKER_LOCATION = "https://github.com/Innovar-Healthcare/BridgeLink/issues";
// help link
public static String HELP_URL_LOCATION = "https://www.innovarhealthcare.com";
public static String HELP_URL_LOCATION = "https://github.com/Innovar-Healthcare/BridgeLink/discussions";
// help link
public static String HELP_DEFAULT_LOCATION = "https://www.innovarhealthcare.com";
public static String HELP_DEFAULT_LOCATION = "https://github.com/Innovar-Healthcare/BridgeLink/discussions";
// user api
public static String USER_API_LOCATION = "/javadocs/user-api/";
// user api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class DefaultAlertEditPanel extends AlertEditPanel {
private AlertModel alertModel;

public DefaultAlertEditPanel() {
this.parent = PlatformUI.MIRTH_FRAME;
this.parent = (Frame) PlatformUI.MIRTH_FRAME;
initComponents();
}

Expand Down Expand Up @@ -105,6 +105,8 @@ public void updateVariableList() {
variables.add("alertId");
variables.add("alertName");
variables.add("serverId");
variables.add("serverName");
variables.add("environmentName");
variables.add("globalMapVariable");
variables.add("date");

Expand Down
31 changes: 26 additions & 5 deletions command/build.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<project name="mirth-cli" basedir="." default="build">
<property file="build.properties" />

<target name="init">
<property file="build.properties" />

Expand Down Expand Up @@ -71,11 +73,23 @@
<classpath refid="testclasspath" />
</javac>
</target>

<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
<classpath path="${server}/lib/ant/jacocoant.jar"/>
</taskdef>


<path id="jacoco.classpath">
<fileset dir="${server}/lib/ant">
<include name="org.jacoco.ant-0.8.8.jar"/>
<include name="org.jacoco.core-0.8.8.jar"/>
<include name="org.jacoco.report-0.8.8.jar"/>
<include name="org.jacoco.agent-0.8.8.jar"/>
<include name="asm-9.2.jar"/>
<include name="asm-tree-9.2.jar"/>
<include name="asm-commons-9.2.jar"/>
</fileset>
</path>

<taskdef uri="antlib:org.jacoco.ant"
resource="org/jacoco/ant/antlib.xml"
classpathref="jacoco.classpath"/>

<target name="test-run" depends="test-compile">
<property name="junit-reports" value="junit-reports" />
<property name="code-coverage-reports" value="code-coverage-reports" />
Expand All @@ -86,6 +100,13 @@
<junit haltonfailure="false" fork="true" forkmode="once">
<jvmarg value="-Xms128m" />
<jvmarg value="-Xmx2048m" />
<jvmarg value="--add-opens=java.base/sun.misc=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/com.sun.rowset=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/com.sun.rowset.internal=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/com.sun.rowset.providers=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/javax.sql.rowset=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql/java.sql=ALL-UNNAMED"/>
<classpath>
<path refid="testclasspath" />
<dirset dir="${test_classes}"/>
Expand Down
Binary file added command/lib/commons-vfs2-2.10.0.jar
Binary file not shown.
Binary file removed command/lib/commons-vfs2-2.9.0.jar
Binary file not shown.
Binary file removed command/lib/guava-28.2-jre.jar
Binary file not shown.
Binary file added command/lib/guava-32.0.1-jre.jar
Binary file not shown.
Binary file not shown.
28 changes: 24 additions & 4 deletions donkey/build.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="donkey" default="build" basedir=".">
<property file="build.properties" />
<target name="init">
<property file="build.properties" />

Expand Down Expand Up @@ -70,10 +71,22 @@
<classpath refid="testclasspath" />
</javac>
</target>

<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
<classpath path="${server}/lib/ant/jacocoant.jar"/>
</taskdef>

<path id="jacoco.classpath">
<fileset dir="${server}/lib/ant">
<include name="org.jacoco.ant-0.8.8.jar"/>
<include name="org.jacoco.core-0.8.8.jar"/>
<include name="org.jacoco.report-0.8.8.jar"/>
<include name="org.jacoco.agent-0.8.8.jar"/>
<include name="asm-9.2.jar"/>
<include name="asm-tree-9.2.jar"/>
<include name="asm-commons-9.2.jar"/>
</fileset>
</path>

<taskdef uri="antlib:org.jacoco.ant"
resource="org/jacoco/ant/antlib.xml"
classpathref="jacoco.classpath"/>

<target name="test-run" depends="test-compile">
<property name="junit-reports" value="junit-reports" />
Expand All @@ -85,6 +98,13 @@
<junit haltonfailure="false" fork="true" forkmode="once">
<jvmarg value="-Xms128m" />
<jvmarg value="-Xmx2048m" />
<jvmarg value="--add-opens=java.base/sun.misc=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/com.sun.rowset=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/com.sun.rowset.internal=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/com.sun.rowset.providers=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql.rowset/javax.sql.rowset=ALL-UNNAMED"/>
<jvmarg value="--add-opens=java.sql/java.sql=ALL-UNNAMED"/>
<classpath>
<path refid="testclasspath" />
<dirset dir="${test_classes}"/>
Expand Down
Binary file removed donkey/lib/database/mysql-connector-j-8.2.0.jar
Binary file not shown.
Binary file added donkey/lib/database/mysql-connector-j-8.4.0.jar
Binary file not shown.
Binary file removed donkey/lib/guava/guava-28.2-jre.jar
Binary file not shown.
Binary file added donkey/lib/guava/guava-32.0.1-jre.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

package com.mirth.connect.donkey.model.message;

import java.util.HashMap;
import java.util.TreeMap;
import java.util.Map;

public class MapContent extends Content {
private Object content = new HashMap<String, Object>();
private Object content = new TreeMap<String, Object>();
private transient boolean persisted = false;

public MapContent() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

package com.mirth.connect.donkey.util;

import java.util.HashMap;
import java.util.TreeMap;
import java.util.Map;
import java.util.Map.Entry;

Expand Down Expand Up @@ -61,7 +61,7 @@ public static String serializeMap(Serializer serializer, Map<String, Object> map
try {
return serializer.serialize(map);
} catch (Exception e) {
Map<String, Object> newMap = new HashMap<String, Object>();
Map<String, Object> newMap = new TreeMap<String, Object>();

for (Entry<String, Object> entry : map.entrySet()) {
Object value = entry.getValue();
Expand Down Expand Up @@ -108,7 +108,7 @@ public static Map<String, Object> deserializeMapWithInvalidValues(Serializer ser
* If an exception occurs while deserializing, we build up a new map manually, attempting to
* deserialize each entry and replacing entries that fail with their string representations.
*/
Map<String, Object> map = new HashMap<String, Object>();
Map<String, Object> map = new TreeMap<String, Object>();

for (DonkeyElement entry : mapElement.getChildElements()) {
if (!entry.getNodeName().equalsIgnoreCase("entry")) {
Expand Down
Binary file removed manager/lib/guava-28.2-jre.jar
Binary file not shown.
Binary file added manager/lib/guava-32.0.1-jre.jar
Binary file not shown.
Loading
Loading