* Bring manage app up to date with current Helma.

This commit is contained in:
hns 2005-08-31 13:16:21 +00:00
parent c632c8f8bd
commit 437dfb94d3
33 changed files with 1185 additions and 1152 deletions

View file

@ -1,7 +1,6 @@
/**
* renders the api of a given application. used from commandline.
*/
* renders the api of a given application. used from commandline.
*/
function renderApi(appName) {
// supress security checks when accessing actions
@ -15,7 +14,7 @@ function renderApi(appName) {
// now render the api
var ct = docApp.renderApi();
writeln("rendered " + ct + " files");
// cleanup
this.stopApplication(appName);
}
@ -25,15 +24,15 @@ function renderApi(appName) {
* lists all applications in appdir.
* for active apps use this.getApplications() = helma.main.Server.getApplications()
*/
function getAllApplications() {
var appsDir = this.getAppsHome();
var dir = appsDir.list();
var arr = new Array();
for ( var i=0; i<dir.length; i++ ) {
if ( dir[i].toLowerCase()!="cvs" && dir[i].indexOf(".")==-1 )
arr[arr.length] = this.getApp(dir[i]);
}
return arr;
function getAllApplications() {
var appsDir = this.getAppsHome();
var dir = appsDir.list();
var arr = new Array();
for (var i = 0; i < dir.length; i++) {
if (dir[i].toLowerCase() != "cvs" && dir[i].indexOf(".") == -1)
arr[arr.length] = this.getApp(dir[i]);
}
return arr;
}
@ -45,13 +44,13 @@ function getAllApplications() {
* retrieves active applications.
* @arg name of application
*/
function getApp(name) {
if ( name==null || name=="" )
return null;
var appObj = this.getApplication(name);
if ( appObj==null )
appObj = new application(name);
return appObj;
function getApp(name) {
if (name == null || name == "")
return null;
var appObj = this.getApplication(name);
if (appObj == null)
appObj = new Application(name);
return appObj;
}