no more commons-logging
This commit is contained in:
parent
9e840209cf
commit
96c8744044
1 changed files with 0 additions and 3 deletions
|
|
@ -12,7 +12,6 @@ import javax.servlet.http.HttpServlet;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import org.apache.commons.logging.LogFactory;
|
|
||||||
import org.apache.log4j.PropertyConfigurator;
|
import org.apache.log4j.PropertyConfigurator;
|
||||||
import org.forkalsrud.album.db.ThumbnailDatabase;
|
import org.forkalsrud.album.db.ThumbnailDatabase;
|
||||||
import org.forkalsrud.album.exif.DirectoryEntry;
|
import org.forkalsrud.album.exif.DirectoryEntry;
|
||||||
|
|
@ -40,8 +39,6 @@ public class AlbumServlet
|
||||||
base = new File(getServletConfig().getInitParameter("base")).getAbsoluteFile();
|
base = new File(getServletConfig().getInitParameter("base")).getAbsoluteFile();
|
||||||
basePrefix = "/" + base.getName();
|
basePrefix = "/" + base.getName();
|
||||||
|
|
||||||
LogFactory.getFactory().setAttribute("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.Log4JLogger");
|
|
||||||
|
|
||||||
String dbDirName = getServletConfig().getInitParameter("dbdir");
|
String dbDirName = getServletConfig().getInitParameter("dbdir");
|
||||||
File dbDir = dbDirName != null ? new File(dbDirName) : new File(System.getProperty("java.io.tmpdir"), "album");
|
File dbDir = dbDirName != null ? new File(dbDirName) : new File(System.getProperty("java.io.tmpdir"), "album");
|
||||||
dbDir.mkdir();
|
dbDir.mkdir();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue