groovy:execute

Full name:

org.codehaus.groovy.maven:gmaven-plugin:1.0-rc-5:execute

Description:

Executes a Groovy script.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Since version: 1.0-alpha-1.

Required Parameters

Name Type Since Description
source Source 1.0-alpha-1 The source of the script to execute. This can be a URL, File or script body.

Optional Parameters

Name Type Since Description
classpath ArtifactItem[] 1.0-alpha-1 Additional artifacts to add to the scripts classpath.
defaults Map 1.0-alpha-1 A set of default project properties, which the values will be used only if the project or system does not override.
properties Map 1.0-alpha-1 A set of additional project properties.
providerSelection String 1.0-alpha-1 A comma-seperated list of provider keys, in order of preference of selection. If the invoking JVM is at least Java 1.5, then the Groovy 1.6 runtime will be used, else the Groovy 1.5 runtime is used.
sanitizeErrors boolean 1.0-beta-3 Sanatize errors, stripping out Groovy internals.
Default value is: true.
scriptpath File[] 1.0-alpha-1 Path to search for imported scripts.
trapAssertionErrors boolean 1.0-alpha-1 Trap assertion errors and rethrow them as execution failures.
Default value is: true.

Parameter Details

classpath:

Additional artifacts to add to the scripts classpath.
  • Type: org.codehaus.groovy.maven.common.ArtifactItem[]
  • Since: 1.0-alpha-1
  • Required: No

defaults:

A set of default project properties, which the values will be used only if the project or system does not override.
  • Type: java.util.Map
  • Since: 1.0-alpha-1
  • Required: No

properties:

A set of additional project properties.
  • Type: java.util.Map
  • Since: 1.0-alpha-1
  • Required: No

providerSelection:

A comma-seperated list of provider keys, in order of preference of selection. If the invoking JVM is at least Java 1.5, then the Groovy 1.6 runtime will be used, else the Groovy 1.5 runtime is used.
  • Type: java.lang.String
  • Since: 1.0-alpha-1
  • Required: No
  • Expression: ${gmaven.runtime}

sanitizeErrors:

Sanatize errors, stripping out Groovy internals.
  • Type: boolean
  • Since: 1.0-beta-3
  • Required: No
  • Default: true

scriptpath:

Path to search for imported scripts.
  • Type: java.io.File[]
  • Since: 1.0-alpha-1
  • Required: No

source:

The source of the script to execute. This can be a URL, File or script body.
  • Type: org.codehaus.groovy.maven.plugin.execute.Source
  • Since: 1.0-alpha-1
  • Required: Yes

trapAssertionErrors:

Trap assertion errors and rethrow them as execution failures.
  • Type: boolean
  • Since: 1.0-alpha-1
  • Required: No
  • Default: true