ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r917354 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java
Date Mon, 01 Mar 2010 02:02:53 GMT
Author: antoine
Date: Mon Mar  1 02:02:53 2010
New Revision: 917354

URL: http://svn.apache.org/viewvc?rev=917354&view=rev
Log:
hopefully make the tests pass in gump's module test-ant-no-xerces

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java?rev=917354&r1=917353&r2=917354&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java
(original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java
Mon Mar  1 02:02:53 2010
@@ -51,6 +51,16 @@
     }
 
     public void testXalan2Redirect() throws Exception {
+    	Class clazz = null;
+    	try {
+    		clazz = getClass().getClassLoader().loadClass("org.apache.xalan.lib.Redirect");
+    	} catch (Exception exc) {
+    		// ignore
+    	}
+    	if (clazz == null) {
+    		System.out.println("xalan redirect is not on the classpath");
+    		return;
+    	}
         File xsl = getFile("/taskdefs/optional/xalan-redirect-in.xsl");
         liaison.setStylesheet(xsl);
         File out = new File("xalan2-redirect-out-dummy.tmp");



Mime
View raw message