Itiviti / gradle-msbuild-plugin

Gradle plugin for msbuild execution, supports C# project files for now
Apache License 2.0
101 stars 57 forks source link

ProjectFileParser can be extracted in a user defined dir #29

Closed tekuser closed 9 years ago

tekuser commented 9 years ago

Proposition for Issue https://github.com/Ullink/gradle-msbuild-plugin/issues/28

gluck commented 9 years ago

Do you know where the std location is for gradle-downloaded-binaries ? I've mostly seen ppl use HOME/.gradle, but not sure it's a standard

tekuser commented 9 years ago

Gradle download dependencies in the user's HOME/.gradle/ (there is a cache inside). So gradle-msbuild-plugin.jar is downloaded somewhere in HOME/.gradle. But the plugin extract the ProjectFileParser.exe in the user's temp dir (defined by the env var %TEMP% or %TMP%).

So we can do the same thing as in the gradle-nuget-plugin: https://github.com/Ullink/gradle-nuget-plugin/blob/master/src/main/groovy/com/ullink/BaseNuGet.groovy

l28: File nugetExe = new File(temporaryDir, NUGET_EXE)