git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270573 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -360,7 +360,7 @@ public class JspC extends MatchingTask | |||||
| // compile the source files | // compile the source files | ||||
| String compiler = getProject().getProperty( "jsp.compiler" ); | |||||
| Object compiler = getProperty( "jsp.compiler" ); | |||||
| if( compiler == null ) | if( compiler == null ) | ||||
| { | { | ||||
| compiler = "jasper"; | compiler = "jasper"; | ||||
| @@ -369,9 +369,8 @@ public class JspC extends MatchingTask | |||||
| if( compileList.size() > 0 ) | if( compileList.size() > 0 ) | ||||
| { | { | ||||
| CompilerAdapter adapter = | CompilerAdapter adapter = | ||||
| CompilerAdapterFactory.getCompiler( compiler, this ); | |||||
| CompilerAdapterFactory.getCompiler( compiler.toString(), this ); | |||||
| getLogger().info( "Compiling " + compileList.size() + | getLogger().info( "Compiling " + compileList.size() + | ||||
| " source file" | " source file" | ||||
| + ( compileList.size() == 1 ? "" : "s" ) | + ( compileList.size() == 1 ? "" : "s" ) | ||||
| @@ -360,7 +360,7 @@ public class JspC extends MatchingTask | |||||
| // compile the source files | // compile the source files | ||||
| String compiler = getProject().getProperty( "jsp.compiler" ); | |||||
| Object compiler = getProperty( "jsp.compiler" ); | |||||
| if( compiler == null ) | if( compiler == null ) | ||||
| { | { | ||||
| compiler = "jasper"; | compiler = "jasper"; | ||||
| @@ -369,9 +369,8 @@ public class JspC extends MatchingTask | |||||
| if( compileList.size() > 0 ) | if( compileList.size() > 0 ) | ||||
| { | { | ||||
| CompilerAdapter adapter = | CompilerAdapter adapter = | ||||
| CompilerAdapterFactory.getCompiler( compiler, this ); | |||||
| CompilerAdapterFactory.getCompiler( compiler.toString(), this ); | |||||
| getLogger().info( "Compiling " + compileList.size() + | getLogger().info( "Compiling " + compileList.size() + | ||||
| " source file" | " source file" | ||||
| + ( compileList.size() == 1 ? "" : "s" ) | + ( compileList.size() == 1 ? "" : "s" ) | ||||