Author: rgardler Date: Mon Sep 8 22:03:33 2008 New Revision: 693364 URL: http://svn.apache.org/viewvc?rev=693364&view=rev Log: add a log message for solving problems with relateive paths
Modified: forrest/trunk/main/java/org/apache/forrest/sourceexists/SourceExistsSelector.java Modified: forrest/trunk/main/java/org/apache/forrest/sourceexists/SourceExistsSelector.java URL: http://svn.apache.org/viewvc/forrest/trunk/main/java/org/apache/forrest/sourceexists/SourceExistsSelector.java?rev=693364&r1=693363&r2=693364&view=diff ============================================================================== --- forrest/trunk/main/java/org/apache/forrest/sourceexists/SourceExistsSelector.java (original) +++ forrest/trunk/main/java/org/apache/forrest/sourceexists/SourceExistsSelector.java Mon Sep 8 22:03:33 2008 @@ -23,6 +23,7 @@ import org.apache.cocoon.selection.Selector; +import org.apache.excalibur.source.impl.FileSource; import org.apache.avalon.framework.service.ServiceException; import org.apache.avalon.framework.service.ServiceManager; import org.apache.avalon.framework.service.Serviceable; @@ -86,6 +87,9 @@ try { src = resolver.resolveURI(uri); + if (getLogger().isDebugEnabled() && uri.charAt(0) == '.' && src instanceof FileSource) { + getLogger().debug("location resolves to: " + ((FileSource)src).getFile().toString()); + } if (src.exists()) { return true; } else {