ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/junit Xalan1Executor.java
Date Fri, 02 Jul 2004 09:34:33 GMT
antoine     2004/07/02 02:34:32

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit
                        Xalan1Executor.java
  Log:
  Make compile
  
  Revision  Changes    Path
  1.15      +10 -2     ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/Xalan1Executor.java
  
  Index: Xalan1Executor.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/Xalan1Executor.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Xalan1Executor.java	25 Jun 2004 13:42:10 -0000	1.14
  +++ Xalan1Executor.java	2 Jul 2004 09:34:32 -0000	1.15
  @@ -21,6 +21,8 @@
   import org.apache.xalan.xslt.XSLTProcessor;
   import org.apache.xalan.xslt.XSLTProcessorFactory;
   import org.apache.xalan.xslt.XSLTResultTarget;
  +import org.apache.tools.ant.BuildException;
  +import org.xml.sax.SAXException;
   
   /**
    * Xalan 1 executor. It will need a lot of things in the classpath:
  @@ -33,8 +35,14 @@
   
       private static final String xsltP = "org.apache.xalan.xslt.XSLTProcessor";
   
  -    private XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
  -
  +    XSLTProcessor processor = null;
  +    public Xalan1Executor() {
  +        try {
  +            processor = XSLTProcessorFactory.getProcessor();
  +        } catch (SAXException e) {
  +            e.printStackTrace();  //To change body of catch statement use File | Settings
| File Templates.
  +        }
  +    }
       protected String getImplementation() {
           return processor.getClass().getName();
       }
  
  
  

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


Mime
View raw message