start-vector-java-demo.ps1 525 B

1234567891011121314151617181920
  1. $ErrorActionPreference = "Stop"
  2. $root = Split-Path -Parent $PSScriptRoot
  3. $vector = Join-Path $root ".tools/vector-0.48.0-x86_64-pc-windows-msvc/bin/vector.exe"
  4. $config = Join-Path $root "examples/java-demo-app/vector.yaml"
  5. if (-not (Test-Path $vector)) {
  6. throw "Vector executable not found at $vector"
  7. }
  8. if (-not (Test-Path $config)) {
  9. throw "Vector config not found at $config"
  10. }
  11. $process = Start-Process -FilePath $vector `
  12. -ArgumentList "--config", $config `
  13. -WorkingDirectory $root `
  14. -PassThru
  15. $process.Id