summaryrefslogtreecommitdiff
path: root/java/system_modules.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-03-14 18:15:28 -0700
committer Cole Faust <colefaust@google.com> 2024-03-14 18:15:28 -0700
commit7ef61d76f85af2a567594613673eb365ddcdb114 (patch)
treed430e997824c96fe0b9517c0c0657f8ce01366ad /java/system_modules.go
parented9005b55672ce511ee9458d10e90a5c984cdd70 (diff)
Delete jmod workDir
Files in this directory aren't exposed to the rest of the build, so deleting them saves some space. The `jmod create` command was also producing non-deterministic files, which are not relevant because they're not used anywhere else, but it makes it easier to find non-determinism that matters if we delete them. Test: Presubmits Change-Id: I5d57826b438368f24a7a2a7ab1ccd6c16f240124
Diffstat (limited to 'java/system_modules.go')
-rw-r--r--java/system_modules.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/system_modules.go b/java/system_modules.go
index 92e31cdf9..8e2d5d8ff 100644
--- a/java/system_modules.go
+++ b/java/system_modules.go
@@ -64,6 +64,7 @@ var (
// useful on Android, and (b) it causes errors with later versions of jlink
// when the jdk.internal.module is absent from java.base (as it is here).
` --disable-plugin system-modules && ` +
+ `rm -rf ${workDir} && ` +
`cp ${config.JrtFsJar} ${outDir}/lib/`,
CommandDeps: []string{
"${moduleInfoJavaPath}",