Skip to content

Commit

Permalink
more documentation
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/maven/shared/trunk@1201891 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
olamy committed Nov 14, 2011
1 parent 02e8b06 commit 74ccfe8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/site/apt/index.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,27 @@ Overview
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>>>.
Expand Down

0 comments on commit 74ccfe8

Please sign in to comment.