reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas Service <dsop...@gmail.com>
Subject Powershell setup section of wiki
Date Mon, 25 Jul 2016 07:13:16 GMT
I propose to update the powershell setup with the following changes, in
purple, which add error messages to avoid silent or hard to decipher
failures. I did not see a process on the website so I am sending email to
dev.

Doug

if($env:JAVA_HOME){
    Set-Alias javac $env:JAVA_HOME\bin\javac.exe
    Set-Alias java $env:JAVA_HOME\bin\java.exe
    Set-Alias jar $env:JAVA_HOME\bin\jar.exe
    Set-Alias jps $env:JAVA_HOME\bin\jps.exe
} else {
    Write-Host "JAVA_HOME is not set in the environment, verify Java
installation and set JAVA_HOME" -ForegroundColor Red
}

function Build-REEF{
    if($Env:REEFSourcePath){
        Invoke-Expression 'msbuild
$Env:REEFSourcePath\lang\cs\Org.Apache.REEF.sln /p:Configuration="Release"
/p:Platform="x64" /m'
    } else {
        Write-Host "You must set REEFSourcePath to the root of your
enclistment to use Build-REEF command" -ForegroundColor Red
    }
}

function Clean-REEF{
    if($Env:REEFSourcePath){
        Invoke-Expression 'msbuild
$Env:REEFSourcePath\lang\cs\Org.Apache.REEF.sln /p:Configuration="Release"
/p:Platform="x64" /t:Clean /m'
        Get-ChildItem -Path $REEFSourcePath\lang\cs\ -Recurse -Filter obj
             | Remove-Item -Recurse
        Get-ChildItem -Path $REEFSourcePath\lang\cs\ -Recurse -Filter bin
             | Remove-Item -Recurse
        Get-ChildItem -Path $REEFSourcePath\lang\cs\ -Recurse -Filter
target             | Remove-Item -Recurse
        Get-ChildItem -Path $REEFSourcePath\lang\cs\ -Recurse -Filter
REEF_LOCAL_RUNTIME | Remove-Item -Recurse
        Get-ChildItem -Path $REEFSourcePath\lang\cs\ -Recurse -Filter
TestResults        | Remove-Item -Recurse
        Get-ChildItem -Path $REEFSourcePath\lang\cs\ -Recurse -Filter
packages           | Remove-Item -Recurse
    } else {
        Write-Host "You must set REEFSourcePath to the root of your
enlistment to use Clean-REEF command" -ForegroundColor Red
    }
}

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message