Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AD-915] Auto Installer - JVM included #124

Merged
merged 41 commits into from
Oct 6, 2022
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
3923e79
[AD-915] Embed JRE into install. Simplify versioning of JDBC driver.
Sep 29, 2022
939d902
[AD-915] Fixed setting the JDBC_DRIVER_VERSION
Sep 29, 2022
e5d8c88
[AD-915] Fixed setting the JDBC_DRIVER_VERSION
Sep 29, 2022
f86d8f7
[AD-915] Fixed setting the JDBC_DRIVER_VERSION
Sep 29, 2022
ed8f473
[AD-915] Attempting to debug Windows 32-bit JDBC installer
Sep 29, 2022
c1e0b0d
[AD-915] Attempting fix to Windows 32-bit JDBC installer
Sep 29, 2022
d7bda22
[AD-915] Correct indentation formatting.
Sep 29, 2022
3b851be
[AD-915] Code review improvements.
Sep 30, 2022
237a4eb
[AD-915] Temporary enable creating artifacts to get 32-bit installer.
Sep 30, 2022
534d4d9
[AD-915] Remove unnecessary "verbose" on jpackage command.
Sep 30, 2022
7c73c9b
[AD-915] Fixed Platform setting in JDBC installer main.wxs.in
Sep 30, 2022
3e56b15
[AD-915] Replace JDK installation with script on Windows.
Oct 3, 2022
86fd4a0
[AD-915] Attempt fix of JDK installation with script on Windows.
Oct 3, 2022
4256f7d
[AD-915] Attempt fix of JDK installation with script on Windows.
Oct 3, 2022
acafe8b
[AD-915] Increase tracing info for JDK installation with script on Wi…
Oct 3, 2022
20cd4ae
[AD-915] Change parameter to JDK installer script.
Oct 3, 2022
77707b0
[AD-915] Create JDKs directory, if not exists.
Oct 3, 2022
a2566f2
[AD-915] Fix syntax - Create JDKs directory, if not exists.
Oct 3, 2022
81310cb
[AD-915] Fix location - Create JDKs directory, if not exists.
Oct 3, 2022
bf8dacc
[AD-915] Fix setting of JAVA_HOME environment variable in GitHub work…
Oct 3, 2022
f073e62
[AD-915] Get full path of JDKs folder.
Oct 3, 2022
c5f15d5
[AD-915] Fix Resolve-Path call.
Oct 3, 2022
b72b529
[AD-915] Add path to $JAVA_HOME/bin
Oct 3, 2022
c840b8d
[AD-915] Refactor code to use 'jlink' and create a runtime image inst…
Oct 4, 2022
587a9ce
[AD-915] Attempt to build Windows 32-bit installer using 'jpackage'.
Oct 4, 2022
0c8f726
[AD-915] Attempt #2 to build Windows 32-bit installer using 'jpackage'.
Oct 4, 2022
948a320
[AD-915] More clean-up and make release artifacts smaller/cleaner.
Oct 4, 2022
c77e1cb
[AD-915] Attempt to fix clean-up and make release artifacts smaller/c…
Oct 4, 2022
4a699d5
[AD-915] Attempt #2 to fix clean-up and make release artifacts smalle…
Oct 4, 2022
4137c12
[AD-915] Attempt #3 to clean-up and make release artifacts smaller/cl…
Oct 4, 2022
ba014ea
[AD-915] Attempt #4 to clean-up and make release artifacts smaller/cl…
Oct 4, 2022
da622d1
[AD-915] Remove commented unused code.
Oct 4, 2022
35747da
[AD-915] Fix path to JVM.dll in JDBC installer template.
Oct 5, 2022
9e6e9d5
[AD-915] Set artifacts to be made on push to the develop branch.
Oct 5, 2022
790fecf
[AD-915] Improve naming and version numbers for installer
Oct 5, 2022
05c3093
[AD-915] Remove unused icon file.
Oct 5, 2022
f27fa77
[AD-915] Rename a installer resource for better clarity.
Oct 5, 2022
12a3614
[AD-915] Add tracing for JLINK_VERSION.
Oct 5, 2022
02f23d6
[AD-915] Fix issue with JLINK_VERSION having more than 3 version comp…
Oct 5, 2022
213d2e6
[AD-915] Code review changes.
Oct 6, 2022
829477e
[AD-915] Revert code to create artifacts - so now only on push to dev…
Oct 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ env:
DOC_DB_ODBC_INTEGRATION_TEST: 1
DOC_DB_LOG_PATH: "${{github.workspace}}/build/odbc/logs"
DOC_DB_LOG_LEVEL: "debug"
JDBC_DRIVER_VERSION: "1.3.1"
JAVA_HOME: "/usr/lib/jvm/java-17-amazon-corretto/"

