"=self"-tag for self scripting applications in apps.properties is no longer supported. use class.properties file instead and define helma.main.Server as the main class.
This commit is contained in:
parent
1bd0f474b6
commit
ce27d2124b
1 changed files with 0 additions and 4 deletions
|
@ -75,10 +75,6 @@ public class ApplicationManager {
|
||||||
// if we're running with the embedded web server, set app base uri to /appname
|
// if we're running with the embedded web server, set app base uri to /appname
|
||||||
if (server.websrv != null && !"base".equalsIgnoreCase (appName))
|
if (server.websrv != null && !"base".equalsIgnoreCase (appName))
|
||||||
app.setBaseURI ("/"+java.net.URLEncoder.encode (appName));
|
app.setBaseURI ("/"+java.net.URLEncoder.encode (appName));
|
||||||
// check if the root object of the application is the Server itself
|
|
||||||
boolean self = "self".equalsIgnoreCase (props.getProperty (appName));
|
|
||||||
if (self)
|
|
||||||
app.setDataRoot (server);
|
|
||||||
// the application is started later in the register method, when it's bound
|
// the application is started later in the register method, when it's bound
|
||||||
app.init ();
|
app.init ();
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue