diff options
3 files changed, 6 insertions, 5 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java index 9eb38388..30ecc54b 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java @@ -90,7 +90,7 @@ public class Constants { public static final String DEFAULT_MOBILE_BKU_URL = "https://www.a-trust.at/mobile/https-security-layer-request/default.aspx"; //$NON-NLS-1$ /** Configuration directory */ - public static String CONFIG_DIRECTORY = System.getProperty("user.home") + File.separator + ".pdfover"; //$NON-NLS-1$ //$NON-NLS-2$ + public static String CONFIG_DIRECTORY = System.getProperty("user.home") + File.separator + ".pdf-over"; //$NON-NLS-1$ //$NON-NLS-2$ /** The default configuration file name */ public static final String DEFAULT_CONFIG_FILENAME = "PDFOver.config"; //$NON-NLS-1$ diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/log4j.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/log4j.properties index 74a980b2..53fea828 100644 --- a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/log4j.properties +++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/log4j.properties @@ -6,7 +6,7 @@ log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout log4j.appender.STDOUT.layout.ConversionPattern=%-5p | %d | %t | %c %x- %m%n log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender -log4j.appender.LOGFILE.file=${user.home}/.pdfover/pdfover.log +log4j.appender.LOGFILE.file=${user.home}/.pdf-over/pdf-over.log log4j.appender.LOGFILE.MaxFileSize=100KB log4j.appender.LOGFILE.MaxBackupIndex=10 log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout diff --git a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASHelper.java b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASHelper.java index d16b7532..473bbf42 100644 --- a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASHelper.java +++ b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASHelper.java @@ -45,8 +45,9 @@ public class PDFASHelper { */ private static PdfAs createPdfAs() throws PdfAsException { File directory = new File ("."); - System.setProperty("log4j.configuration", directory.getAbsolutePath()+"/log4j.properties"); - System.setProperty("pdf-as.work-dir", System.getProperty("user.home")+"/.pdfover"); + System.setProperty("log4j.configuration", directory.getAbsolutePath() + + "/log4j.properties"); + System.setProperty("pdf-as.work-dir", getWorkDir()); return new at.gv.egiz.pdfas.impl.api.PdfAsObject(); } @@ -55,7 +56,7 @@ public class PDFASHelper { * @return the working directory */ public static String getWorkDir() { - return System.getProperty("user.home")+"/.pdfover"; + return System.getProperty("user.home") + "/.pdf-over"; } /** |