jobs:
Expand Down Expand Up @@ -71,6 +70,11 @@ jobs:
sudo apt update
sudo apt install libcurl4-openssl-dev libssl-dev uuid-dev zlib1g-dev libpulse-dev linux-headers-$(uname -r) gcc gcc-multilib g++ g++-multilib linux-headers-$(uname -r) build-essential valgrind libboost-all-dev libbson-dev libsasl2-dev lcov

- name: Update environment with JDBC_DRIVER_VERSION
run: |
read -r JDBC_DRIVER_VERSION < ./src/JDBC_DRIVER_VERSION.txt
echo "JDBC_DRIVER_VERSION=$JDBC_DRIVER_VERSION" >> $GITHUB_ENV

- name: Cache DocumentDB JDBC JAR
id: cache-documentdb-jdbc-jar
uses: actions/cache@v3
Expand Down Expand Up @@ -214,6 +218,11 @@ jobs:
sudo apt update
sudo apt install libcurl4-openssl-dev libssl-dev uuid-dev zlib1g-dev libpulse-dev linux-headers-$(uname -r) gcc gcc-multilib g++ g++-multilib linux-headers-$(uname -r) build-essential valgrind libboost-all-dev libbson-dev libsasl2-dev lcov

- name: Update environment with JDBC_DRIVER_VERSION
run: |
read -r JDBC_DRIVER_VERSION < ./src/JDBC_DRIVER_VERSION.txt
echo "JDBC_DRIVER_VERSION=$JDBC_DRIVER_VERSION" >> $GITHUB_ENV

- name: Cache DocumentDB JDBC JAR
id: cache-documentdb-jdbc-jar
uses: actions/cache@v3
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/mac-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ env:
DOC_DB_ODBC_INTEGRATION_TEST: 1
DOC_DB_LOG_PATH: "${{github.workspace}}/build/odbc/logs"
DOC_DB_LOG_LEVEL: "debug"
JDBC_DRIVER_VERSION: "1.3.1"
ODBCINSTINI: "${{github.workspace}}/build/odbc/lib/documentdb-odbc-install.ini"
ODBCINI: "${{github.workspace}}/odbc.ini"

Expand Down Expand Up @@ -64,6 +63,11 @@ jobs:
chmod +x scripts/install_dependencies_mac.sh
./scripts/install_dependencies_mac.sh

- name: Update environment with JDBC_DRIVER_VERSION
run: |
read -r JDBC_DRIVER_VERSION < ./src/JDBC_DRIVER_VERSION.txt
echo "JDBC_DRIVER_VERSION=$JDBC_DRIVER_VERSION" >> $GITHUB_ENV

- name: Cache DocumentDB JDBC JAR
id: cache-documentdb-jdbc-jar
uses: actions/cache@v3
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/mac-debug-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ env:
DOC_DB_ODBC_INTEGRATION_TEST: 1
DOC_DB_LOG_PATH: "${{github.workspace}}/build/odbc/logs"
DOC_DB_LOG_LEVEL: "debug"
JDBC_DRIVER_VERSION: "1.3.1"
ODBCINSTINI: "${{github.workspace}}/build/odbc/lib/documentdb-odbc-install.ini"
ODBCINI: "${{github.workspace}}/odbc.ini"

Expand Down Expand Up @@ -71,6 +70,11 @@ jobs:
echo "/Library/Developer/CommandLineTools/usr/bin" >> $GITHUB_PATH
echo "/usr/local/bin/" >> $GITHUB_PATH

- name: Update environment with JDBC_DRIVER_VERSION
run: |
read -r JDBC_DRIVER_VERSION < ./src/JDBC_DRIVER_VERSION.txt
echo "JDBC_DRIVER_VERSION=$JDBC_DRIVER_VERSION" >> $GITHUB_ENV

- name: Cache DocumentDB JDBC JAR
id: cache-documentdb-jdbc-jar
uses: actions/cache@v3
Expand Down
84 changes: 68 additions & 16 deletions .github/workflows/win-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ env:
DOC_DB_PRIV_KEY_FILE: ~/certs/docdb-sshtunnel.pem
DOC_DB_LOG_PATH: "${{github.workspace}}/build/odbc/logs"
DOC_DB_LOG_LEVEL: "debug"
JDBC_DRIVER_VERSION: "1.3.1"
MONGO_IMPORT_COMMAND: "mongoimport.exe"
# Artifacts are created when pushing to develop branch on merge of pull requests.
SHOULD_CREATE_ARTIFACTS: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
SHOULD_CREATE_ARTIFACTS: "true" #${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
birschick-bq marked this conversation as resolved.
Show resolved Hide resolved

jobs:
build-windows32:
Expand Down Expand Up @@ -61,16 +60,36 @@ jobs:
run: |
Get-Content ./src/ODBC_DRIVER_VERSION.txt | ForEach-Object { echo "ODBC_DRIVER_VERSION=$_"; break; } >> $env:GITHUB_ENV

- name: Get Java distribution
- name: Update environment with JDBC_DRIVER_VERSION
shell: pwsh
run: |
Get-Content ./src/JDBC_DRIVER_VERSION.txt | ForEach-Object { echo "JDBC_DRIVER_VERSION=$_"; break; } >> $env:GITHUB_ENV

# Get first JDK to provide access to jpackage
- name: Get Java distribution (JDK 17, 32-bit)
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
architecture: x86

# Get first JDK to provide access to jlink
birschick-bq marked this conversation as resolved.
Show resolved Hide resolved
- name: Get Java distribution (JDK 11, 32-bit)
shell: pwsh
run: |
. ./scripts/functions_win.ps1
Install-JavaJdk -InstallParentPath "jdks" -PlatformArchitecture "x86" -JdkVersion "11"
echo "JAVA_HOME=$env:JAVA_HOME" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: "Update path for Java"
run: |
echo "${{ env.JAVA_HOME }}\bin\server" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "${{env.JAVA_HOME}}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "${{env.JAVA_HOME}}\bin\server" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Ensure jlink and jpackage have the expected versions
run: |
if ( -not ((jlink --version) -like "11*") ) { exit 1 }
if ( -not ((jpackage --version) -like "17*") ) { exit 1 }

