Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 60754 invoked from network); 2 Jul 2004 09:35:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jul 2004 09:35:23 -0000 Received: (qmail 83855 invoked by uid 500); 2 Jul 2004 09:35:33 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 83429 invoked by uid 500); 2 Jul 2004 09:35:26 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 82696 invoked by uid 500); 2 Jul 2004 09:35:11 -0000 Received: (qmail 82369 invoked by uid 99); 2 Jul 2004 09:35:03 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Fri, 02 Jul 2004 02:35:03 -0700 Received: (qmail 60343 invoked by uid 1652); 2 Jul 2004 09:34:33 -0000 Date: 2 Jul 2004 09:34:33 -0000 Message-ID: <20040702093433.60341.qmail@minotaur.apache.org> From: antoine@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/junit Xalan1Executor.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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