[ 
http://jira.codehaus.org/browse/MGROOVY-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100004
 ] 

bengalister commented on MGROOVY-47:
------------------------------------

According to groovy's documentation, the args variable should hold the command
line arguments (as an array of strings).

There are examples in the following pages:
http://groovy.codehaus.org/Groovy+CLI
http://groovy.codehaus.org/Running

I haven't had a look at the code of your plugin
and don't know if it's related but groovy's ant
task has the same issue when executed via maven.

I also forgot to say that I also declared the following dependency:

    <dependency>
      <groupId>groovy</groupId>
      <artifactId>groovy-all</artifactId>
      <version>1.0</version>
    </dependency>

Luc

> execute goal ignores args implicit variable
> -------------------------------------------
>
>                 Key: MGROOVY-47
>                 URL: http://jira.codehaus.org/browse/MGROOVY-47
>             Project: Maven 2.x Groovy Plugin
>          Issue Type: Bug
>          Components: execute
>         Environment: Version 1.0-alpha-2 (the last one in codehaus repo)
>            Reporter: bengalister
>            Assignee: Jason Dillon
>
> I get the following error when executing the execute goal:
> " No such property: args for class: test"
> To reproduce the issue:
> 1) Create a test.groovy script in src/main/groovy with the following code:
> args.each() {
>    println it
> }
> println args.length
> 2) Run the execute goal:
> mvn groovy:execute
> When executing it directly with groovy or after compiling it with groovyc, 
> it runs without any error.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to