This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
*/
public class StartServer extends Task implements Deployment.Logger {
// default profiling timeout
private static final long DEFAULT_TIMEOUT = 1200000; // in millis
/**
* Holds value of property debugmode.
si.startDebug(ui);
} else if (profilemode) {
si.startProfile(false, ui);
// TODO whole this thing would deserve a better solution
long start = System.nanoTime();
while (!si.isReallyRunning()
&& DEFAULT_TIMEOUT > ((System.nanoTime() - start) / 1000000)) {
try {
Thread.sleep(100);
} catch (InterruptedException ex) {
Thread.currentThread().interrupt();
// proceed to exit
}
} else {
si.start(ui);
setServerState(ServerInstance.STATE_PROFILER_BLOCKING);
} else if (profState == ProfilerSupport.STATE_PROFILING
|| profState == ProfilerSupport.STATE_RUNNING) {
initCoTarget();
if (isReallyRunning()) {
setServerState(ServerInstance.STATE_PROFILING);
setServerState(ServerInstance.STATE_STOPPED);