changed build system to generate all external jar files used file.

This commit is contained in:
ghidravore
2020-12-08 13:03:36 -05:00
committed by ghidra1
parent fb4380155e
commit 8b054814a8
6 changed files with 84 additions and 14 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ plugins.withType(JavaPlugin) {
// External Libraries
gradle.taskGraph.whenReady { taskGraph ->
List<String> externalPaths = getExternalDependencies(p)
List<String> externalPaths = getExternalRuntimeDependencies(p)
externalPaths.each { path ->
from (path) {
into {zipPath + "/lib" }
+16 -1
View File
@@ -12,8 +12,22 @@ task prepDev {
// the GhidraLauncher depends on this file to build the classpath in dev mode
dependsOn { generateLibraryDependencyMapping }
// generate list of all library files used to build and run ghidra. (not strictly necessary here, but nice to have)
dependsOn { generateAllExternalLibsFile }
}
/******************************************************************************************
* TASK generateAllExternalLibsFile
*
* Summary: Creates a file that lists all libraries used to build and run Ghidra
******************************************************************************************/
task generateAllExternalLibsFile {
doFirst{
generateAllExternalLibsFile()
}
}
/******************************************************************************************
* TASK generateLibraryDependencyMapping
@@ -24,4 +38,5 @@ task generateLibraryDependencyMapping {
doFirst{
generateLibraryDependencyMapping()
}
}
}
+1 -1
View File
@@ -61,7 +61,7 @@ task zipExtensions (type: Zip) {
/////////////////
gradle.taskGraph.whenReady { taskGraph ->
if (project.plugins.withType(JavaPlugin)) {
List<String> externalPaths = getExternalDependencies(p)
List<String> externalPaths = getExternalRuntimeDependencies(p)
externalPaths.each { path ->
from (path) {
into { getBaseProjectName(p) + "/lib" }
+1 -1
View File
@@ -82,7 +82,7 @@ def Map<String, String> getModuleManifestIp(Project project) {
*********************************************************************************/
def checkExternalLibsInMap(Map<String, String> map, Project project) {
if (project.plugins.withType(JavaPlugin)) {
List<String> libs = getExternalDependencies(project)
List<String> libs = getExternalRuntimeDependencies(project)
libs.each { lib ->
String libName = new File(lib).getName() // get just the filename without the path
String relativePath = "lib/"+libName;