-
Notifications
You must be signed in to change notification settings - Fork 11
/
run.ps1
22 lines (19 loc) · 1.06 KB
/
run.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# DESCRIPTION:
#
# Takes java project path and destination path (ending with html file) as input parameters.
# Destination path will have the generated report
#
# USAGE:
# ./run.ps1 <path to java project> <directory path for output html report file> <arangoDb-username> <arangoDb-pwd> <rule-names>
# run
param (
[Parameter(Mandatory)] [string]$PathToJavaProject,
[Parameter(Mandatory)] [string]$PathToOutputDirectory,
[Parameter(Mandatory)] [string]$arangoDbUsername,
[Parameter(Mandatory)] [string]$arangoDbPassword,
[Parameter(Mandatory)] [string]$ruleNames
)
$USAGE="Usage: ./run.ps1 <path to java project> <directory path for output html report file> <arangoDb-username> <arangoDb-pwd> <rule-names>"
Write-Output $USAGE
Copy-Item -Path "src/main/resources/lib" -Destination $PathToOutputDirectory -Recurse
java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -jar target/app-server-migration-1.0.0-SNAPSHOT-jar-with-dependencies.jar $PathToJavaProject $PathToOutputDirectory $arangoDbUsername $arangoDbPassword $ruleNames