ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jsp JspC.java
Date Sun, 06 Jan 2002 02:05:41 GMT
donaldp     02/01/05 18:05:41

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jsp
                        JspC.java
  Log:
  Use Ant2 propertys that are objects rather than strings
  
  Revision  Changes    Path
  1.13      +3 -4      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java
  
  Index: JspC.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- JspC.java	4 Jan 2002 09:25:13 -0000	1.12
  +++ JspC.java	6 Jan 2002 02:05:41 -0000	1.13
  @@ -56,7 +56,7 @@
    *      </a>
    * @author <a href="mailto:stefan.bodewig@epost.de">Stefan Bodewig</a>
    * @author <a href="mailto:jayglanville@home.com">J D Glanville</a>
  - * @version $Revision: 1.12 $ $Date: 2002/01/04 09:25:13 $
  + * @version $Revision: 1.13 $ $Date: 2002/01/06 02:05:41 $
    */
   public class JspC extends MatchingTask
   {
  @@ -360,7 +360,7 @@
   
           // compile the source files
   
  -        String compiler = getProject().getProperty( "jsp.compiler" );
  +        Object compiler = getProperty( "jsp.compiler" );
           if( compiler == null )
           {
               compiler = "jasper";
  @@ -369,9 +369,8 @@
   
           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" )
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message