blob: c29de39874e71fa1f98015c83afe2e264120b9c9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2008 Tasktop Technologies and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.commons.core;
/**
* @since 3.0
* @author Steffen Pingel
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class CoreUtil {
/**
* @since 3.0
*/
public static final boolean TEST_MODE;
static {
String application = System.getProperty("eclipse.application", ""); //$NON-NLS-1$ //$NON-NLS-2$
if (application.length() > 0) {
TEST_MODE = application.endsWith("testapplication"); //$NON-NLS-1$
} else {
// eclipse 3.3 does not the eclipse.application property
String commands = System.getProperty("eclipse.commands", ""); //$NON-NLS-1$ //$NON-NLS-2$
TEST_MODE = commands.contains("testapplication\n"); //$NON-NLS-1$
}
}
}