[
http://jira.codehaus.org/browse/MGROOVY-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_115242
]
James Lorenzen commented on MGROOVY-94:
---------------------------------------
Linux
> Embedded Groovy script returns null for variables and expressions
> -----------------------------------------------------------------
>
> Key: MGROOVY-94
> URL: http://jira.codehaus.org/browse/MGROOVY-94
> Project: Maven 2.x Groovy Integration
> Issue Type: Bug
> Components: execute
> Affects Versions: 1.0-beta-3
> Environment: linux java 5
> Reporter: James Lorenzen
> Assignee: Jason Dillon
> Priority: Blocker
> Fix For: 1.0-beta-3
>
>
> When executing an embedded groovy script using 1.0-beta-3-SNAPSHOT
> (specifically 1.0-beta-3-20071025.201525-6) the following script returns
> nulls for variables and expressions
> Groovy Script
> <plugin>
> <groupId>org.codehaus.mojo.groovy</groupId>
> <artifactId>groovy-maven-plugin</artifactId>
> <version>1.0-alpha-3</version>
> <executions>
> <execution>
> <phase>install</phase>
> <goals>
> <goal>execute</goal>
> </goals>
> <configuration>
> <source>
> def copwiki = "CopWiki-helpfiles.zip"
> def src =
> "${project.build.directory}${file.separator}${copwiki}"
> def dest = "${affor.wiki}"
> log.info("Unzipping wiki helpfiles ${src} to ${dest}...")
> ant.unzip(src: src, dest: dest)
> </source>
> </configuration>
> </execution>
> </executions>
> </plugin>
> Output
> [INFO] [groovy:execute {execution: default}]
> [INFO] Unzipping wiki helpfiles null to null...
> Expanding: /workspace/checkout/affor/wiki-webapp/target/null into
> /home/jlorenzen/cop/wiki
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] : java.lang.NoClassDefFoundError: org/apache/tools/zip/ZipFile
> This groovy script works fine using version 1.0-alpha-2, 1.0-beta-1, and
> 1.0-beta-2. The reason we wanted to go to 1.0-beta-3 was a fix for MGROOVY-64.
--
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