From aec0c95e903db2ab7fdc3dfc6e90421e6342a277 Mon Sep 17 00:00:00 2001 From: Steve Marion Date: Thu, 14 Dec 2023 15:09:22 +0100 Subject: SONAR-21195 allow plugins loaded in different containers to access classLoader resources. Integrate sonarsource-classeloader library into sonar-core source. --- sonar-core/tester/a.jar | Bin 0 -> 894 bytes sonar-core/tester/a/A.class | Bin 0 -> 226 bytes sonar-core/tester/a/A.java | 5 +++++ sonar-core/tester/a/a.txt | 1 + sonar-core/tester/a_v2.jar | Bin 0 -> 892 bytes sonar-core/tester/a_v2/A.class | Bin 0 -> 226 bytes sonar-core/tester/a_v2/A.java | 6 ++++++ sonar-core/tester/a_v2/a.txt | 1 + sonar-core/tester/b.jar | Bin 0 -> 827 bytes sonar-core/tester/b/B.class | Bin 0 -> 176 bytes sonar-core/tester/b/B.java | 2 ++ sonar-core/tester/b/b.txt | 1 + sonar-core/tester/build.sh | 16 ++++++++++++++++ sonar-core/tester/c.jar | Bin 0 -> 826 bytes sonar-core/tester/c/C.class | Bin 0 -> 176 bytes sonar-core/tester/c/C.java | 2 ++ sonar-core/tester/c/c.txt | 1 + 17 files changed, 35 insertions(+) create mode 100644 sonar-core/tester/a.jar create mode 100644 sonar-core/tester/a/A.class create mode 100644 sonar-core/tester/a/A.java create mode 100644 sonar-core/tester/a/a.txt create mode 100644 sonar-core/tester/a_v2.jar create mode 100644 sonar-core/tester/a_v2/A.class create mode 100644 sonar-core/tester/a_v2/A.java create mode 100644 sonar-core/tester/a_v2/a.txt create mode 100644 sonar-core/tester/b.jar create mode 100644 sonar-core/tester/b/B.class create mode 100644 sonar-core/tester/b/B.java create mode 100644 sonar-core/tester/b/b.txt create mode 100644 sonar-core/tester/build.sh create mode 100644 sonar-core/tester/c.jar create mode 100644 sonar-core/tester/c/C.class create mode 100644 sonar-core/tester/c/C.java create mode 100644 sonar-core/tester/c/c.txt (limited to 'sonar-core/tester') diff --git a/sonar-core/tester/a.jar b/sonar-core/tester/a.jar new file mode 100644 index 00000000000..b2919e07c0e Binary files /dev/null and b/sonar-core/tester/a.jar differ diff --git a/sonar-core/tester/a/A.class b/sonar-core/tester/a/A.class new file mode 100644 index 00000000000..1b88100eaad Binary files /dev/null and b/sonar-core/tester/a/A.class 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 Binary files /dev/null and b/sonar-core/tester/a_v2.jar 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 Binary files /dev/null and b/sonar-core/tester/a_v2/A.class 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 Binary files /dev/null and b/sonar-core/tester/b.jar differ diff --git a/sonar-core/tester/b/B.class b/sonar-core/tester/b/B.class new file mode 100644 index 00000000000..17df16a46bd Binary files /dev/null and b/sonar-core/tester/b/B.class 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 Binary files /dev/null and b/sonar-core/tester/c.jar differ diff --git a/sonar-core/tester/c/C.class b/sonar-core/tester/c/C.class new file mode 100644 index 00000000000..a9c2f96622f Binary files /dev/null and b/sonar-core/tester/c/C.class 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 -- cgit v1.2.3