Skip to content

Commit

Permalink
restoring the --openjdk-source-location after PR#2702 fixing#4065
Browse files Browse the repository at this point in the history
  • Loading branch information
judovana committed Nov 29, 2024
1 parent 4a141b1 commit dc988ae
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -765,8 +765,12 @@ createSourceArchive() {
exit 1
fi
cd "${BUILD_CONFIG[WORKSPACE_DIR]}/${BUILD_CONFIG[WORKING_DIR]}"
echo "Temporarily moving VCS source dir to ${tmpSourceVCS}"
mv "${sourceDir}/.git" "${tmpSourceVCS}"
if [ -e "${sourceDir}/.git" ] ; then
echo "Temporarily moving VCS source dir to ${tmpSourceVCS}"
mv "${sourceDir}/.git" "${tmpSourceVCS}"
else
echo "No VCS source dir found in ${sourceDir}"
fi
echo "Temporarily moving source dir to ${sourceArchiveTargetPath}"
mv "${sourceDir}" "${sourceArchiveTargetPath}"

Expand All @@ -775,8 +779,10 @@ createSourceArchive() {

echo "Restoring source dir from ${sourceArchiveTargetPath} to ${sourceDir}"
mv "${sourceArchiveTargetPath}" "${sourceDir}"
echo "Restoring VCS source dir from ${tmpSourceVCS} to ${sourceDir}/.git"
mv "${tmpSourceVCS}" "${sourceDir}/.git"
if [ -e "${tmpSourceVCS}" ] ; then
echo "Restoring VCS source dir from ${tmpSourceVCS} to ${sourceDir}/.git"
mv "${tmpSourceVCS}" "${sourceDir}/.git"
fi
cd "${oldPwd}"
}

Expand Down

0 comments on commit dc988ae

Please sign in to comment.