You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cf...@apache.org on 2012/05/16 22:43:14 UTC

svn commit: r1339352 - in /incubator/flex/trunk/ide/flashbuilder: extractAll.vbs makeApacheFlexForFlashBuilder.bat

Author: cframpton
Date: Wed May 16 20:43:13 2012
New Revision: 1339352

URL: http://svn.apache.org/viewvc?rev=1339352&view=rev
Log:
On Windows, replace calls to vbs scripts with calls to powershell so the additional files aren't needed.

Removed:
    incubator/flex/trunk/ide/flashbuilder/extractAll.vbs
Modified:
    incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.bat

Modified: incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.bat
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.bat?rev=1339352&r1=1339351&r2=1339352&view=diff
==============================================================================
--- incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.bat (original)
+++ incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.bat Wed May 16 20:43:13 2012
@@ -83,7 +83,7 @@ echo Uncompressing Apache Flex SDK to "%
 if defined hasJarExe (
     pushd "%FLEX_HOME%" & jar xf "%tempDir%\%APACHE_FLEX_BIN_DISTRO_FILE%" & popd
 ) else (
-    cscript //B //nologo extractAll.vbs "%tempDir%\%APACHE_FLEX_BIN_DISTRO_FILE%" "%FLEX_HOME%"
+    PowerShell -Command "& {$zipPackage=(new-object -com shell.application).NameSpace('%tempDir%\%APACHE_FLEX_BIN_DISTRO_FILE%'); $destinationFolder=(new-object -com shell.application).NameSpace('%FLEX_HOME%'); $destinationFolder.CopyHere($zipPackage.Items(),20)}"
     if %errorlevel% neq 0 goto errorExit
 )
 
@@ -98,7 +98,7 @@ echo Uncompressing Adobe AIR Runtime Kit
 if defined hasJarExe (
     pushd "%FLEX_HOME%" & jar xf "%tempDir%\%ADOBE_AIR_SDK_WIN_FILE%" & popd
 ) else (
-    cscript //B //nologo extractAll.vbs "%tempDir%\%ADOBE_AIR_SDK_WIN_FILE%" "%FLEX_HOME%"
+    PowerShell -Command "& {$zipPackage=(new-object -com shell.application).NameSpace('%tempDir%\%ADOBE_AIR_SDK_WIN_FILE%'); $destinationFolder=(new-object -com shell.application).NameSpace('%FLEX_HOME%'); $destinationFolder.CopyHere($zipPackage.Items(),20)}"
     if %errorlevel% neq 0 goto errorExit
 )
 
@@ -109,7 +109,7 @@ set FB_GLOBALPLAYER_DIR=%FLEX_HOME%\fram
 if not exist "%FB_GLOBALPLAYER_DIR%" mkdir "%FB_GLOBALPLAYER_DIR%"
 
 echo Downloading Adobe Flash Player playerglobal.swc from "%ADOBE_FB_GLOBALPLAYER_SWC_URL%" to "%FB_GLOBALPLAYER_DIR%\playerglobal.swc"
-cscript //B //nologo downloadFile.vbs "%ADOBE_FB_GLOBALPLAYER_SWC_URL%" "%FB_GLOBALPLAYER_DIR%\playerglobal.swc"
+PowerShell -Command "& {(new-object System.Net.WebClient).DownloadFile('%ADOBE_FB_GLOBALPLAYER_SWC_URL%', '%FB_GLOBALPLAYER_DIR%\playerglobal.swc')}"
 if %errorlevel% neq 0 goto errorExit
 
 REM