Skip to: Site menu | Main content

Groovy 

      Download | Documentation | Developers | Community

An agile dynamic language for the Java Platform

InstallTextMateGroovyBundle Add comment to Wiki View in Wiki Edit Wiki page Printable Version

#!/usr/bin/env groovy

/**
 * Download and setup TextMate Bundle for groovy. Assume you have svn and groovy already installed.
 * @author Zemian Deng 
 * @since Thu Nov 15 15:02:11 EST 2007
 */

path = System.properties['user.home']+"/Library/Application Support/TextMate/Bundles"
dir = new File(path)
if(!dir.exists()){
	println "Creating path ${path}"
	dir.mkdirs()
}

println "Checking out groovy bundle..."
proc = "svn co http://macromates.com/svn/Bundles/trunk/Bundles/Groovy.tmbundle".execute(
	["LC_CTYPE=en_US.UTF-8"],
	dir
)
proc.waitFor()
println proc.text

println "Verifying groovy bundle..."
dir.list().each{f-> println f}