From 28e14d15205565fbe7e3484ff0216213687325ed Mon Sep 17 00:00:00 2001 From: Bryan Kowal Date: Thu, 3 Oct 2013 16:09:48 -0500 Subject: [PATCH] Revert "Issue #2033 - msi build updates" Undo copying localization into etc at build time. This reverts commit 50d9790e17f07f8619c1f927cff601938a823f05 [formerly 3bf9b72f52d07e1d3281a5c0450789df362b836a] [formerly 7208eadbfb1a74fdfec20b074a8984e58fb18137] [formerly e46254cef176ad73afc806a4d8626747114200c2 [formerly 7208eadbfb1a74fdfec20b074a8984e58fb18137 [formerly 18394168994e3683ecd2ba114be12ba2a547b62c]]]. Former-commit-id: 3d6ff3f0fac34d318263e8b7709c709d221b7e3b [formerly 02e1055f19694196aaa37c7d06398391d4f8a86c [formerly f705e71d62e84d82cb8e880e0b17e18710f61d97]] Former-commit-id: 02e1055f19694196aaa37c7d06398391d4f8a86c Former-commit-id: 1632c72103f1d4bc102037d61e13e160a6483c50 --- msi/build/A2Staging/Scripts/assembleCAVE.ps1 | 25 ++++---------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/msi/build/A2Staging/Scripts/assembleCAVE.ps1 b/msi/build/A2Staging/Scripts/assembleCAVE.ps1 index cb45da2e6e..8ec84ede48 100644 --- a/msi/build/A2Staging/Scripts/assembleCAVE.ps1 +++ b/msi/build/A2Staging/Scripts/assembleCAVE.ps1 @@ -1,35 +1,19 @@ -function installCAVERepository([string]$feature_group, [string]$component, [string]$repo) +function installCAVERepository([string]$feature_group, [string]$repo) { - $component_zip = $component + ".zip" - New-Item -path ${A2_PREPARE_CAVE_DIR} ` - -name $component -type directory | Out-Null - if ($? -ne $true) { EXIT 1; } - pushd . - cd ${A2_PREPARE_CAVE_DIR}/$component - jar xvf ${A2_PREPARE_CAVE_DIR}/$component_zip - popd - $repo_zip = $repo + ".zip" New-Item -path ${A2_PREPARE_CAVE_DIR} ` -name $repo -type directory | Out-Null if ($? -ne $true) { EXIT 1; } pushd . cd ${A2_PREPARE_CAVE_DIR}/$repo - jar xvf ${A2_PREPARE_CAVE_DIR}/$component/awips2/cave/.repository/$repo_zip + jar xvf ${A2_PREPARE_CAVE_DIR}/$repo_zip popd .\cave.exe -nosplash -application org.eclipse.equinox.p2.director ` -i $feature_group -repository "file:${A2_PREPARE_CAVE_DIR}/$repo" | Out-Host if ($? -ne $true) { echo "ERROR: Unable to install feature: $feature_group."; echo "FATAL: Build Failed!"; EXIT 1; } - $etc_directory = ${A2_PREPARE_CAVE_DIR} + "\" + ${component} + "\awips2\cave\etc" - if ( Test-Path ${etc_directory} ) { - echo "Copying etc directory to destination ..." - Copy-Item ${etc_directory} -destination ${A2_PREPARE_CAVE_DIR}\cave -recurse -force - if ($? -ne $true) { EXIT 1; } - } - - Remove-Item -recurse -force ${A2_PREPARE_CAVE_DIR}/$component + Remove-Item -recurse -force ${A2_PREPARE_CAVE_DIR}/$repo if ($? -ne $true) { EXIT 1; } echo "`n" @@ -46,11 +30,10 @@ foreach ($feature in $feature_list) { Write-Host Installing Feature: $feature $feature_group = $feature + ".feature.group" - $component = $feature + "-win32.x86" $repo = $feature + "-repo-win32.x86" installCAVERepository -feature_group "$feature_group" ` - -component "$component" -repo $repo + -repo "$repo" } popd EXIT 0 \ No newline at end of file