File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed
Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,20 @@ function zip_native_debug_symbols() {
132132 tar --no-recursion --null -T - -czf ../" $jbr_diz_name " .tar.gz) || do_exit $?
133133}
134134
135+ function zip_native_debug_symbols_win() {
136+ image_bundle_path=$( echo $1 | cut -d" /" -f-4)
137+ jdk_name=$( echo $1 | cut -d" /" -f5)
138+ jbr_pdb_name=$2
139+
140+ [ -d " $jbr_pdb_name " ] && rm -rf $jbr_pdb_name
141+ mkdir $jbr_pdb_name
142+
143+ rsync_target=" ../../../../" $jbr_pdb_name
144+ (cd $image_bundle_path && find . -name ' *' -exec rsync -R {} $rsync_target \; )
145+
146+ (/usr/bin/zip -r $jbr_pdb_name .zip $jbr_pdb_name ) || do_exit $?
147+ }
148+
135149function do_exit() {
136150 exit_code=$1
137151 [ $do_reset_changes -eq 1 ] && git checkout HEAD jb/project/tools/common/modules.list src/java.desktop/share/classes/module-info.java
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ function create_image_bundle {
8080 rsync -amv --include=" */" --include=" *.pdb" --exclude=" *" $dir $__root_dir
8181 done
8282 copy_jmods " $__modules " " $__modules_path " " $__root_dir " /jmods
83+ zip_native_debug_symbols_win $IMAGES_DIR /symbols " ${__root_dir} _pdb"
8384 fi
8485}
8586
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ function create_image_bundle {
7373 rsync -amv --include=" */" --include=" *.pdb" --exclude=" *" $dir $__root_dir
7474 done
7575 copy_jmods " $__modules " " $__modules_path " " $__root_dir " /jmods
76+ zip_native_debug_symbols_win $IMAGES_DIR /symbols " ${__root_dir} _pdb"
7677 fi
7778}
7879
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ function create_image_bundle {
6969 rsync -amv --include=" */" --include=" *.pdb" --exclude=" *" $dir $__root_dir
7070 done
7171 copy_jmods " $__modules " " $__modules_path " " $__root_dir " /jmods
72+ zip_native_debug_symbols_win $IMAGES_DIR /symbols " ${__root_dir} _pdb"
7273 fi
7374}
7475
You can’t perform that action at this time.
0 commit comments