org.ops4j.pax.runner.NoopJavaRunner Maven / Gradle / Ivy
package org.ops4j.pax.runner;
import java.io.File;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.ops4j.pax.runner.platform.JavaRunner;
import org.ops4j.pax.runner.platform.PlatformException;
/**
* A JavaRunner that does nothing.
*
* @author Alin Dreghiciu
* @since 0.13.0, September 17, 2008
*/
public class NoopJavaRunner
implements JavaRunner
{
/**
* Logger.
*/
private static final Log LOGGER = LogFactory.getLog( NoopJavaRunner.class );
public void exec( String[] vmOptions, String[] classpath, String mainClass, String[] programOptions, String javaHome, File workingDir, String[] environmentVariables )
throws PlatformException
{
LOGGER.info( "Skipping platform start and exit immediately" );
}
/**
* {@inheritDoc}
*/
public void exec( final String[] vmOptions,
final String[] classpath,
final String mainClass,
final String[] programOptions,
final String javaHome,
final File workingDir )
throws PlatformException
{
LOGGER.info( "Skipping platform start and exit immediately" );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy