Skip to content

Instantly share code, notes, and snippets.

@Tom-Ski
Created November 14, 2013 21:06
Show Gist options
  • Save Tom-Ski/7474305 to your computer and use it in GitHub Desktop.
Save Tom-Ski/7474305 to your computer and use it in GitHub Desktop.
Gradle task to call some Exec :)
apply plugin: "java"
apply plugin: "application"
sourceCompatibility = 1.6
mainClassName = "me.tomski.levelediting.LevelEditor"
sourceSets.main.resources.srcDirs = [file("../desktop/assets").getAbsolutePath()]
// idea doesn't like relative paths outside of content root...
tasks.ideaModule.doFirst {
println "huzzs"
sourceSets.main.resources.srcDirs = []
}
task(packEmAll, dependsOn: classes, type: JavaExec) {
main = 'me.tomski.levelediting.AssetPacker'
classpath = sourceSets.main.runtimeClasspath
args 'bananashark'
}
eclipse.project {
name = appName + "-desktop"
}
run {
ignoreExitValue = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment