Author: olamy
Date: Tue Nov  1 17:44:54 2011
New Revision: 1196161

URL: http://svn.apache.org/viewvc?rev=1196161&view=rev
Log:
add documentation for ScriptRunner.

Modified:
    maven/shared/trunk/maven-script-interpreter/src/site/apt/index.apt.vm

Modified: maven/shared/trunk/maven-script-interpreter/src/site/apt/index.apt.vm
URL: 
http://svn.apache.org/viewvc/maven/shared/trunk/maven-script-interpreter/src/site/apt/index.apt.vm?rev=1196161&r1=1196160&r2=1196161&view=diff
==============================================================================
--- maven/shared/trunk/maven-script-interpreter/src/site/apt/index.apt.vm 
(original)
+++ maven/shared/trunk/maven-script-interpreter/src/site/apt/index.apt.vm Tue 
Nov  1 17:44:54 2011
@@ -66,4 +66,16 @@ Overview
 
 * Using ScriptRunner
 
+  ScriptRunner class will detect the script file to run based on supported 
extensions (.bsh,.groovy).
+
+  This class will search in the provided directory the script with the 
provided fileName and the supported extensions.
+
++---------
+    SystemStreamLog systemStreamLog = new SystemStreamLog();
+
+    ScriptRunner scriptRunner = new ScriptRunner( systemStreamLog );
+    scriptRunner.run( "test", new File( "src/test/resources/bsh-test" ), 
"verify", buildContext(),
+                      new FileLogger( logFile ), "foo", true );
++---------
+
 


Reply via email to