Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit b723b09

Browse files
committed
Update JVM and Neo4j versions. Launch Neo4j in a separate powershell console.
1 parent acaed49 commit b723b09

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

Dump/ADCP/ADCPInstances.ps1

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# https://cdn.azul.com/zulu/bin/zulu8.30.0.1-jdk8.0.172-win_x64.zip
2-
$jdkFile = "zulu8.30.0.1-jdk8.0.172-win_x64.zip"
3-
$jdkFolder = "zulu8.30.0.1-jdk8.0.172-win_x64"
4-
# https://neo4j.com/artifact.php?name=neo4j-community-3.4.1-windows.zip
5-
$neo4jFile = "neo4j-community-3.4.1-windows.zip"
6-
$neo4jFolder = "neo4j-community-3.4.1"
1+
# https://cdn.azul.com/zulu/bin/zulu8.36.0.1-ca-jdk8.0.202-win_x64.zip
2+
$jdkFile = "zulu8.36.0.1-ca-jdk8.0.202-win_x64.zip"
3+
$jdkFolder = "zulu8.36.0.1-ca-jdk8.0.202-win_x64"
4+
# https://neo4j.com/artifact.php?name=neo4j-community-3.5.3-windows.zip
5+
$neo4jFile = "neo4j-community-3.5.3-windows.zip"
6+
$neo4jFolder = "neo4j-community-3.5.3"
77
$sourcePath = $PSScriptRoot
88

99
function Install-ADCPJava {
@@ -87,7 +87,7 @@ function Remove-ADCPInstance {
8787
Write-Error "ERROR: Invalid InstanceID"
8888
return
8989
}
90-
90+
9191
Remove-Item -Path $instancePath -Recurse -Force
9292
}
9393

@@ -106,11 +106,17 @@ function Start-ADCPInstance {
106106
return
107107
}
108108

109-
Import-Module $instancePath\$neo4jFolder\bin\Neo4j-Management -Force
110-
Set-Neo4jEnv -Name "JAVA_HOME" -Value $destPath\$jdkFolder
111-
Remove-Item Env:NEO4J_CONF -ErrorAction SilentlyContinue
112-
Set-Neo4jEnv -Name "NEO4J_HOME" -Value $instancePath\$neo4jFolder
109+
$job_script =[scriptblock]::Create("
110+
`$host.UI.RawUI.WindowTitle = 'Neo4j for instance $instanceID'
111+
Import-Module $instancePath\$neo4jFolder\bin\Neo4j-Management -Force
112+
Set-Neo4jEnv -Name 'JAVA_HOME' -Value $destPath\$jdkFolder
113+
Remove-Item Env:NEO4J_CONF -ErrorAction SilentlyContinue
114+
Set-Neo4jEnv -Name 'NEO4J_HOME' -Value $instancePath\$neo4jFolder
115+
116+
# Launch Neo4j
117+
Invoke-Neo4j console
118+
")
113119

114-
# Launch Neo4j
115-
Invoke-Neo4j console
120+
$proc = Start-Process powershell $job_script
121+
$proc
116122
}

0 commit comments

Comments
 (0)