HHH-9782 Build plugins pick up JAVA6_HOME as environment variable

This commit is contained in:
Andrea Boriero 2015-05-11 16:00:16 +01:00
parent bb2833bafc
commit 5bf9bb2a1d
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ class HibernateBuildPlugin implements Plugin<Project> {
if ( java6HomeDirSetting == null ) {
java6HomeDirSetting = System.getProperty( "JAVA6_HOME" );
}
if ( java6HomeDirSetting == null ) {
java6HomeDirSetting = System.getenv( "JAVA6_HOME" );
}
if ( java6HomeDirSetting != null ) {
project.logger.info( "Using JAVA6_HOME setting [${java6HomeDirSetting}]" )