Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0: A few buildExtenion.gradle tweaks

Ryan Kurtz7c1285d48dae
diff --git a/Ghidra/RuntimeScripts/Common/support/buildExtension.gradle b/Ghidra/RuntimeScripts/Common/support/buildExtension.gradle
index 1ed35d1aa2..927ffdfb43 100644
--- a/Ghidra/RuntimeScripts/Common/support/buildExtension.gradle
+++ b/Ghidra/RuntimeScripts/Common/support/buildExtension.gradle
@@ -83,11 +83,12 @@ task zipSource (type: Zip) {
it.archiveBaseName = project.name + "-src"
it.archiveExtension = 'zip'
it.destinationDirectory = file(project.projectDir.path + "/build/tmp/src")
+ it.includeEmptyDirs = false
// We MUST copy from a directory, and not just grab a list of source files.
// This is the only way to preserve the directory structure.
it.from project.projectDir
- it.include 'src/**/*'
+ it.include 'src/main/java/'
}
task buildExtension (type: Zip) {
@@ -125,6 +126,7 @@ task buildExtension (type: Zip) {
exclude 'bin/**'
exclude 'src/**'
exclude '.gradle/**'
+ exclude '.vscode/**'
exclude '.classpath'
exclude '.project'
exclude '.pydevproject'