aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/pdfas/impl/api
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2008-06-10 10:47:02 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2008-06-10 10:47:02 +0000
commit1eac16f95618fc4bc1e90b5d44cc94252647f136 (patch)
tree5b2b88fedacc647b346bb57330b18c242032194d /src/main/java/at/gv/egiz/pdfas/impl/api
parentb16222315442304a22d83a8135c116cea4208543 (diff)
downloadpdf-as-3-1eac16f95618fc4bc1e90b5d44cc94252647f136.tar.gz
pdf-as-3-1eac16f95618fc4bc1e90b5d44cc94252647f136.tar.bz2
pdf-as-3-1eac16f95618fc4bc1e90b5d44cc94252647f136.zip
Manual deployment of pdf-as configuration (commandline parameter -ddc) considers the system property pdf-as.work-dir.
Internal default configuration updated. log4.properties within the workdir is now being considered using the api. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@280 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/gv/egiz/pdfas/impl/api')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java b/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java
index 303d48f..0450a50 100644
--- a/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java
+++ b/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java
@@ -14,6 +14,7 @@ import java.util.Vector;
import org.apache.commons.lang.math.NumberUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.apache.log4j.PropertyConfigurator;
import at.gv.egiz.pdfas.api.PdfAs;
import at.gv.egiz.pdfas.api.analyze.AnalyzeParameters;
@@ -105,6 +106,7 @@ public class PdfAsObject implements PdfAs
*/
public void reloadConfig() throws PdfAsException
{
+ PropertyConfigurator.configure(SettingsReader.CONFIG_PATH + "log4j.properties");
SettingsReader.createInstance();
SignatureTypes.createInstance();
}