|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
- [mojo-dev] [jira] (MJSPC-53) Support Java 7 on Mac Steve Loughran (JIRA)
- [mojo-dev] [jira] (MJSPC-53) Support Java 7 on... Kevan Miller (JIRA)
- [mojo-dev] [jira] (MJSPC-53) Support Java 7 on... Dustin Talk (JIRA)
- [mojo-dev] [jira] (MJSPC-53) Support Java 7 on... Kevan Miller (JIRA)
- [mojo-dev] [jira] (MJSPC-53) Support Java 7 on... Eric Dalquist (JIRA)
- [mojo-dev] [jira] (MJSPC-53) Support Java 7 on... Robert Oschwald (JIRA)
- [mojo-dev] [jira] (MJSPC-53) Support Java 7 on... JIRA

A clean and concise method to fix this in the next alpha and for version 1.4.7
1.4.7
_________
// Find the tools.jar and add it to the classpath
{ toolsJar = System.getProperty("java.home") + "/../lib/tools.jar"; }String toolsJar = null;
if (System.getProperty("os.name").equals("Mac OS X")) {
if(System.getProperty("java.version").compareTo("1.7") >= 0)
else
{ toolsJar = System.getProperty("java.home") + "/../Classes/classes.jar"; }} else
{ toolsJar = System.getProperty("java.home") + File.separatorChar + ".." + File.separatorChar + "lib" + File.separatorChar + "tools.jar"; }2.0.alpha4
_____________
/**
*/
private File findToolsJar() {
def javaHome = new File(System.properties['java.home'])
def isJavaSeven = System.properties['java.version'].split ( /\./ )[1] > '6'
def file
{ file = new File(javaHome, '../Classes/classes.jar').canonicalFile }if (SystemUtils.IS_OS_MAC_OSX && !isJavaSeven)
else
{ file = new File(javaHome, '../lib/tools.jar').canonicalFile }assert file.exists() : "Missing tools.jar at: $file"
log.debug("Using tools.jar: $file")
return file
}