[GRADLE-124] gradle.bat reports "No modern compiler." Created: 24/Jun/08 Updated: 04/Jan/13 Resolved: 13/Jul/08 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.2 |
Fix Version/s: | 0.3 |
Type: | Bug | ||
Reporter: | Dominick More | Assignee: | Hans Dockter |
Resolution: | Fixed | Votes: | 1 |
Description |
Calling C:>gradle -v reports that no modern compiler can be found. added to line gradle.bat 115: if exist "%TOOLS_JAR%" set CLASSPATH=%CLASSPATH%;%TOOLS_JAR% afterwards gradle reports: C:\>gradle -v |
Comments |
Comment by Hans Dockter [ 13/Jul/08 ] |
We took the phrase 'modern compiler' from the Ant project. A modern compiler is a JDK which does not have a tools.jar, but has the tools.jar classes in standard libraries (e.g. Mac OS X). In the earlier releases Gradle has checked whether a class from tools.jar is in the classpath. If so it was a 'modern compiler' and nothing had to be done, otherwise the tools.jar was added. We removed this behavior from he bootstrap code. But at a later lifecycle phase we still check if the classes from tools.jar are in the classpath, otherwise we add tools.jar. But we don't use the confusing 'modern compiler' phrase any longer. And the message only turns up in debug mode. |