From 7c1285d48dae1bf84658390e34f9af2c07904e48 Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Wed, 2 Apr 2025 11:39:13 -0400 Subject: [PATCH] GP-0: A few buildExtenion.gradle tweaks * Excluding .vscode/ from the distro * Only including src/main/java in lib/*-src.zip --- Ghidra/RuntimeScripts/Common/support/buildExtension.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'