001/*
002 * Copyright 2013 Atteo.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.atteo.moonshine.directories;
017
018import com.beust.jcommander.Parameter;
019
020public class FileAccessorCommandLineParameters {
021    @Parameter(names = "--home", description = "Base home directory")
022    private String homeDirectory;
023
024    @Parameter(names = "--data-home", description = "Directory to which user specific"
025            + " data files should be stored")
026    private String dataHome;
027
028    @Parameter(names = "--config-home", description = "Directory to which user specific"
029            + " configuration files should be stored")
030    private String configHome;
031
032    @Parameter(names = "--cache-home", description = "Directory with non-essential"
033            + " user-specific (cache) data files")
034    private String cacheHome;
035
036    @Parameter(names = "--log-home", description = "Directory with log files")
037    private String logHome;
038
039    @Parameter(names = "--print-dirs", description = "Print directories used by the app (data home, config home etc)")
040    private boolean printDirectories;
041
042    public String getHomeDirectory() {
043        return homeDirectory;
044    }
045
046    public String getDataHome() {
047        return dataHome;
048    }
049
050    public String getConfigHome() {
051        return configHome;
052    }
053
054    public String getCacheHome() {
055        return cacheHome;
056    }
057
058    String getLogHome() {
059        return logHome;
060    }
061
062    public boolean isPrintDirectories() {
063        return printDirectories;
064    }
065}