[tests] `gradlew` needs JAVA_HOME set on Windows (#870)

Context: commit 3dc37379

Failing build at: https://devdiv.visualstudio.com/DevDiv/_build/index?buildId=999607

    ##[error]EXEC(0,0): Error : JAVA_HOME is not set and no 'java' command could be found in your PATH.

Export `%JAVA_HOME%` so that `gradlew` executes properly.
This commit is contained in:
Jonathan Peppers 2017-09-19 07:25:34 -05:00 коммит произвёл Jonathan Pryor
Родитель 5266b4a9c7
Коммит 763959e5b2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -43,7 +43,7 @@
Inputs="java\JavaLib\project.properties"
Outputs="$(OutputPath)JavaLib.zip">
<Exec
EnvironmentVariables="ANDROID_HOME=$(AndroidSdkDirectory)"
EnvironmentVariables="ANDROID_HOME=$(AndroidSdkDirectory);JAVA_HOME=$(JavaSdkDirectory)"
Command=".\gradlew assembleDebug --stacktrace"
WorkingDirectory="$(MSBuildThisFileDirectory)java\JavaLib"
/>