Created
September 5, 2011 06:40
-
-
Save xlson/1194252 to your computer and use it in GitHub Desktop.
working usage of groovycsv-1.0-SNAPSHOT in groovy console and plain groovy
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
@GrabResolver(name="blah", root="https://oss.sonatype.org/content/groups/public/") | |
@Grab("com.xlson.groovycsv:groovycsv:1.0-SNAPSHOT") | |
import com.xlson.groovycsv.CsvParser | |
def csv = '''apple,12 | |
pear,24''' | |
new CsvParser().parse(readFirstLine:true, columnNames:['fruit', 'qty'], csv).each { println it } | |
println com.xlson.groovycsv.CsvParser.class.protectionDomain.codeSource.location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment