private boolean useSystemClassLoader() { return forkConfiguration.isUseSystemClassLoader() && ( isForked || forkConfiguration.isForking() ); }
final ForkConfiguration fork = new ForkConfiguration(); fork.setForkMode(this.forkMode); processSystemProperties(!fork.isForking()); if (fork.isForking()) { this.useSystemClassLoader = this.useSystemClassLoader == null ? Boolean.TRUE : this.useSystemClassLoader; fork.setUseSystemClassLoader(this.useSystemClassLoader.booleanValue()); fork.setUseManifestOnlyJar(this.useManifestOnlyJar); fork.setSystemProperties(this.systemProperties); fork.setDebugLine(this.debugForkedProcess); fork.setJvmExecutable(this.jvm); fork.setWorkingDirectory(this.workingDirectory); } else { fork.setWorkingDirectory(this.basedir); fork.setArgLine(this.argLine); fork.setEnvironmentVariables(this.environmentVariables); fork.setDebug(true); addReporters(surefireBooter, fork.isForking());
ForkConfiguration forkConfiguration = new ForkConfiguration(); forkConfiguration.setForkMode( "never" ); surefireBooter.setForkConfiguration( forkConfiguration ); surefireBooter.forkConfiguration.setUseSystemClassLoader( value ); surefireBooter.forkConfiguration.setUseManifestOnlyJar( value );
public boolean isForking() { return forkConfiguration.isForking(); }
ForkConfiguration fork = new ForkConfiguration(); fork.setForkMode( getForkMode() ); processSystemProperties( !fork.isForking() ); if ( fork.isForking() ) fork.setUseSystemClassLoader( getUseSystemClassLoader().booleanValue() ); fork.setUseManifestOnlyJar( isUseManifestOnlyJar() ); fork.setSystemProperties( getInternalSystemProperties() ); fork.setDebugLine( getDebugForkedProcess() ); fork.setJvmExecutable( getJvm() ); fork.setWorkingDirectory( getWorkingDirectory() ); fork.setWorkingDirectory( getBasedir() ); fork.setArgLine( getArgLine() ); fork.setEnvironmentVariables( getEnvironmentVariables() ); fork.setDebug( true ); addReporters( surefireBooter, fork.isForking() );