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 21:21:21 UTC

svn commit: r1339315 - in /incubator/flex/trunk/ide/flashbuilder: downloadFile.vbs makeApacheFlexForFlashBuilder.bat

Author: cframpton
Date: Wed May 16 19:21:21 2012
New Revision: 1339315

URL: http://svn.apache.org/viewvc?rev=1339315&view=rev
Log:
Replace downloadFile.vbs with powershell command in the bat file.

Removed:
    incubator/flex/trunk/ide/flashbuilder/downloadFile.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=1339315&r1=1339314&r2=1339315&view=diff
==============================================================================
--- incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.bat (original)
+++ incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.bat Wed May 16 19:21:21 2012
@@ -76,7 +76,7 @@ REM
 REM     Download Apache Flex SDK.
 REM
 echo Downloading Apache Flex SDK from "%APACHE_FLEX_BIN_DISTRO_URL%" to "%tempDir%\%APACHE_FLEX_BIN_DISTRO_FILE%"
-cscript //B //nologo downloadFile.vbs "%APACHE_FLEX_BIN_DISTRO_URL%" "%tempDir%\%APACHE_FLEX_BIN_DISTRO_FILE%"
+PowerShell -Command "& {(new-object System.Net.WebClient).DownloadFile('%APACHE_FLEX_BIN_DISTRO_URL%', '%tempDir%\%APACHE_FLEX_BIN_DISTRO_FILE%')}"
 if %errorlevel% neq 0 goto errorExit
 
 echo Uncompressing Apache Flex SDK to "%FLEX_HOME%"
@@ -91,7 +91,7 @@ REM
 REM     Download AIR Runtime Kit for Windows
 REM
 echo Downloading Adobe AIR Runtime Kit for Windows from "%ADOBE_AIR_SDK_WIN_URL%" to "%tempDir%\%ADOBE_AIR_SDK_WIN_FILE%"
-cscript //B //nologo downloadFile.vbs "%ADOBE_AIR_SDK_WIN_URL%" "%tempDir%\%ADOBE_AIR_SDK_WIN_FILE%"
+PowerShell -Command "& {(new-object System.Net.WebClient).DownloadFile('%ADOBE_AIR_SDK_WIN_URL%', '%tempDir%\%ADOBE_AIR_SDK_WIN_FILE%')}"
 if %errorlevel% neq 0 goto errorExit
 
 echo Uncompressing Adobe AIR Runtime Kit for Windows from "%tempDir%\%ADOBE_AIR_SDK_WIN_FILE%" to "%FLEX_HOME%"
@@ -116,7 +116,7 @@ REM
 REM     Copy config files formatted for Flash Builder to frameworks.
 REM
 echo Installing frameworks config files configured for use with Adobe Flash Builder
-copy /y "%FLEX_HOME%\ide\flashbuilder\config\*-config.xml" "%FLEX_HOME%\frameworks"
+copy /y "%FLEX_HOME%"\ide\flashbuilder\config\*-config.xml "%FLEX_HOME%\frameworks"
 if %errorlevel% neq 0 goto errorExit
 
 REM