On Jul 10, 2008, at 6:26 PM, Jerod Lass wrote:

Is there a way to run gradle with the 1.5 jdk but tell it to compile everything with a specific 1.4 jdk?

To Gradle compile task delegates to the Ant javac task. You can set most of the options via the Gradle task. Have a look at: http:// ant.apache.org/manual/CoreTasks/javac.html

This task has the options fork an executable. So this looks pretty straight forward.

Even if only the ant task uses 1.4, it should work. It's only the ant task that needs and IBM-specific 1.4 jdk. Thanks

I don't see a way to execute an Ant task with a different JDK within the same JVM Gradle is running. I guess you have to use an external process for this. An ugly way of doing this would be to provide a build xml or a groovy script which calls the Ant task. You could call the script with the IBM JDK from your build.gradle file. Not very nice but it should work.

Providing a JDK 1.4 compatible Gradle looks like the easiest solution.

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to