[Helma-dev] helma from commandline

stefan.pollach at orf.at stefan.pollach at orf.at
Mon Dec 15 23:06:06 CET 2003


Hello!

There is a tiny new feature in helma: it can now be used like a commandline-tool for a single function call without creating a server.

I'd like to use this feature for the manage app so that we can render app-documentation automatically from a build system. another useful thing might be *very* long jobs (like cleanup etc) where you want to use the full db-connection and the scripting/rendering framework of that app.

For each call the app is built and a given function is invoked. There is no timeout set for that call. I've uploaded a batch file for windows to adele.helma.org which basically is a stripped-down helma startscript. no port definition needed, only the actual java-command changes:

%JAVACMD% %JAVA_OPTIONS% -cp "%INSTALL_DIR%\launcher.jar" helma.main.launcher.Commandline %1%

http://adele.helma.org/download/helma/contrib/stefan/cmdline/

the argument to the script is <appname>.<functionname> for any function in root or <appname>.<object1>.<functionname> for a path-resolution as in xmlrpc-calls. The return value is printed to stdout. Other values can be printed using javascript's global function writeln().

lg,
Stefan
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde geschreddert...
URL: http://grazia.helma.at/pipermail/helma-dev/attachments/20031215/a0781fd5/attachment.html


More information about the Helma-dev mailing list