Skip to content

Instantly share code, notes, and snippets.

@xlson
Created September 5, 2011 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xlson/1194252 to your computer and use it in GitHub Desktop.
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
@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