/////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2014 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
// by the Free Software Foundation; version 3 of the License.
//
// This community edition 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 General
// Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, see http://www.gnu.org/licenses/.
//
/////////////////////////////////////////////////////////////////////////////
package org.projectforge.web;
import org.projectforge.common.DatabaseDialect;
import org.projectforge.webserver.StartSettings;
/**
* Starts ProjectForge for development purposes as an alternative to WTP. Debug mode is supported.<br/>
* For own parameter sets (other database etc.), use MyStart (see StartPostgreSQL as a PostgreSQL example).<br/>
* For larger installations please increase memory by giving the following start VM parameters: -Xmx1024m -XX:MaxPermSize=256m
*
* @author Kai Reinhard (k.reinhard@micromata.de)
*/
public class Start
{
/**
* Should be set to true only at first start:
*/
private static final boolean SCHEMA_UPDATE = false;
private static final String BASE_DIR = System.getProperty("user.dir") + "/testsystem/";
public static void main(final String[] args) throws Exception
{
final StartSettings settings = new StartSettings(DatabaseDialect.HSQL, BASE_DIR);
settings.setSchemaUpdate(SCHEMA_UPDATE);
settings.setLaunchBrowserAfterStartup(true);
final StartHelper startHelper = new StartHelper(settings);
startHelper.start();
}
}