You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2008/08/31 20:28:10 UTC
svn commit: r690749 -
/velocity/engine/trunk/src/test/org/apache/velocity/test/ResourceExistsTestCase.java
Author: nbubna
Date: Sun Aug 31 11:28:09 2008
New Revision: 690749
URL: http://svn.apache.org/viewvc?rev=690749&view=rev
Log:
more gump debugging
Modified:
velocity/engine/trunk/src/test/org/apache/velocity/test/ResourceExistsTestCase.java
Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/ResourceExistsTestCase.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/ResourceExistsTestCase.java?rev=690749&r1=690748&r2=690749&view=diff
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/ResourceExistsTestCase.java (original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/ResourceExistsTestCase.java Sun Aug 31 11:28:09 2008
@@ -51,6 +51,7 @@
velocity.setProperty("string.resource.loader.class", StringResourceLoader.class.getName());
// actual instance of logger
+ logger.on();
velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, logger);
velocity.setProperty("runtime.log.logsystem.test.level", "debug");
}
@@ -62,6 +63,13 @@
String msg = "testfile.vm was not found in path "+path;
System.out.println(msg);
System.out.println("Log was: "+logger.getLog());
+ path = path+"/testfile.vm";
+ java.io.File file = new java.io.File(path);
+ if (file.exists()) {
+ System.out.println("file system found "+path);
+ } else {
+ System.out.println(file+" could not be found as a file");
+ }
fail(msg);
}
if (velocity.resourceExists("nosuchfile.vm"))