0d271691db0e2c5f0446ddb13430a2494c3caff0
configuration/environments_scripts/central_reverse_proxy/setup-central-reverse-proxy.sh
| ... | ... | @@ -82,8 +82,11 @@ terminationCheck "$?" |
| 82 | 82 | ssh -A "root@${IP}" "bash -s" << BUGZILLAEOF &>log.txt |
| 83 | 83 | cd /usr/share/bugzilla/ |
| 84 | 84 | # essentials bugzilla |
| 85 | -/usr/bin/perl -MCPAN -e 'install App::cpanminus' |
|
| 86 | -cpanm --notest SOAP::Lite |
|
| 85 | +/usr/bin/perl -MCPAN -e 'install App::cpanminus' </dev/null |
|
| 86 | +echo "Looking for cpanm: $( which cpanm )" |
|
| 87 | +echo "Trying to install SOAP::Lite" |
|
| 88 | +/usr/local/bin/cpanm --notest SOAP::Lite </dev/null |
|
| 89 | +echo "Trying to install other packages, starting with DateTime" |
|
| 87 | 90 | /usr/bin/perl install-module.pl DateTime |
| 88 | 91 | /usr/bin/perl install-module.pl DateTime::TimeZone |
| 89 | 92 | /usr/bin/perl install-module.pl Email::Sender |
java/com.sap.sailing.declination.test/src/com/sap/sailing/declination/test/NOAADeclinationImportTest.java
| ... | ... | @@ -1,7 +1,6 @@ |
| 1 | 1 | package com.sap.sailing.declination.test; |
| 2 | 2 | |
| 3 | 3 | import org.junit.jupiter.api.BeforeEach; |
| 4 | -import org.junit.jupiter.api.Disabled; |
|
| 5 | 4 | |
| 6 | 5 | import com.sap.sailing.declination.impl.NOAAImporterForTesting; |
| 7 | 6 |
java/com.sap.sailing.declination.test/src/com/sap/sailing/declination/test/NOAADeclinationServiceTest.java
| ... | ... | @@ -1,7 +1,6 @@ |
| 1 | 1 | package com.sap.sailing.declination.test; |
| 2 | 2 | |
| 3 | 3 | import org.junit.jupiter.api.BeforeEach; |
| 4 | -import org.junit.jupiter.api.Disabled; |
|
| 5 | 4 | |
| 6 | 5 | import com.sap.sailing.declination.impl.NOAAImporter; |
| 7 | 6 |
java/com.sap.sailing.declination.test/src/com/sap/sailing/declination/test/NOAADeclinationStoreTest.java
| ... | ... | @@ -1,7 +1,6 @@ |
| 1 | 1 | package com.sap.sailing.declination.test; |
| 2 | 2 | |
| 3 | 3 | import org.junit.jupiter.api.BeforeEach; |
| 4 | -import org.junit.jupiter.api.Disabled; |
|
| 5 | 4 | |
| 6 | 5 | import com.sap.sailing.declination.impl.NOAAImporter; |
| 7 | 6 |
java/com.sap.sailing.declination.test/src/com/sap/sailing/declination/test/NOAASimpleDeclinationTest.java
| ... | ... | @@ -1,7 +1,6 @@ |
| 1 | 1 | package com.sap.sailing.declination.test; |
| 2 | 2 | |
| 3 | 3 | import org.junit.jupiter.api.BeforeEach; |
| 4 | -import org.junit.jupiter.api.Disabled; |
|
| 5 | 4 | |
| 6 | 5 | import com.sap.sailing.declination.impl.NOAAImporter; |
| 7 | 6 |
java/com.sap.sailing.expeditionconnector/src/com/sap/sailing/expeditionconnector/UDPMirror.java
| ... | ... | @@ -30,25 +30,26 @@ public class UDPMirror { |
| 30 | 30 | } |
| 31 | 31 | int listeningOnPort = Integer.valueOf(args[c++]); |
| 32 | 32 | byte[] buf = new byte[65536]; |
| 33 | - DatagramSocket udpSocket = new DatagramSocket(listeningOnPort); |
|
| 34 | - DatagramPacket received = new DatagramPacket(buf, buf.length); |
|
| 35 | - DatagramSocket[] sendingSockets = new DatagramSocket[(args.length - 1) / 2]; |
|
| 36 | - DatagramPacket[] mirroredPackets = new DatagramPacket[(args.length - 1) / 2]; |
|
| 37 | - while (c < args.length - 1) { |
|
| 38 | - sendingSockets[(c - 1) / 2] = new DatagramSocket(); |
|
| 39 | - mirroredPackets[(c - 1) / 2] = new DatagramPacket(buf, buf.length, InetAddress.getByName(args[c]), |
|
| 40 | - Integer.valueOf(args[c + 1])); |
|
| 41 | - c += 2; |
|
| 42 | - } |
|
| 43 | - while (true) { |
|
| 44 | - udpSocket.receive(received); |
|
| 45 | - if (verbose) { |
|
| 46 | - String packetAsString = new String(received.getData(), received.getOffset(), received.getLength()).trim(); |
|
| 47 | - System.out.println(packetAsString); |
|
| 33 | + try (DatagramSocket udpSocket = new DatagramSocket(listeningOnPort)) { |
|
| 34 | + DatagramPacket received = new DatagramPacket(buf, buf.length); |
|
| 35 | + DatagramSocket[] sendingSockets = new DatagramSocket[(args.length - 1) / 2]; |
|
| 36 | + DatagramPacket[] mirroredPackets = new DatagramPacket[(args.length - 1) / 2]; |
|
| 37 | + while (c < args.length - 1) { |
|
| 38 | + sendingSockets[(c - 1) / 2] = new DatagramSocket(); |
|
| 39 | + mirroredPackets[(c - 1) / 2] = new DatagramPacket(buf, buf.length, InetAddress.getByName(args[c]), |
|
| 40 | + Integer.valueOf(args[c + 1])); |
|
| 41 | + c += 2; |
|
| 48 | 42 | } |
| 49 | - for (int i = 0; i < mirroredPackets.length; i++) { |
|
| 50 | - mirroredPackets[i].setLength(received.getLength()); |
|
| 51 | - sendingSockets[i].send(mirroredPackets[i]); |
|
| 43 | + while (true) { |
|
| 44 | + udpSocket.receive(received); |
|
| 45 | + if (verbose) { |
|
| 46 | + String packetAsString = new String(received.getData(), received.getOffset(), received.getLength()).trim(); |
|
| 47 | + System.out.println(packetAsString); |
|
| 48 | + } |
|
| 49 | + for (int i = 0; i < mirroredPackets.length; i++) { |
|
| 50 | + mirroredPackets[i].setLength(received.getLength()); |
|
| 51 | + sendingSockets[i].send(mirroredPackets[i]); |
|
| 52 | + } |
|
| 52 | 53 | } |
| 53 | 54 | } |
| 54 | 55 | } |