Allow Helma to run without listening to any server ports.
This commit is contained in:
parent
2ab0f17678
commit
a021cbf791
2 changed files with 0 additions and 9 deletions
|
@ -32,10 +32,6 @@ public class Config {
|
||||||
File propFile = null;
|
File propFile = null;
|
||||||
File homeDir = null;
|
File homeDir = null;
|
||||||
|
|
||||||
public boolean hasPortSetting() {
|
|
||||||
return (websrvPort != null || ajp13Port != null || rmiPort != null || xmlrpcPort != null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean hasPropFile() {
|
public boolean hasPropFile() {
|
||||||
return (propFile != null);
|
return (propFile != null);
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,11 +125,6 @@ public class Server implements IPathElement, Runnable {
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!config.hasPortSetting()) {
|
|
||||||
printUsageError("no server ports set");
|
|
||||||
System.exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
checkRunning(config);
|
checkRunning(config);
|
||||||
|
|
||||||
// create new server instance
|
// create new server instance
|
||||||
|
|
Loading…
Add table
Reference in a new issue