git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270572 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -380,6 +380,11 @@ public class Javac extends MatchingTask | |||||
| return compileClasspath; | return compileClasspath; | ||||
| } | } | ||||
| protected File getBaseDir() | |||||
| { | |||||
| return getBaseDirectory(); | |||||
| } | |||||
| /** | /** | ||||
| * Get the additional implementation specific command line arguments. | * Get the additional implementation specific command line arguments. | ||||
| * | * | ||||
| @@ -622,7 +627,7 @@ public class Javac extends MatchingTask | |||||
| public boolean isForkedJavac() | public boolean isForkedJavac() | ||||
| { | { | ||||
| return !"false".equals( fork ) || | return !"false".equals( fork ) || | ||||
| "extJavac".equals( getProject().getProperty( "build.compiler" ) ); | |||||
| "extJavac".equals( getProperty( "build.compiler" ) ); | |||||
| } | } | ||||
| /** | /** | ||||
| @@ -846,13 +851,13 @@ public class Javac extends MatchingTask | |||||
| private String determineCompiler() | private String determineCompiler() | ||||
| { | { | ||||
| String compiler = getProject().getProperty( "build.compiler" ); | |||||
| Object compiler = getProperty( "build.compiler" ); | |||||
| if( !"false".equals( fork ) ) | if( !"false".equals( fork ) ) | ||||
| { | { | ||||
| if( compiler != null ) | if( compiler != null ) | ||||
| { | { | ||||
| if( isJdkCompiler( compiler ) ) | |||||
| if( isJdkCompiler( compiler.toString() ) ) | |||||
| { | { | ||||
| final String message = "Since fork is true, ignoring build.compiler setting."; | final String message = "Since fork is true, ignoring build.compiler setting."; | ||||
| getLogger().warn( message ); | getLogger().warn( message ); | ||||
| @@ -880,7 +885,7 @@ public class Javac extends MatchingTask | |||||
| compiler = "classic"; | compiler = "classic"; | ||||
| } | } | ||||
| } | } | ||||
| return compiler; | |||||
| return compiler.toString(); | |||||
| } | } | ||||
| /** | /** | ||||
| @@ -380,6 +380,11 @@ public class Javac extends MatchingTask | |||||
| return compileClasspath; | return compileClasspath; | ||||
| } | } | ||||
| protected File getBaseDir() | |||||
| { | |||||
| return getBaseDirectory(); | |||||
| } | |||||
| /** | /** | ||||
| * Get the additional implementation specific command line arguments. | * Get the additional implementation specific command line arguments. | ||||
| * | * | ||||
| @@ -622,7 +627,7 @@ public class Javac extends MatchingTask | |||||
| public boolean isForkedJavac() | public boolean isForkedJavac() | ||||
| { | { | ||||
| return !"false".equals( fork ) || | return !"false".equals( fork ) || | ||||
| "extJavac".equals( getProject().getProperty( "build.compiler" ) ); | |||||
| "extJavac".equals( getProperty( "build.compiler" ) ); | |||||
| } | } | ||||
| /** | /** | ||||
| @@ -846,13 +851,13 @@ public class Javac extends MatchingTask | |||||
| private String determineCompiler() | private String determineCompiler() | ||||
| { | { | ||||
| String compiler = getProject().getProperty( "build.compiler" ); | |||||
| Object compiler = getProperty( "build.compiler" ); | |||||
| if( !"false".equals( fork ) ) | if( !"false".equals( fork ) ) | ||||
| { | { | ||||
| if( compiler != null ) | if( compiler != null ) | ||||
| { | { | ||||
| if( isJdkCompiler( compiler ) ) | |||||
| if( isJdkCompiler( compiler.toString() ) ) | |||||
| { | { | ||||
| final String message = "Since fork is true, ignoring build.compiler setting."; | final String message = "Since fork is true, ignoring build.compiler setting."; | ||||
| getLogger().warn( message ); | getLogger().warn( message ); | ||||
| @@ -880,7 +885,7 @@ public class Javac extends MatchingTask | |||||
| compiler = "classic"; | compiler = "classic"; | ||||
| } | } | ||||
| } | } | ||||
| return compiler; | |||||
| return compiler.toString(); | |||||
| } | } | ||||
| /** | /** | ||||