summaryrefslogtreecommitdiff
path: root/src/main/patch/lazlar/default.patch
blob: 228840ae9b445ac3665595e32fe218f416d8996f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

  TODO add needed stuff here.


--- a/pom.xml
+++ b/pom.xml
@@ -29,3 +29,3 @@
         <!-- apply spotless during compile phase -->
-        <source.format.apply.phase>compile</source.format.apply.phase>
+        <source.format.apply.phase>none</source.format.apply.phase>
 


--- a/lazlar-mdns/pom.xml
+++ b/lazlar-mdns/pom.xml
@@ -14,2 +14,7 @@
     <dependencies>
+        <dependency>                              <!-- TODO remove -->
+            <groupId>org.slf4j</groupId>          <!-- TODO remove -->
+            <artifactId>slf4j-simple</artifactId> <!-- TODO remove -->
+            <version>${slf4j.version}</version>   <!-- TODO remove -->
+        </dependency>                             <!-- TODO remove -->
         <dependency>


--- a/lazlar-web/pom.xml
+++ b/lazlar-web/pom.xml
@@ -21,2 +21,7 @@
     <dependencies>
+        <dependency>                              <!-- TODO remove -->
+            <groupId>org.slf4j</groupId>          <!-- TODO remove -->
+            <artifactId>slf4j-simple</artifactId> <!-- TODO remove -->
+            <version>${slf4j.version}</version>   <!-- TODO remove -->
+        </dependency>                             <!-- TODO remove -->
         <dependency>


  This is needed if I wanna run mDNS tests in my virtual machine. So the
  registered service route is of any use for my eddie which runs outside the VM
  and so has no chance to see lazlar via its IP inside the VM.

  UNUSED  --- a/lazlar-web/src/test/java/ch/post/it/paisa/lazlar/web/LazlarStarter.java
  UNUSED  +++ b/lazlar-web/src/test/java/ch/post/it/paisa/lazlar/web/LazlarStarter.java
  UNUSED  @@ -7,6 +7,18 @@
  UNUSED       boolean a = false;
  UNUSED       assert a = true;
  UNUSED       if (!a) throw new RuntimeException("https://stackoverflow.com/a/68893479/4415884");
  UNUSED  -    ServiceStarter.create().start();
  UNUSED  +    String chPostItHost = System.getProperty("ch.post.it.host");
  UNUSED  +    String paisaServiceHost = System.getProperty("paisa.service.host");
  UNUSED  +    new Thread(() -> {
  UNUSED  +      for(int i = 0 ; i < 5000 ; ++i ){
  UNUSED  +        System.setProperty("ch.post.it.host", chPostItHost);
  UNUSED  +        System.setProperty("paisa.service.host", paisaServiceHost);
  UNUSED  +        try{
  UNUSED  +          Thread.sleep(1);
  UNUSED  +        }catch(InterruptedException ex){ throw new UnsupportedOperationException/*TODO*/("not impl yet",ex);}
  UNUSED  +      }
  UNUSED  +    }).start();
  UNUSED  +    Thread.yield();
  UNUSED  +    ServiceStarter.create().withName("lazlar").withPort(7042).start();
  UNUSED     }
  UNUSED   }