| Newsgroups |
gmane.comp.java.helma.cvs |
| Message-ID |
<[email protected]> |
Author: hannes
Date: 2009-01-30 11:58:47 +0100 (Fri, 30 Jan 2009)
New Revision: 9497
Modified:
helma-ng/trunk/README.txt
Log:
Bring README file up to date.
Details at http://dev.helma.org/trac/helma/changeset/9497
Modified: helma-ng/trunk/README.txt
===================================================================
--- helma-ng/trunk/README.txt 2009-01-29 14:21:50 UTC (rev 9496)
+++ helma-ng/trunk/README.txt 2009-01-30 10:58:47 UTC (rev 9497)
@@ -27,10 +27,10 @@
You can also start the interactive Helma shell when running a script using
the -i or --interactive flag:
- java -jar run.jar -i ./dir/script.js
+ java -jar run.jar -i dir/script.js
This will add the script's parent directory to the module path (in this case
-"./dir", run the script, then start the shell.
+"dir", run the script, then start the shell.
Helma Runtime
=============
@@ -84,12 +84,13 @@
In addition to standard Javascript functionality, some useful functions
Helma adds are:
-importModule(module);
-importModule(module, as);
-importFromModule(module, func1, ...)
+import(module);
+include(module);
+require(module);
- These functions load Javascript modules and add them to the current scope.
- see http://dev.helma.org/ng/Modules+and+Scopes/ for more info.
+ These functions load Javascript modules and make them available to the
+ current scope in different ways. See
+ http://dev.helma.org/ng/Modules+and+Scopes/ for more info.
Helma first tries to resolve the path relative to the location of the
module calling this method. If that fails, it looks for the resource
@@ -102,9 +103,9 @@
java -Dhelma.modulepath=myapp,mylibs -jar run.jar
-importJar(jarfile)
+addToClasspath(jarfile)
- This function adds a jar (Java archive) to the classpath. by default,
+ This function adds a jar file or directory to the classpath. by default,
all jar files in the lib directory are included in the classpath. You
can add also other jar files by starting helma with
@@ -129,4 +130,4 @@
ant jar
If this succeeds you should be able to start the helma shell and runtime
-as described above.
\ No newline at end of file
+as described above.