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:35:45 GMT
antoine     2004/07/02 02:35:45

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit Tag:
                        ANT_16_BRANCH Xalan1Executor.java
  Log:
  Merge from HEAD
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.10.2.5  +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.10.2.4
  retrieving revision 1.10.2.5
  diff -u -r1.10.2.4 -r1.10.2.5
  --- Xalan1Executor.java	25 Jun 2004 13:50:16 -0000	1.10.2.4
  +++ Xalan1Executor.java	2 Jul 2004 09:35:45 -0000	1.10.2.5
  @@ -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