This is an automated email from the ASF dual-hosted git repository. juanpablo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/jspwiki.git
commit f14bedcf1ec39b2804fc60eecc043dbfae6ec465 Author: juanpablo <[email protected]> AuthorDate: Thu Feb 20 17:20:36 2020 +0100 remove old references to AuthenticationManager on Engine --- jspwiki-main/src/main/java/org/apache/wiki/api/core/Engine.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jspwiki-main/src/main/java/org/apache/wiki/api/core/Engine.java b/jspwiki-main/src/main/java/org/apache/wiki/api/core/Engine.java index fdcb187..f88eb88 100644 --- a/jspwiki-main/src/main/java/org/apache/wiki/api/core/Engine.java +++ b/jspwiki-main/src/main/java/org/apache/wiki/api/core/Engine.java @@ -21,7 +21,6 @@ package org.apache.wiki.api.core; import org.apache.log4j.Logger; import org.apache.wiki.WatchDog; import org.apache.wiki.api.exceptions.ProviderException; -import org.apache.wiki.auth.AuthenticationManager; import org.apache.wiki.event.WikiEventListener; import javax.servlet.ServletContext; @@ -208,7 +207,7 @@ public interface Engine { * @return the URL to the file */ default URL findConfigFile( final String name ) { - Logger.getLogger( AuthenticationManager.class ).info( "looking for " + name + " inside WEB-INF " ); + Logger.getLogger( Engine.class ).info( "looking for " + name + " inside WEB-INF " ); // Try creating an absolute path first File defaultFile = null; if( getRootPath() != null ) { @@ -237,7 +236,7 @@ public interface Engine { tmpFile.deleteOnExit(); Logger.getLogger( Engine.class ).info( "looking for /" + name + " on classpath" ); // create a tmp file of the policy loaded as an InputStream and return the URL to it - try( final InputStream is = AuthenticationManager.class.getResourceAsStream( "/" + name ); + try( final InputStream is = Engine.class.getResourceAsStream( "/" + name ); final OutputStream os = new FileOutputStream( tmpFile ) ) { if( is == null ) { throw new FileNotFoundException( name + " not found" );
