Lines 67-72
Link Here
|
67 |
import java.util.StringTokenizer; |
67 |
import java.util.StringTokenizer; |
68 |
import java.util.concurrent.atomic.AtomicReference; |
68 |
import java.util.concurrent.atomic.AtomicReference; |
69 |
import org.openide.util.Lookup; |
69 |
import org.openide.util.Lookup; |
|
|
70 |
import org.openide.util.NbBundle; |
70 |
import org.openide.util.lookup.Lookups; |
71 |
import org.openide.util.lookup.Lookups; |
71 |
|
72 |
|
72 |
/** Bootstrap main class. |
73 |
/** Bootstrap main class. |
Lines 225-236
Link Here
|
225 |
* Call when the system is up and running, to complete handling of |
226 |
* Call when the system is up and running, to complete handling of |
226 |
* delayed command-line options like -open FILE. |
227 |
* delayed command-line options like -open FILE. |
227 |
*/ |
228 |
*/ |
228 |
public static void finishInitialization() { |
229 |
public static void finishInitialization(boolean exit) { |
229 |
int r = CLIHandler.finishInitialization (false); |
230 |
int r = CLIHandler.finishInitialization (false); |
230 |
if (r != 0) { |
231 |
if (r != 0) { |
231 |
// Not much to do about it. |
232 |
if (exit) { |
232 |
System.err.println ("Post-initialization command-line options could not be run."); // NOI18N |
233 |
TopSecurityManager.exit(r); |
233 |
//System.err.println("r=" + r + " args=" + java.util.Arrays.asList(args.getArguments())); |
234 |
} else { |
|
|
235 |
// Not much to do about it. |
236 |
System.err.println ("Post-initialization command-line options could not be run."); // NOI18N |
237 |
} |
234 |
} |
238 |
} |
235 |
} |
239 |
} |
236 |
|
240 |
|