/*******************************************************************************
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* 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.
*
*******************************************************************************/
package com.liferay.ide.server.tomcat.core;
import com.liferay.ide.core.util.StringPool;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
/**
* @author Greg Amerson
* @author Terry Jia
* @author Simon Jiang
*/
public interface ILiferayTomcatConstants
{
@SuppressWarnings( "deprecation" )
IEclipsePreferences _defaultPrefs = new DefaultScope().getNode( LiferayTomcatPlugin.PLUGIN_ID );
String DEFAULT_AUTO_DEPLOY_INTERVAL = _defaultPrefs.get( "default.auto.deploy.interval", "500" ); //$NON-NLS-1$ //$NON-NLS-2$
String DEFAULT_AUTO_DEPLOYDIR = "../deploy"; //$NON-NLS-1$
String DEFAULT_DEPLOYDIR = "webapps"; //$NON-NLS-1$
String DEFAULT_MEMORY_ARGS = _defaultPrefs.get( "default.memory.args", "-Xmx1024m" ); //$NON-NLS-1$ //$NON-NLS-2$
boolean DEFAULT_USE_DEFAULT_PORTAL_SERVER_SETTING = false;
String DEFAULT_USER_TIMEZONE = _defaultPrefs.get( "default.user.timezone", "GMT" ); //$NON-NLS-1$ //$NON-NLS-2$
int DEVELOPMENT_SERVER_MODE = 2;
String[] LIB_EXCLUDES = _defaultPrefs.get( "tomcat.lib.excludes", StringPool.EMPTY ).split( StringPool.COMMA ); //$NON-NLS-1$
boolean PREVENT_MULTI_EXT_PLUGINS_DEPLOY = _defaultPrefs.getBoolean( "prevent.multi.ext.plugins.deploy", false ); //$NON-NLS-1$
int STANDARD_SERVER_MODE = 1;
}