more documentation

git-svn-id: https://svn.apache.org/repos/asf/maven/shared/trunk@1201891 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/site/apt/index.apt.vm b/src/site/apt/index.apt.vm
index a6b568b..d198071 100644
--- a/src/site/apt/index.apt.vm
+++ b/src/site/apt/index.apt.vm
@@ -80,6 +80,27 @@
                       new FileLogger( logFile ), "foo", true );
 +---------
 
+** Global variables
+
+  Your scripts will have by default two global variables:
+
+  * basedir: the base directory of your script
+
+  * context: the build context (see below)
+
+  []
+
+   You can add more global variables as it.
+
++---------
+
+    SystemStreamLog systemStreamLog = new SystemStreamLog();
+
+    ScriptRunner scriptRunner = new ScriptRunner( systemStreamLog );
+    scriptRunner.setGlobalVariable( name, value );
+
++---------
+
 ** Build context
 
   You can pass some values to your script using a execution context which have the type <<<Map<String, ? extends Object> context>>>.