Skip to content

Instantly share code, notes, and snippets.

@tlberglund
Created October 12, 2010 20:31
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 tlberglund/622854 to your computer and use it in GitHub Desktop.
Save tlberglund/622854 to your computer and use it in GitHub Desktop.
task('test-script', dependsOn: 'compileGroovy') << {
description = 'Runs a script in the context of the project'
ant.java(classname: 'com.augusttechgroup.somecode.script') {
classpath {
pathelement(path: sourceSets.main.classesDir)
sourceSets.main.runtimeClasspath.each { jarPath ->
pathelement(location: jarPath)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment