diff options
Diffstat (limited to 'desktop/build.gradle')
-rw-r--r-- | desktop/build.gradle | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/desktop/build.gradle b/desktop/build.gradle index 9e8f006..d2b722e 100644 --- a/desktop/build.gradle +++ b/desktop/build.gradle @@ -6,7 +6,7 @@ sourceCompatibility = 1.8 sourceSets.main.java.srcDirs = [ "src/" ] project.ext.mainClassName = "ch.asynk.zproject.desktop.DesktopLauncher" -project.ext.assetsDir = new File("../android/assets"); +project.ext.assetsDir = new File("build/assets"); task run(dependsOn: classes, type: JavaExec) { main = project.mainClassName @@ -40,21 +40,3 @@ task dist(type: Jar) { } dist.dependsOn classes - -eclipse { - project { - name = appName + "-desktop" - linkedResource name: 'assets', type: '2', location: 'PARENT-1-PROJECT_LOC/android/assets' - } -} - -task afterEclipseImport(description: "Post processing after project generation", group: "IDE") { - doLast { - def classpath = new XmlParser().parse(file(".classpath")) - new Node(classpath, "classpathentry", [ kind: 'src', path: 'assets' ]); - def writer = new FileWriter(file(".classpath")) - def printer = new XmlNodePrinter(new PrintWriter(writer)) - printer.setPreserveWhitespace(true) - printer.print(classpath) - } -} |