Created
November 14, 2013 21:06
-
-
Save Tom-Ski/7474305 to your computer and use it in GitHub Desktop.
Gradle task to call some Exec :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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