- name: "Update path for WIX Toolset"
run: |
Expand Down Expand Up @@ -134,7 +153,14 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: docdb-odbc-driver-win32-${{env.ODBC_DRIVER_VERSION}}
path: build/odbc/cmake/Release
path: |
build/odbc/cmake/Release/*.dll
build/odbc/cmake/Release/*.msi
build/odbc/cmake/Release/*.exe
build/odbc/cmake/Release/*.pdb
!build/odbc/cmake/Release/images
!build/odbc/cmake/Release/jpackage-resources
!build/odbc/cmake/Release/runtime-image

- name: Upload performance test at push to develop
if: ${{env.SHOULD_CREATE_ARTIFACTS == 'true'}}
Expand Down Expand Up @@ -229,15 +255,21 @@ jobs:
run: |
Get-Content ./src/ODBC_DRIVER_VERSION.txt | ForEach-Object { echo "ODBC_DRIVER_VERSION=$_"; break; } >> $env:GITHUB_ENV

- name: Update environment with JDBC_DRIVER_VERSION
shell: pwsh
run: |
Get-Content ./src/JDBC_DRIVER_VERSION.txt | ForEach-Object { echo "JDBC_DRIVER_VERSION=$_"; break; } >> $env:GITHUB_ENV

- name: Get Java distribution
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
architecture: x64
shell: pwsh
run: |
. ./scripts/functions_win.ps1
Install-JavaJdk -InstallParentPath "jdks" -PlatformArchitecture "x64"
echo "JAVA_HOME=$env:JAVA_HOME" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: "Update path for Java"
run: |
echo "${{env.JAVA_HOME}}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "${{env.JAVA_HOME}}\bin\server" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: "Update path for WIX Toolset"
Expand Down Expand Up @@ -301,7 +333,14 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: docdb-odbc-driver-amd64-${{env.ODBC_DRIVER_VERSION}}
path: build/odbc/cmake/Release
path: |
build/odbc/cmake/Release/*.dll
build/odbc/cmake/Release/*.msi
build/odbc/cmake/Release/*.exe
build/odbc/cmake/Release/*.pdb
!build/odbc/cmake/Release/images
!build/odbc/cmake/Release/jpackage-resources
!build/odbc/cmake/Release/runtime-image

- name: Upload performance test at push to develop
if: ${{env.SHOULD_CREATE_ARTIFACTS == 'true'}}
Expand Down Expand Up @@ -367,15 +406,28 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Update environment with JDBC_DRIVER_VERSION
shell: pwsh
run: |
Get-Content ./src/JDBC_DRIVER_VERSION.txt | ForEach-Object { echo "JDBC_DRIVER_VERSION=$_"; break; } >> $env:GITHUB_ENV

#- name: Get Java distribution
birschick-bq marked this conversation as resolved.
Show resolved Hide resolved
# uses: actions/setup-java@v2
# with:
# distribution: 'temurin'
# java-version: '17'
# architecture: x64
alinaliBQ marked this conversation as resolved.
Show resolved Hide resolved

- name: Get Java distribution
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
architecture: x64
shell: pwsh
run: |
. ./scripts/functions_win.ps1
Install-JavaJdk -InstallParentPath "jdks" -PlatformArchitecture "x64"
echo "JAVA_HOME=$env:JAVA_HOME" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: "Update path for Java"
run: |
echo "${{env.JAVA_HOME}}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "${{env.JAVA_HOME}}\bin\server" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: "Update path for WIX Toolset"
Expand Down
4 changes: 1 addition & 3 deletions build_linux_debug64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ cmake ../src -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DCODE_COVERAGE="ON" -DBUILD_SHARE
cd ..

# Download the DocumentDB JDBC Driver
if [ -z "$JDBC_DRIVER_VERSION" ]; then
JDBC_DRIVER_VERSION="1.3.1"
fi
read -r JDBC_DRIVER_VERSION < "${PROJECT_DIR}/src/odbc/JDBC_DRIVER_VERSION.txt"
JDBC_DRIVER_FILENAME="documentdb-jdbc-$JDBC_DRIVER_VERSION-all.jar"
JDBC_DRIVER_FULLPATH="$DRIVER_BIN_DIR/libs/$JDBC_DRIVER_FILENAME"
export DOCUMENTDB_HOME="$DRIVER_BIN_DIR"
Expand Down
4 changes: 1 addition & 3 deletions build_linux_release64_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ cmake ../src -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCODE_COVERAGE="OFF" -DBUILD_SHARED
cd ..

# Download the DocumentDB JDBC Driver
if [ -z "$JDBC_DRIVER_VERSION" ]; then
JDBC_DRIVER_VERSION="1.3.1"
fi
read -r JDBC_DRIVER_VERSION < "${PROJECT_DIR}/src/odbc/JDBC_DRIVER_VERSION.txt"
JDBC_DRIVER_FILENAME="documentdb-jdbc-$JDBC_DRIVER_VERSION-all.jar"
JDBC_DRIVER_FULLPATH="$DRIVER_BIN_DIR/libs/$JDBC_DRIVER_FILENAME"
export DOCUMENTDB_HOME="$DRIVER_BIN_DIR"
Expand Down
4 changes: 1 addition & 3 deletions build_mac_debug64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ cmake ../src -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DCODE_COVERAGE="ON" -DBUILD_SHARE
cd ..

# Download the DocumentDB JDBC Driver
if [ -z "$JDBC_DRIVER_VERSION" ]; then
JDBC_DRIVER_VERSION="1.3.1"
fi
read -r JDBC_DRIVER_VERSION < "${PROJECT_DIR}/src/odbc/JDBC_DRIVER_VERSION.txt"
JDBC_DRIVER_FILENAME="documentdb-jdbc-$JDBC_DRIVER_VERSION-all.jar"
JDBC_DRIVER_FULLPATH="$DRIVER_BIN_DIR/libs/$JDBC_DRIVER_FILENAME"
export DOCUMENTDB_HOME="$DRIVER_BIN_DIR"
Expand Down
4 changes: 1 addition & 3 deletions build_mac_release64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ cmake ../src -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DCODE_COVERAGE="OFF" -DBUILD_SHAR
make -j 4

# Download the DocumentDB JDBC Driver
if [ -z "$JDBC_DRIVER_VERSION" ]; then
JDBC_DRIVER_VERSION="1.3.1"
fi
read -r JDBC_DRIVER_VERSION < "${PROJECT_DIR}/src/odbc/JDBC_DRIVER_VERSION.txt"
JDBC_DRIVER_FILENAME="documentdb-jdbc-$JDBC_DRIVER_VERSION-all.jar"
JDBC_DRIVER_FULLPATH="$DRIVER_BIN_DIR/libs/$JDBC_DRIVER_FILENAME"
export DOCUMENTDB_HOME="$DRIVER_BIN_DIR"
Expand Down
4 changes: 3 additions & 1 deletion scripts/build_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ $DRIVER_SOURCE_DIR = "${WORKING_DIR}\src"
$DRIVER_BUILD_DIR = "${BUILD_DIR}\odbc\cmake"

# Download the JDBC driver
$JDBC_DRIVER_VERSION = if ($JDBC_DRIVER_VERSION -eq $null) { "1.3.1" } else { $JDBC_DRIVER_VERSION }
foreach ( $line in Get-Content "$DRIVER_SOURCE_DIR\JDBC_DRIVER_VERSION.txt" ) {
$JDBC_DRIVER_VERSION = $line; break;
}
alinaliBQ marked this conversation as resolved.
Show resolved Hide resolved
$JDBC_DRIVER_FILENAME = "documentdb-jdbc-$JDBC_DRIVER_VERSION-all.jar"
$JDBC_DRIVER_FULLPATH = "$DRIVER_BUILD_DIR\$CONFIGURATION\libs\$JDBC_DRIVER_FILENAME"
if (-not (Test-Path -Path $JDBC_DRIVER_FULLPATH -PathType Leaf)) {
Expand Down
45 changes: 35 additions & 10 deletions scripts/functions_win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -211,21 +211,44 @@ function Confirm-JavaJdk {
# Installs an Amazon Corretto JDK into the user's folder and updates the JAVA_HOME and PATH environment variables.
function Install-JavaJdk {
[OutputType([Boolean])]
param ()
param (
$InstallParentPath = "$env:USERPROFILE\.jdks",
$PlatformArchitecture = "x64",
$JdkVersion = "17",
$JdkName = "amazon-corretto",
$JdkDownloadUrl = "https://corretto.aws/downloads/latest",
$Platform = "windows",
[switch]$InstallOnly
)

Write-Host "Installing Java JDK"
$jdksFolder = "$env:USERPROFILE\.jdks"
$jdkZipFileName = 'amazon-corretto-17-x64-windows-jdk.zip'
$jdkDownloadUri = "https://corretto.aws/downloads/latest/$jdkZipFileName"
$jdkZipFilePath = "$jdksFolder\$jdkZipFileName"

Write-Host "`$InstallParentPath = '$InstallParentPath'"
Write-Host "`$PlatformArchitecture = '$PlatformArchitecture'"
Write-Host "`$JdkVersion = '$JdkVersion'"
Write-Host "`$JdkName = '$JdkName'"
Write-Host "`$JdkDownloadUrl = '$JdkDownloadUrl'"
Write-Host "`$Platform = '$Platform'"

$jdksFolder = $InstallParentPath
$jdkZipFileName = "${JdkName}-${JdkVersion}-${PlatformArchitecture}-${Platform}-jdk.zip"
$jdkDownloadUri = "${JdkDownloadUrl}/$jdkZipFileName"
$tempFolderPath = Join-Path $Env:Temp $(New-Guid)
# Ensure parent folder exists
if ( -not (Test-Path -Path $jdksFolder)) {
New-Item -Type Directory -Path $jdksFolder -Force
}
$jdksFolder = Resolve-Path -Path $jdksFolder
$jdkZipFilePath = "$jdksFolder\$jdkZipFileName"

try {
# Download the JDK
Invoke-WebRequest $jdkDownloadUri -OutFile $jdkZipFilePath
Write-Host "After 'Invoke-WebRequest $jdkDownloadUri -OutFile $jdkZipFilePath'"
#Extract the zip file
New-Item -Type Directory -Path $tempFolderPath
Expand-Archive -Path $jdkZipFilePath $tempFolderPath
Write-Host "After 'Expand-Archive -Path $jdkZipFilePath $tempFolderPath'"

# Ensure unique folder
$contentsOfTempFolder = Get-ChildItem -Path $tempFolderPath -Directory -Name
Expand All @@ -235,13 +258,15 @@ function Install-JavaJdk {
}
# Place JDK in user's folder
$jdkFolderName = $contentsOfTempFolder
$Env:JAVA_HOME = "$jdksFolder\$jdkFolderName"
if ( -not (Test-Path -Path $Env:JAVA_HOME) ) {
if ( -not (Test-Path -Path "$jdksFolder\$jdkFolderName") ) {
Copy-Item -Path "$tempFolderPath\*" -Destination $jdksFolder -Recurse -Force
}

# Update PATH for bin (java.exe) and server (jvm.dll)
Set-JdkPath
# Update if not just an install, only
birschick-bq marked this conversation as resolved.
Show resolved Hide resolved
if ( -not $InstallOnly ) {
# Update JAVA_HOME and PATH for bin (java.exe) and server (jvm.dll)
$Env:JAVA_HOME = "$jdksFolder\$jdkFolderName"
Set-JdkPath
}
}
catch {
Write-Host "Error installing Java JDK."
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ cmake_minimum_required(VERSION 3.20)

# Update version number in ODBC_DRIVER_VERSION.txt file.
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/ODBC_DRIVER_VERSION.txt" ODBC_DRIVER_VERSION)
string(STRIP ${ODBC_DRIVER_VERSION} ODBC_DRIVER_VERSION)
project(DocumentDB-ODBC.C++ VERSION ${ODBC_DRIVER_VERSION})

include("${CMAKE_CURRENT_SOURCE_DIR}/modules/code-coverage.cmake")
Expand Down
1 change: 1 addition & 0 deletions src/JDBC_DRIVER_VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.3.1
alinaliBQ marked this conversation as resolved.
Show resolved Hide resolved
Loading