Skip to content
Permalink
Browse files

AppVeyor: Create %HOME%\.gradle independently of the configuration (#293

)

This fixes gradle.properties not being written if %HOME%\.gradle already
existed.
  • Loading branch information...
sschuberth authored and sksamuel committed Apr 15, 2018
1 parent 6ba63b0 commit 75839378f3be920a389a4bfee9731d89ae428d3d
Showing with 2 additions and 3 deletions.
  1. +2 −3 appveyor.yml
@@ -21,9 +21,8 @@ configuration:

# Do something useful here to override the default MSBuild (which would fail otherwise).
build_script:
- if %CONFIGURATION%==Java9 (
if not exist %HOME%\.gradle mkdir %HOME%\.gradle &
echo org.gradle.java.home=C:/Program Files/Java/jdk9>%HOME%\.gradle\gradle.properties)
- if not exist %HOME%\.gradle mkdir %HOME%\.gradle
- if %CONFIGURATION%==Java9 echo org.gradle.java.home=C:/Program Files/Java/jdk9>%HOME%\.gradle\gradle.properties
- gradlew --info

test_script:

0 comments on commit 7583937

Please sign in to comment.
You can’t perform that action at this time.