Browse Source

*** empty log message ***

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270572 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
0abcddef6c
2 changed files with 18 additions and 8 deletions
  1. +9
    -4
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Javac.java
  2. +9
    -4
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Javac.java

+ 9
- 4
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Javac.java View File

@@ -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();
} }


/** /**


+ 9
- 4
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Javac.java View File

@@ -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();
} }


/** /**


Loading…
Cancel
Save