.NET: Fix build script to copy jars even if Java build is skipped
@@ -74,7 +74,6 @@ param (
)
# 1) Build Java (Maven)
-if (!$skipJava) {
# Detect Ignite root directory
cd $PSScriptRoot\..
@@ -83,6 +82,7 @@ if (!$skipJava) {
echo "Ignite home detected at '$pwd'."
+if (!$skipJava) {
# Detect Maven
$mv = "mvn"
if ((Get-Command $mv -ErrorAction SilentlyContinue) -eq $null) {
@@ -107,6 +107,10 @@ if (!$skipJava) {
if ($LastExitCode -ne 0) {
echo "Java (Maven) build failed."; exit -1
}
+}
+else {
+ echo "Java (Maven) build skipped."
+}
# Copy (relevant) jars
$libsDir = "$PSScriptRoot\bin\Libs"
@@ -119,10 +123,6 @@ if (!$skipJava) {
# Restore directory
cd $PSScriptRoot
-}
-else {
- echo "Java (Maven) build skipped."
-}
# 2) Build .NET
