aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/tester
diff options
context:
space:
mode:
authorSteve Marion <steve.marion@sonarsource.com>2023-12-14 15:09:22 +0100
committersonartech <sonartech@sonarsource.com>2024-01-04 20:02:48 +0000
commitaec0c95e903db2ab7fdc3dfc6e90421e6342a277 (patch)
treeea2899fc29f7b6d970061207661a09d1a0581834 /sonar-core/tester
parent7013e543f07fca1831fd1efee29997981b6ec19b (diff)
downloadsonarqube-aec0c95e903db2ab7fdc3dfc6e90421e6342a277.tar.gz
sonarqube-aec0c95e903db2ab7fdc3dfc6e90421e6342a277.zip
SONAR-21195 allow plugins loaded in different containers to access classLoader resources. Integrate sonarsource-classeloader library into sonar-core source.
Diffstat (limited to 'sonar-core/tester')
-rw-r--r--sonar-core/tester/a.jarbin0 -> 894 bytes
-rw-r--r--sonar-core/tester/a/A.classbin0 -> 226 bytes
-rw-r--r--sonar-core/tester/a/A.java5
-rw-r--r--sonar-core/tester/a/a.txt1
-rw-r--r--sonar-core/tester/a_v2.jarbin0 -> 892 bytes
-rw-r--r--sonar-core/tester/a_v2/A.classbin0 -> 226 bytes
-rw-r--r--sonar-core/tester/a_v2/A.java6
-rw-r--r--sonar-core/tester/a_v2/a.txt1
-rw-r--r--sonar-core/tester/b.jarbin0 -> 827 bytes
-rw-r--r--sonar-core/tester/b/B.classbin0 -> 176 bytes
-rw-r--r--sonar-core/tester/b/B.java2
-rw-r--r--sonar-core/tester/b/b.txt1
-rw-r--r--sonar-core/tester/build.sh16
-rw-r--r--sonar-core/tester/c.jarbin0 -> 826 bytes
-rw-r--r--sonar-core/tester/c/C.classbin0 -> 176 bytes
-rw-r--r--sonar-core/tester/c/C.java2
-rw-r--r--sonar-core/tester/c/c.txt1
17 files changed, 35 insertions, 0 deletions
diff --git a/sonar-core/tester/a.jar b/sonar-core/tester/a.jar
new file mode 100644
index 00000000000..b2919e07c0e
--- /dev/null
+++ b/sonar-core/tester/a.jar
Binary files differ
diff --git a/sonar-core/tester/a/A.class b/sonar-core/tester/a/A.class
new file mode 100644
index 00000000000..1b88100eaad
--- /dev/null
+++ b/sonar-core/tester/a/A.class
Binary files differ
diff --git a/sonar-core/tester/a/A.java b/sonar-core/tester/a/A.java
new file mode 100644
index 00000000000..a29a8ffbaa4
--- /dev/null
+++ b/sonar-core/tester/a/A.java
@@ -0,0 +1,5 @@
+public class A {
+ public void version1() {
+
+ }
+}
diff --git a/sonar-core/tester/a/a.txt b/sonar-core/tester/a/a.txt
new file mode 100644
index 00000000000..0fdd823d5ea
--- /dev/null
+++ b/sonar-core/tester/a/a.txt
@@ -0,0 +1 @@
+version 1 of a.txt
diff --git a/sonar-core/tester/a_v2.jar b/sonar-core/tester/a_v2.jar
new file mode 100644
index 00000000000..1e0f89d1a76
--- /dev/null
+++ b/sonar-core/tester/a_v2.jar
Binary files differ
diff --git a/sonar-core/tester/a_v2/A.class b/sonar-core/tester/a_v2/A.class
new file mode 100644
index 00000000000..d9e11d70041
--- /dev/null
+++ b/sonar-core/tester/a_v2/A.class
Binary files differ
diff --git a/sonar-core/tester/a_v2/A.java b/sonar-core/tester/a_v2/A.java
new file mode 100644
index 00000000000..4f3a882de6d
--- /dev/null
+++ b/sonar-core/tester/a_v2/A.java
@@ -0,0 +1,6 @@
+public class A {
+
+ public void version2() {
+
+ }
+}
diff --git a/sonar-core/tester/a_v2/a.txt b/sonar-core/tester/a_v2/a.txt
new file mode 100644
index 00000000000..09b8dbbb2cc
--- /dev/null
+++ b/sonar-core/tester/a_v2/a.txt
@@ -0,0 +1 @@
+version 2 of a.txt
diff --git a/sonar-core/tester/b.jar b/sonar-core/tester/b.jar
new file mode 100644
index 00000000000..80985fabd1f
--- /dev/null
+++ b/sonar-core/tester/b.jar
Binary files differ
diff --git a/sonar-core/tester/b/B.class b/sonar-core/tester/b/B.class
new file mode 100644
index 00000000000..17df16a46bd
--- /dev/null
+++ b/sonar-core/tester/b/B.class
Binary files differ
diff --git a/sonar-core/tester/b/B.java b/sonar-core/tester/b/B.java
new file mode 100644
index 00000000000..66dd24ce675
--- /dev/null
+++ b/sonar-core/tester/b/B.java
@@ -0,0 +1,2 @@
+public class B {
+}
diff --git a/sonar-core/tester/b/b.txt b/sonar-core/tester/b/b.txt
new file mode 100644
index 00000000000..61780798228
--- /dev/null
+++ b/sonar-core/tester/b/b.txt
@@ -0,0 +1 @@
+b
diff --git a/sonar-core/tester/build.sh b/sonar-core/tester/build.sh
new file mode 100644
index 00000000000..823be7692b2
--- /dev/null
+++ b/sonar-core/tester/build.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+rm *.jar
+
+javac a/*.java
+jar cvf a.jar -C a/ .
+
+javac b/*.java
+jar cvf b.jar -C b/ .
+
+javac c/*.java
+jar cvf c.jar -C c/ .
+
+javac a_v2/*.java
+jar cvf a_v2.jar -C a_v2 .
+
diff --git a/sonar-core/tester/c.jar b/sonar-core/tester/c.jar
new file mode 100644
index 00000000000..76b546f5e94
--- /dev/null
+++ b/sonar-core/tester/c.jar
Binary files differ
diff --git a/sonar-core/tester/c/C.class b/sonar-core/tester/c/C.class
new file mode 100644
index 00000000000..a9c2f96622f
--- /dev/null
+++ b/sonar-core/tester/c/C.class
Binary files differ
diff --git a/sonar-core/tester/c/C.java b/sonar-core/tester/c/C.java
new file mode 100644
index 00000000000..d4053967aab
--- /dev/null
+++ b/sonar-core/tester/c/C.java
@@ -0,0 +1,2 @@
+public class C {
+}
diff --git a/sonar-core/tester/c/c.txt b/sonar-core/tester/c/c.txt
new file mode 100644
index 00000000000..f2ad6c76f01
--- /dev/null
+++ b/sonar-core/tester/c/c.txt
@@ -0,0 +1 @@
+c