diff --git a/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java b/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java index 97c60ca7e..da1b9462c 100644 --- a/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java +++ b/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java @@ -360,7 +360,7 @@ public class JspC extends MatchingTask // compile the source files - String compiler = getProject().getProperty( "jsp.compiler" ); + Object compiler = getProperty( "jsp.compiler" ); if( compiler == null ) { compiler = "jasper"; @@ -369,9 +369,8 @@ public class JspC extends MatchingTask if( compileList.size() > 0 ) { - CompilerAdapter adapter = - CompilerAdapterFactory.getCompiler( compiler, this ); + CompilerAdapterFactory.getCompiler( compiler.toString(), this ); getLogger().info( "Compiling " + compileList.size() + " source file" + ( compileList.size() == 1 ? "" : "s" ) diff --git a/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java b/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java index 97c60ca7e..da1b9462c 100644 --- a/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java +++ b/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java @@ -360,7 +360,7 @@ public class JspC extends MatchingTask // compile the source files - String compiler = getProject().getProperty( "jsp.compiler" ); + Object compiler = getProperty( "jsp.compiler" ); if( compiler == null ) { compiler = "jasper"; @@ -369,9 +369,8 @@ public class JspC extends MatchingTask if( compileList.size() > 0 ) { - CompilerAdapter adapter = - CompilerAdapterFactory.getCompiler( compiler, this ); + CompilerAdapterFactory.getCompiler( compiler.toString(), this ); getLogger().info( "Compiling " + compileList.size() + " source file" + ( compileList.size() == 1 ? "" : "s" )