mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 23:05:50 +08:00
GP-542 corrected Ghidra Server classpath.frag file generation
This commit is contained in:
@@ -79,16 +79,14 @@ task generateGhidraServerClasspath {
|
|||||||
outfile.withPrintWriter { out ->
|
outfile.withPrintWriter { out ->
|
||||||
int idx = 0
|
int idx = 0
|
||||||
configurations.runGhidraServer.each { jarFile ->
|
configurations.runGhidraServer.each { jarFile ->
|
||||||
if (!jarFile.path.contains("/libsForBuild/")) {
|
def JAR_PATH = rootProject.relativePath(jarFile.absolutePath)
|
||||||
def JAR_PATH = rootProject.relativePath(jarFile.absolutePath)
|
File distPath = file("/")
|
||||||
File distPath = file("/")
|
String resPath
|
||||||
String resPath
|
for (Configuration conf : project.getConfigurations()) {
|
||||||
for (Configuration conf : project.getConfigurations()) {
|
resPath = findJarInDistribution(project, conf, jarFile)
|
||||||
resPath = findJarInDistribution(project, conf, jarFile)
|
if (resPath != null) {
|
||||||
if (resPath != null) {
|
out.println("wrapper.java.classpath.${++idx}=\${ghidra_home}/${resPath}")
|
||||||
out.println("wrapper.java.classpath.${++idx}=\${ghidra_home}/${resPath}")
|
break
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user