How can I configure the eclipse configuration in the build script to generate a path variable that points to the Gradle executable?
I’m using Gradle Version: 1.0-milestone-8a
The end goal is to get gradle to generate a .project file with a variable named GRADLE_EXECUTABLE so that I can essentially create an external builder that already has the executable path stored in a variable.
First, ‘exeExtension’ sounds wrong. Depending on your platform, you’ll need either ‘gradle’ or ‘gradle.bat’. A simple way to construct the path is ‘file("$gradle.gradleHomeDir/bin/gradle")’.
Second, ‘pathVariables’ is for shortening absolute paths in class path entries (see the documentation). It won’t generate ‘variable’ entries in the ‘.project’ file. That you will have to do with an XML hook. If you think there should be an easier way, pull request are welcome.
Thanks for the input. I was able to get the variable created using the XML hooks. The one thing that I would definitely put in a feature request for is the ability to create and configure external builders.