scarica i moduli
This commit is contained in:
parent
ac7b774819
commit
f1d9490796
8
.gitignore
vendored
8
.gitignore
vendored
@ -2,9 +2,5 @@
|
|||||||
*.log
|
*.log
|
||||||
|
|
||||||
# Project directories
|
# Project directories
|
||||||
arm*/
|
workspace/
|
||||||
asset-gui/
|
|
||||||
AmazonAWS.S3/
|
|
||||||
aspose-manager/
|
|
||||||
data-quality/
|
|
||||||
shared-javaEE/
|
|
||||||
|
@ -1,24 +1,42 @@
|
|||||||
# PowerShell script to sync arm_am-pom and asset-gui projects from SVN
|
# PowerShell script to checkout arm_am-pom, asset-gui and used modules and to build modules
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
$SVN_BASE_URL = "https://svn.armundia.com/svn/PRJarm_am/branches/ISPBEstero/ADV360-BES-JB8_B2024_2"
|
$SVN_BASE_URL = "https://svn.armundia.com/svn/PRJarm_am/branches/ISPBEstero/ADV360-BES-JB8_B2024_2"
|
||||||
$SVN_BASE_URL_BW2_LIB = "https://svn.armundia.com/svn/PRJbw2/branches/LIB-JK10"
|
$SVN_BASE_URL_BW2_LIB = "https://svn.armundia.com/svn/PRJbw2/branches/LIB-JK10"
|
||||||
|
$SVN_BASE_URL_ARM_LIB = "https://svn.armundia.com/svn/PRJarm_am/branches/LIB-JK10"
|
||||||
# Define workspace directory
|
|
||||||
$WORKSPACE_DIR = Join-Path $PSScriptRoot "workspace"
|
$WORKSPACE_DIR = Join-Path $PSScriptRoot "workspace"
|
||||||
|
|
||||||
# Define projects and their SVN URLs
|
# Project paths
|
||||||
$PROJECTS = @{
|
$PROJECTS = @{
|
||||||
"arm_am-pom" = $SVN_BASE_URL
|
"arm_am-pom" = "$SVN_BASE_URL/arm_am-pom"
|
||||||
"asset-gui" = "$SVN_BASE_URL/asset-gui"
|
"asset-gui" = "$SVN_BASE_URL/asset-gui"
|
||||||
}
|
"AmazonAWS.S3" = "$SVN_BASE_URL_BW2_LIB/AmazonAWS.S3"
|
||||||
|
"arm-core-batch" = "$SVN_BASE_URL_ARM_LIB/arm-batch-module"
|
||||||
|
"arm-core-document" = "$SVN_BASE_URL_BW2_LIB/arm-core-document-ispb"
|
||||||
|
"arm-core-event" = "$SVN_BASE_URL_BW2_LIB/arm-core-event"
|
||||||
|
"arm-core-perfo" = "$SVN_BASE_URL_ARM_LIB/arm-perfo-ispb"
|
||||||
|
"arm-core-print" = "$SVN_BASE_URL/arm-core-print/arm-core-print"
|
||||||
|
"arm-core-querybuilder" = "$SVN_BASE_URL_ARM_LIB/arm-core-querybuilder"
|
||||||
|
"arm-core-quest" = "$SVN_BASE_URL/arm-core-quest"
|
||||||
|
"arm-core-users" = "$SVN_BASE_URL_ARM_LIB/arm-core-users"
|
||||||
|
"arm-core-utility" = "$SVN_BASE_URL_ARM_LIB/arm-core-utility"
|
||||||
|
"arm-core-utility-extra" = "$SVN_BASE_URL_ARM_LIB/arm-core-utility-extra"
|
||||||
|
"arm-core-var" = "$SVN_BASE_URL_ARM_LIB/arm-calcolo-VaR"
|
||||||
|
"arm-fileExporter" = "$SVN_BASE_URL_ARM_LIB/arm-fileExporter"
|
||||||
|
"arm-limiti" = "$SVN_BASE_URL_ARM_LIB/arm-limiti"
|
||||||
|
"arm-quadratore-portafogli" = "$SVN_BASE_URL_ARM_LIB/arm-quadratore-portafogli"
|
||||||
|
"arm-util" = "$SVN_BASE_URL_ARM_LIB/arm-util"
|
||||||
|
"aspose-manager" = "$SVN_BASE_URL/arm-core-print/aspose-manager"
|
||||||
|
"data-quality" = "$SVN_BASE_URL_ARM_LIB/data-quality-default"
|
||||||
|
"shared-javaEE" = "$SVN_BASE_URL_ARM_LIB/Shared-JavaEE"
|
||||||
|
}
|
||||||
|
|
||||||
# Create workspace directory if it doesn't exist
|
# Create workspace directory if it doesn't exist
|
||||||
if (-not (Test-Path $WORKSPACE_DIR)) {
|
if (-not (Test-Path $WORKSPACE_DIR)) {
|
||||||
New-Item -ItemType Directory -Path $WORKSPACE_DIR -Force
|
New-Item -ItemType Directory -Path $WORKSPACE_DIR -Force
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to sync a project from SVN
|
# Function to checkout or update a project
|
||||||
function Sync-Project {
|
function Sync-Project {
|
||||||
param (
|
param (
|
||||||
[string]$projectName,
|
[string]$projectName,
|
||||||
@ -39,9 +57,9 @@ function Sync-Project {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($LASTEXITCODE -eq 0) {
|
if ($LASTEXITCODE -eq 0) {
|
||||||
Write-Host "$projectName successfully synced" -ForegroundColor Green
|
Write-Host "$projectName successfully checked out/updated" -ForegroundColor Green
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Error syncing $projectName" -ForegroundColor Red
|
Write-Host "Error checking out/updating $projectName" -ForegroundColor Red
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,7 +67,7 @@ function Sync-Project {
|
|||||||
$originalDirectory = Get-Location
|
$originalDirectory = Get-Location
|
||||||
|
|
||||||
try {
|
try {
|
||||||
# Sync each project
|
# Checkout/update each project
|
||||||
foreach ($project in $PROJECTS.GetEnumerator()) {
|
foreach ($project in $PROJECTS.GetEnumerator()) {
|
||||||
Sync-Project -projectName $project.Key -svnUrl $project.Value -targetDir $WORKSPACE_DIR
|
Sync-Project -projectName $project.Key -svnUrl $project.Value -targetDir $WORKSPACE_DIR
|
||||||
}
|
}
|
||||||
@ -80,8 +98,26 @@ try {
|
|||||||
|
|
||||||
# Additional components
|
# Additional components
|
||||||
"data-quality", # Data quality
|
"data-quality", # Data quality
|
||||||
"AmazonAWS.S3" # AWS S3 integration
|
"AmazonAWS.S3", # AWS S3 integration
|
||||||
|
"aspose-manager" # Document processing
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Build each project in order
|
||||||
|
foreach ($project in $BUILD_ORDER) {
|
||||||
|
Write-Host "Building $project..." -ForegroundColor Yellow
|
||||||
|
Set-Location (Join-Path $WORKSPACE_DIR $project)
|
||||||
|
mvn clean install -DskipTests
|
||||||
|
|
||||||
|
if ($LASTEXITCODE -eq 0) {
|
||||||
|
Write-Host "$project successfully built and installed" -ForegroundColor Green
|
||||||
|
} else {
|
||||||
|
Write-Host "Error building $project" -ForegroundColor Red
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch {
|
||||||
|
Write-Host "An error occurred: $_" -ForegroundColor Red
|
||||||
} finally {
|
} finally {
|
||||||
# Restore original directory
|
# Restore original directory
|
||||||
Set-Location $originalDirectory
|
Set-Location $originalDirectory
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
$JBOSS_HOME = "C:\Dev2012\BUILDERS\jboss-eap-8.0"
|
$JBOSS_HOME = "C:\Dev2012\BUILDERS\jboss-eap-8.0"
|
||||||
$PROJECT_DIR = "C:\Dev2012\source\WindSurf\adv8\arm_am-pom"
|
$PROJECT_DIR = Join-Path $PSScriptRoot "workspace\arm_am-pom"
|
||||||
$DEPLOYMENT_DIR = "$JBOSS_HOME\standalone\deployments"
|
$DEPLOYMENT_DIR = "$JBOSS_HOME\standalone\deployments"
|
||||||
$MAVEN_PROFILE = "adv360-DEV" # Default development profile
|
$MAVEN_PROFILE = "adv360-DEV" # Default development profile
|
||||||
$JAVA_HOME = "C:\Dev2012\BUILDERS\java\jdk-17.0.9" # Path to Java 17
|
$JAVA_HOME = "C:\Dev2012\BUILDERS\java\jdk-17.0.9" # Path to Java 17
|
||||||
@ -78,7 +78,7 @@ if ($LASTEXITCODE -ne 0) {
|
|||||||
|
|
||||||
# Finally build the EAR module with debug output
|
# Finally build the EAR module with debug output
|
||||||
Write-Host "Building EAR module..." -ForegroundColor Yellow
|
Write-Host "Building EAR module..." -ForegroundColor Yellow
|
||||||
Set-Location "$PROJECT_DIR\arm_am-ear"
|
Set-Location (Join-Path $PROJECT_DIR "arm_am-ear")
|
||||||
mvn clean package -DskipTests "-P$MAVEN_PROFILE"
|
mvn clean package -DskipTests "-P$MAVEN_PROFILE"
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
Write-Host "Maven EAR module build failed!" -ForegroundColor Red
|
Write-Host "Maven EAR module build failed!" -ForegroundColor Red
|
||||||
|
Loading…
x
Reference in New Issue
Block a user