Skip to content

Instantly share code, notes, and snippets.

@granthenke
Created December 25, 2013 19:09
Show Gist options
  • Save granthenke/8126000 to your computer and use it in GitHub Desktop.
Save granthenke/8126000 to your computer and use it in GitHub Desktop.
Runs code from the project the build script is building.
task runMyCode(dependsOn: 'classes', type: JavaExec) {
main = 'com.my.Code'
classpath = sourceSets.main.runtimeClasspath
args "arg1", "arg2"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment