/** * renders the api of a given application. used from commandline. */ function renderApi(appName) { // supress security checks when accessing actions res.data.noWeb = true; // start the application this.startApplication(appName); var appObj = this.getApp(appName); var docApp = appObj.getChildElement("api"); // now render the api var ct = docApp.renderApi(); writeln("rendered " + ct + " files"); // cleanup this.stopApplication(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