Files
feng0207 3fc4dcc777 initial commit: lottery 项目集(三工程统一管理)
- apps/lotteryServer, lotteryCapture, lotteryOpen 三个业务工程
- 忽略 archive/, tools/, infra/data/ 大目录与敏感配置文件
- 移除 lotteryServer 原嵌套 git,并入顶层统一管理
2026-09-17 19:03:32 +08:00

17 lines
865 B
PowerShell

param([Parameter(Position=0)][string]$target = "all")
# Start lotteryOpen / lotteryCapture as fully detached background processes.
# Usage: powershell -File start-bg.ps1 open|capture|all
$java = "C:\data\src\lottery\tools\dev-tools\jdk8u504-b01\bin\java.exe"
$base = "C:\data\src\lottery\apps"
function Start-Proc($dir, $jar) {
$p = Start-Process -FilePath $java `
-ArgumentList "-cp", "target\$jar;target\lib\*", "lottery.bin.StartUp" `
-WorkingDirectory $dir -WindowStyle Hidden -PassThru `
-RedirectStandardOutput "$dir\$jar-run.log" -RedirectStandardError "$dir\$jar-err.log"
Write-Output "$jar started, pid=$($p.Id)"
}
if ($target -eq "open" -or $target -eq "all") { Start-Proc "$base\lotteryOpen" "lotteryOpen.jar" }
if ($target -eq "capture" -or $target -eq "all") { Start-Proc "$base\lotteryCapture" "lotteryCapture.jar" }