Commit 5dd69bbc authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

#712 Added task preparing jre for bundling with app.

parent dd2c5d64
......@@ -30,6 +30,7 @@ buildscript {
classpath 'com.github.JakeWharton:sdk-manager-plugin:220bf7a88a7072df3ed16dc8466fb144f2817070'
classpath 'com.novoda:gradle-android-command-plugin:1.3.0'
classpath 'com.badlogicgames.gdx:gdx-tools:1.6.1'
classpath 'edu.sc.seis.gradle:launch4j:2.3.0'
}
}
......
......@@ -18,6 +18,7 @@ import groovy.io.FileType
*/
apply plugin: "java"
apply plugin: 'edu.sc.seis.launch4j'
sourceCompatibility = 1.8
sourceSets {
......@@ -143,6 +144,23 @@ def runItest(String iTestName) {
println "[iTest] TEST: " + iTestName + " FINISHED"
}
task prepareJRE(type: Copy) {
from System.properties.'java.home'
into 'build/jre'
}
launch4j {
mainClassName = 'cz.nic.tablexia.desktop.DesktopLauncher'
icon = '../../assets/icons/desktop_icon_128.png.ico'
jar = '../libs/' + tablexiaAppName + '-release-' + tablexiaVersionName + '.jar'
bundledJrePath = '../jre'
jvmOptions = [ 'DgvSIG.confDir = ../cfg' ]
}
task createReleaseApp(dependsOn: [releaseJar, prepareJRE], type: edu.sc.seis.launch4j.tasks.Launch4jLibraryTask) {
outfile = tablexiaAppName + '.exe'
}
debugJar.dependsOn classes
debugJar.dependsOn(':util:checksum:runChecksum')
releaseJar.dependsOn classes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment