Skip to content

Commit

Permalink
Remove window generated classes
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
  • Loading branch information
sophia-guo committed May 15, 2024
1 parent 4670720 commit 9ac4e37
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions tooling/reproducible/repro_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,17 @@ function processModuleInfo() {
fi
}

# Remove windowns generate classes jdk/bin/server/classes.jsa & jdk/bin/server/classes_nocoops.jsa
function removeGeneratedClasses() {
local JDK_DIR="$1"
local OS="$2"

if [[ "$OS" =~ CYGWIN* ]]; then
rm -rf "$JDK_DIR/bin/server/classes.jsa"
rm -rf "$JDK_DIR/bin/server/classes_nocoops.jsa"
fi
}

# Remove all Signatures
function removeSignatures() {
local JDK_DIR="$1"
Expand Down
3 changes: 2 additions & 1 deletion tooling/reproducible/repro_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ OS="$2"

expandJDK "$JDK_DIR" "$OS"


removeGeneratedClasses "$JDK_DIR" "$OS"
if [[ "$OS" =~ CYGWIN* ]] || [[ "$OS" =~ Darwin* ]]; then

# Remove existing signature
removeSignatures "$JDK_DIR" "$OS"

Expand Down

0 comments on commit 9ac4e37

Please sign in to comment.