diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:26:32 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:26:32 +0000 |
commit | 33eca86b57917e616225dc5d220800725251e2c7 (patch) | |
tree | 25c0fec855ff72157e545f877c6cdc7d429e1c9a /pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java | |
parent | 8e41f174287d0d5d47c1e93fcac84c3a4efc96b0 (diff) | |
download | mocca-33eca86b57917e616225dc5d220800725251e2c7.tar.gz mocca-33eca86b57917e616225dc5d220800725251e2c7.tar.bz2 mocca-33eca86b57917e616225dc5d220800725251e2c7.zip |
Move some constants to Constants class
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@324 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java index 1b7a3116..4ff52ae7 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java @@ -27,7 +27,6 @@ import org.slf4j.LoggerFactory; import at.asit.pdfover.gui.exceptions.InitializationException; import at.asit.pdfover.gui.utils.Messages; import at.asit.pdfover.gui.utils.SWTLoader; -import at.asit.pdfover.gui.workflow.ConfigManipulator; import at.asit.pdfover.gui.workflow.StateMachineImpl; /** @@ -55,12 +54,12 @@ public class Main { JOptionPane.ERROR_MESSAGE); } - File configDir = new File(System.getProperty("user.home")+"/.pdfover"); //$NON-NLS-1$//$NON-NLS-2$ + File configDir = new File(Constants.CONFIG_DIRECTORY); if(!configDir.exists()) { configDir.mkdir(); } - File log4j = new File(configDir.getAbsolutePath() + "/" + ConfigManipulator.DEFAULT_LOG4J_FILE); //$NON-NLS-1$ + File log4j = new File(configDir.getAbsolutePath() + File.separator + Constants.DEFAULT_LOG4J_FILENAME); if(log4j.exists()) { PropertyConfigurator.configure(log4j.getAbsolutePath()); } |