summaryrefslogtreecommitdiff
path: root/dev-util/ghidra/files/ghidra-12.2-system-yajsw.patch
blob: c27d81f7f58e1b453a1f60e3de4ad24e3a94e959 (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
--- a/Ghidra/Features/GhidraServer/build.gradle
+++ b/Ghidra/Features/GhidraServer/build.gradle
@@ -37,18 +37,4 @@
 
+// System YAJSW.
 CopySpec yajswCopySpec = copySpec {
-	File depsFile = file("${DEPS_DIR}/GhidraServer/${yajswRelease}.zip")
-	File binRepoFile = file("${BIN_REPO}/Ghidra/Features/GhidraServer/${yajswRelease}.zip")
-
-	// First check if the file is in the dependencies repo.  If not, check in the bin repo.
-	def yajswZipTree = depsFile.exists() ? zipTree(depsFile) : zipTree(binRepoFile)
-	
-	from(yajswZipTree) {
-		include "${yajswRelease}/lib/core/**"
-		include "${yajswRelease}/lib/extended/**"
-		include "${yajswRelease}/templates/**"
-		include "${yajswRelease}/*.jar"
-		include "${yajswRelease}/doc/**"
-		include "${yajswRelease}/LICENSE.txt"
-		include "${yajswRelease}/yajsw.policy.txt"
-	}
 }
--- a/Ghidra/RuntimeScripts/server/ghidraSvr
+++ b/Ghidra/RuntimeScripts/server/ghidraSvr
@@ -121,3 +121,4 @@
 
-WRAPPER_HOME=$(find "${DATA_DIR}" -maxdepth 1 -name "${WRAPPER_NAME_PREFIX}*" -type d | head -n 1)
+WRAPPER_HOME=$(java-config --classpath=yajsw) || exit 1
+WRAPPER_HOME="${WRAPPER_HOME%/*}"