[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
No modern compiler.
Gradle 0.2
Gradle buildtime: Tuesday, June 17, 2008 10:27:08 AM CEST
Groovy 1.5.5
Java 1.5.0_15
JVM 1.5.0_15-b04
JVM Vendor: Sun Microsystems Inc.
OS Name: Windows XP

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
Modern compiler found.
Gradle 0.2
Gradle buildtime: Tuesday, June 17, 2008 10:27:08 AM CEST
Groovy 1.5.5
Java 1.5.0_15
JVM 1.5.0_15-b04
JVM Vendor: Sun Microsystems Inc.
OS Name: Windows XP



 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.

Generated at Wed Jun 30 11:22:28 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.