@@ -0,0 +1,2719 @@
+/**%0A * Copyright (C) 2012 Karsten Schulz %3Clennylinux.ks@googlemail.com%3E%0A *%0A * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and%0A * associated documentation files (the %22Software%22), to deal in the Software without restriction,%0A * including without limitation the rights to use, copy, modify, merge, publish, distribute,%0A * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is%0A * furnished to do so, subject to the following conditions:%0A *%0A * The above copyright notice and this permission notice shall be included in all copies or%0A * substantial portions of the Software.%0A *%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT%0A * NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND%0A * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,%0A * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT%0A * OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.%0A */%0Apackage com.google.code.tickconverter.util;%0A%0Aimport java.util.Properties;%0A%0A/**%0A * This class is a final class with static method to get the config values of the command line.%0A * %0A * @author Karsten Schulz %3Ca href=%22mailto:lennylinux.ks@googlmail.com%22%3E(lennylinux.ks@googlmail.com)%3C/a%3E%0A */%0Apublic final class AppProperties%0A%7B%0A%0A    protected static Properties properties = new Properties();%0A%0A    /**%0A     * Returns the inputfile to parse the dukascopy object.%0A     * %0A     * @return%0A     */%0A    public static String getInputFile()%0A    %7B%0A        return properties.getProperty( ConfigProperties.INPUTFILE.getConfigName() );%0A    %7D%0A%0A    /**%0A     * Returns the outputfile to write the metatrader objects.%0A     * %0A     * @return%0A     */%0A    public static String getOutputFile()%0A    %7B%0A        return properties.getProperty( ConfigProperties.OUTPUTFILE.getConfigName() );%0A    %7D%0A%0A    /**%0A     * Returns the location of the logging configuration file. It this was not set the return value is a blank string.%0A     * %0A     * @return%0A     */%0A    public static String getLoggingConfig()%0A    %7B%0A        return properties.getProperty( ConfigProperties.LOGGING.getConfigName(),%0A                                       ConfigProperties.LOGGING.getDefaultValue() );%0A    %7D%0A%0A    /**%0A     * Returns the log level, if the configuration file was not set.%0A     * %0A     * @return%0A     */%0A    public static String getLogLevel()%0A    %7B%0A        return properties.getProperty( ConfigProperties.LOGLEVEL.getConfigName(),%0A                                       ConfigProperties.LOGLEVEL.getDefaultValue() );%0A    %7D%0A%7D%0A

implement an util class to returns the command line values