Skip to content

Commit

Permalink
Version 4.09
Browse files Browse the repository at this point in the history
Bug fix for config.xml load
  • Loading branch information
C4J committed Jul 2, 2023
1 parent 55ec152 commit 157f108
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion b5Middleware/b5middleware.install4j
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<install4j version="10.0.6" transformSequenceNumber="10">
<directoryPresets config="./xslt/referenceData.xml" />
<application name="Commander4j Middleware" applicationId="1915-8055-3520-8512" mediaDir="../../../Distribution/java11/b5middleware4j" compression="9" shortName="c4jMiddleware" publisher="David Garratt" publisherWeb="http://www.commander4j.com" version="4.08" allPathsRelative="true" macVolumeId="ebde9226275d23ed" javaMinVersion="11" javaMaxVersion="11">
<application name="Commander4j Middleware" applicationId="1915-8055-3520-8512" mediaDir="../../../Distribution/java11/b5middleware4j" compression="9" shortName="c4jMiddleware" publisher="David Garratt" publisherWeb="http://www.commander4j.com" version="4.09" allPathsRelative="true" macVolumeId="ebde9226275d23ed" javaMinVersion="11" javaMaxVersion="11">
<languages skipLanguageSelection="true">
<additionalLanguages>
<language id="da" />
Expand Down
Binary file modified b5Middleware/c4jMiddleware.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion b5Middleware/src/com/commander4j/mw/StartMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class StartMain

Logger logger = org.apache.logging.log4j.LogManager.getLogger((StartMain.class));
public MiddlewareConfig cfg;
public static String version = "4.08";
public static String version = "4.09";
Boolean running = false;
LogArchiveThread archiveLog;
StatusThread statusthread;
Expand Down
9 changes: 7 additions & 2 deletions b5Middleware/src/com/commander4j/sys/MiddlewareConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,15 @@ public LinkedList<Map> loadMaps(String filename)

int outputSeq = 1;

while (doc.findXPath("/config/map[" + String.valueOf(mapSeq) + "]/output[" + String.valueOf(outputSeq) + "]/@enabed").trim() != "")
while (doc.findXPath("/config/map[" + String.valueOf(mapSeq) + "]/output[" + String.valueOf(outputSeq) + "]/@id").trim() != "")
{

String outputEnabled = doc.findXPath("/config/map[" + String.valueOf(mapSeq) + "]/output[" + String.valueOf(outputSeq) + "]/@enabed").trim();
String outputEnabled = util.replaceNullStringwithBlank(doc.findXPath("/config/map[" + String.valueOf(mapSeq) + "]/output[" + String.valueOf(outputSeq) + "]/@enabed").trim());

if (outputEnabled.equals(""))
{
outputEnabled = util.replaceNullStringwithBlank(doc.findXPath("/config/map[" + String.valueOf(mapSeq) + "]/output[" + String.valueOf(outputSeq) + "]/@enabled").trim());
}

if (outputEnabled.toUpperCase().equals("Y"))
{
Expand Down

0 comments on commit 157f108

Please sign in to comment.