Skip to content

Instantly share code, notes, and snippets.

@tkob
Created May 3, 2015 08:11
Show Gist options
  • Select an option

  • Save tkob/344001f4eed293c03267 to your computer and use it in GitHub Desktop.

Select an option

Save tkob/344001f4eed293c03267 to your computer and use it in GitHub Desktop.
Jasmin task for Gradle
task compileJasmin(type:Exec) {
ext.classesDir = sourceSets.main.output.classesDir
ext.srcDir = "$projectDir/src/main/jasmin"
ext.sourceSet = fileTree(dir: ext.srcDir, include: '**/*.j')
ext.command = [
'jasmin',
'-d', ext.classesDir,
]
ext.command += ext.sourceSet.getFiles()
commandLine ext.command
}
classes.dependsOn compileJasmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment