<commit_before>/*
 * (C) Copyright 2006-2010 Nuxeo SAS (http://nuxeo.com/) and contributors.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser General Public License
 * (LGPL) version 2.1 which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl.html
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * Contributors:
 *     bstefanescu, jcarsique
 *
 * $Id$
 */

package org.nuxeo.common;

import java.io.File;
import java.util.Properties;

/**
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 */
public class Environment {

    /**
     * Constants that identifies possible hosts for the framework.
     */
    public static final String JBOSS_HOST = "JBoss";

    // Jetty or GF3 embedded
    public static final String NXSERVER_HOST = "NXServer";

    public static final String TOMCAT_HOST = "Tomcat";

    public static String NUXEO_DATA_DIR = "nuxeo.data.dir";

    public static String NUXEO_LOG_DIR = "nuxeo.log.dir";

    public static String NUXEO_TMP_DIR = "nuxeo.tmp.dir";

    /**
     * the home directory
     *
     * @deprecated never defined
     */
    public static final String HOME_DIR = "org.nuxeo.app.home";

    /**
     * the web root
     *
     * @deprecated never defined
     */
    public static final String WEB_DIR = "org.nuxeo.app.web";

    /**
     * the config directory
     *
     * @deprecated never defined
     */
    public static final String CONFIG_DIR = "org.nuxeo.app.config";

    /**
     * the data directory
     *
     * @deprecated never defined
     */
    public static final String DATA_DIR = "org.nuxeo.app.data";

    /**
     * the log directory
     *
     * @deprecated never defined
     */
    public static final String LOG_DIR = "org.nuxeo.app.log";

    // the application layout (optional)
    // directory containing nuxeo runtime osgi bundles
    public static final String BUNDLES_DIR = "nuxeo.osgi.app.bundles";

    public static final String BUNDLES = "nuxeo.osgi.bundles";

    private static Environment DEFAULT;
<commit_msg>NXP-5750 - working on env properties cleanup<commit_after>/*
 * (C) Copyright 2006-2010 Nuxeo SAS (http://nuxeo.com/) and contributors.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser General Public License
 * (LGPL) version 2.1 which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl.html
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * Contributors:
 *     bstefanescu, jcarsique
 *
 * $Id$
 */

package org.nuxeo.common;

import java.io.File;
import java.util.Properties;

/**
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 */
public class Environment {

    /**
     * Constants that identifies possible hosts for the framework.
     */
    public static final String JBOSS_HOST = "JBoss";

    // Jetty or GF3 embedded
    public static final String NXSERVER_HOST = "NXServer";

    public static final String TOMCAT_HOST = "Tomcat";

    public static String NUXEO_HOME_DIR = "nuxeo.home.dir";

    public static String NUXEO_DATA_DIR = "nuxeo.data.dir";

    public static String NUXEO_LOG_DIR = "nuxeo.log.dir";

    public static String NUXEO_TMP_DIR = "nuxeo.tmp.dir";

    public static String NUXEO_CONFIG_DIR = "nuxeo.config.dir";

    public static String NUXEO_WEB_DIR = "nuxeo.web.dir";

    /**
     * the home directory
     * 
     * @deprecated never defined
     */
    public static final String HOME_DIR = "org.nuxeo.app.home";

    /**
     * the web root
     * 
     * @deprecated never defined
     */
    public static final String WEB_DIR = "org.nuxeo.app.web";

    /**
     * the config directory
     * 
     * @deprecated never defined
     */
    public static final String CONFIG_DIR = "org.nuxeo.app.config";

    /**
     * the data directory
     * 
     * @deprecated never defined
     */
    public static final String DATA_DIR = "org.nuxeo.app.data";

    /**
     * the log directory
     * 
     * @deprecated never defined
     */
    public static final String LOG_DIR = "org.nuxeo.app.log";

    // the application layout (optional)
    // directory containing nuxeo runtime osgi bundles
    public static final String BUNDLES_DIR = "nuxeo.osgi.app.bundles";

    public static final String BUNDLES = "nuxeo.osgi.bundles";

    private static Environment DEFAULT;

{'fraction_non_alphanumeric': 0.09627648631968731, 'fraction_numerical': 0.005348693684427073, 'mean_word_length': 2.8253343823760817, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '363572', 'n_tokens_mistral': 1524, 'n_tokens_neox': 1442, 'n_words': 478}