You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
856 B
21 lines
856 B
|
16 hours ago
|
$ErrorActionPreference = 'Stop'
|
||
|
|
$root = 'e:/code/crm-backend-matt'
|
||
|
|
$out = 'C:/Users/ADMINI~1/AppData/Local/Temp/crm-port-check'
|
||
|
|
|
||
|
|
$cp = (Get-Content "$root\.scratch\javac-cp.txt" -Raw).Trim()
|
||
|
|
|
||
|
|
$files = Get-ChildItem -Recurse -Filter *.java -Path "$root\crm-customer\src\main\java", "$root\crm-opportunity\src\main\java" |
|
||
|
|
Sort-Object FullName | ForEach-Object { '"' + ($_.FullName -replace '\\', '/') + '"' }
|
||
|
|
|
||
|
|
$lines = @(
|
||
|
|
'-encoding', 'UTF-8',
|
||
|
|
'-source', '17', '-target', '17',
|
||
|
|
'-nowarn', '-Xlint:none',
|
||
|
|
'-sourcepath', "`"$root/crm-customer/src/main/java;$root/crm-opportunity/src/main/java`"",
|
||
|
|
'-cp', "`"$cp`"",
|
||
|
|
'-d', "`"$out`""
|
||
|
|
) + $files
|
||
|
|
|
||
|
|
[IO.File]::WriteAllText("$root\.scratch\javac-args.txt", ($lines -join "`r`n") + "`r`n", (New-Object System.Text.UTF8Encoding($false)))
|
||
|
|
"FILES=$($files.Count) ARGS_LINES=$($lines.Count)"
|