Created
April 12, 2013 07:06
-
-
Save andresteingress/5370086 to your computer and use it in GitHub Desktop.
Groovy Common Extensions not found in groovyConsole and scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Grapes(Grab(group='com.bloidonia', module='groovy-common-extensions', version='0.4.1')) | |
| def f = new File('test.zip') | |
| f.unzip(new File('test')) |
Author
Oddly, this seems to work:
@Grab( 'com.bloidonia:groovy-common-extensions:0.4.1')
import java.io.File
def f = new File('test.zip')
f.unzip(new File('test'))and
@Grab( 'com.bloidonia:groovy-common-extensions:0.4.1')
def f = new File('test.zip')
f.unzip(new File('test'))works as well
Author
Ahhhhhhhh!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
12.04.2013 09:05:25 org.codehaus.groovy.runtime.StackTraceUtils sanitize
WARNUNG: Sanitizing stacktrace:
groovy.lang.MissingMethodException: No signature of method: java.io.File.unzip() is applicable for argument types: (java.io.File) values: [test]
Possible solutions: size(), wait(), mkdir(), dump(), grep(), any()
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at ConsoleScript2.run(ConsoleScript2:3)