|
a/tool/run/plugins/webserver/server.java |
|
b/tool/run/plugins/webserver/server.java |
|
... |
|
... |
41 |
/** Start our instance */
|
41 |
/** Start our instance */
|
42 |
public void startServer(){
|
42 |
public void startServer(){
|
43 |
String status = settings.read("status", "offline");
|
43 |
String status = settings.read("status", "offline");
|
44 |
// if we are supposed to be offline, don't start the server
|
44 |
// if we are supposed to be offline, don't start the server
|
45 |
if(status.equals("offline")){
|
45 |
if(status.equals("offline")){
|
|
|
46 |
// we might have started before and need to now place it offline
|
|
|
47 |
WebServer server = (WebServer) core.temp.get("server");
|
|
|
48 |
if(server != null){
|
|
|
49 |
server.stopServer();
|
|
|
50 |
}
|
46 |
return;
|
51 |
return;
|
47 |
}
|
52 |
}
|
48 |
// let's kickoff the server
|
53 |
// let's kickoff the server
|
49 |
WebServer server = new WebServer();
|
54 |
WebServer server = new WebServer();
|
50 |
String portNumber = settings.read("port", definition.portDefault);
|
55 |
String portNumber = settings.read("port", definition.portDefault);
|