reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariia Mykhailova <mamyk...@microsoft.com>
Subject RE: Powershell setup section of wiki
Date Mon, 25 Jul 2016 18:49:56 GMT
Looks good, feel free to update the wiki page (you'll need wiki permission for that - please
let us know your wiki account).

As a side note, dev list is plaintext only and drops any font colors or attachments.

-Mariia

-----Original Message-----
From: Douglas Service [mailto:dsopsrc@gmail.com] 
Sent: Monday, July 25, 2016 12:13 AM
To: dev@reef.apache.org
Subject: Powershell setup section of wiki

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
View raw message