mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 13:38:23 +02:00
Merge remote-tracking branch 'remotes/origin/fxlauncher'
This commit is contained in:
@@ -14,7 +14,8 @@ even in a "normal" CSV editor. So I decided to write this simple JavaFX applicat
|
|||||||
|
|
||||||
[Wiki & Documentation](https://github.com/frosch95/SmartCSV.fx/wiki)
|
[Wiki & Documentation](https://github.com/frosch95/SmartCSV.fx/wiki)
|
||||||
|
|
||||||
binary distribution of the [latest release (0.8)](https://github.com/frosch95/SmartCSV.fx/releases/download/0.8/SmartCSV.fx-0.8-SNAPSHOT.zip)
|
binary distribution of the [SmartCSV.fx launcher](http://www.javafx.ninja/SmartCSV.fx/SmartCSV.fx.jar)
|
||||||
|
copy the jar to an appropriate place and start the application with a double click on the jar (or java -jar SmartCSV.fx.jar on command line)
|
||||||
|
|
||||||
##Talks
|
##Talks
|
||||||
[Introduction](http://javafx.ninja/talks/introduction/)
|
[Introduction](http://javafx.ninja/talks/introduction/)
|
||||||
|
|||||||
40
build.gradle
40
build.gradle
@@ -1,14 +1,34 @@
|
|||||||
group 'ninja.javafx'
|
group 'ninja.javafx'
|
||||||
version '0.8-SNAPSHOT'
|
version '0.9-SNAPSHOT'
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath 'no.tornado:fxlauncher-gradle-plugin:1.0.12'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'groovy'
|
apply plugin: 'groovy'
|
||||||
apply plugin: 'application'
|
apply plugin: 'application'
|
||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
|
apply plugin: 'no.tornado.fxlauncher'
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
mainClassName = 'ninja.javafx.smartcsv.fx.SmartCSV'
|
mainClassName = 'ninja.javafx.smartcsv.fx.SmartCSV'
|
||||||
|
|
||||||
|
def fxlauncherPathName = getBuildDir().absolutePath + File.separatorChar + 'fxlauncher' + File.separatorChar
|
||||||
|
|
||||||
|
fxlauncher {
|
||||||
|
applicationVendor 'Andreas Billmann (andreas.billmann@javafx.ninja)'
|
||||||
|
applicationUrl 'http://javafx.ninja/SmartCSV.fx/'
|
||||||
|
applicationMainClass mainClassName
|
||||||
|
acceptDowngrade false
|
||||||
|
cacheDir 'USERLIB/SmartCSV.fx'
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
jcenter()
|
jcenter()
|
||||||
@@ -33,5 +53,21 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task wrapper(type: Wrapper) {
|
task wrapper(type: Wrapper) {
|
||||||
gradleVersion = '2.14.1' //version required
|
gradleVersion = '3.1' //version required
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task buildSmartCSV(dependsOn: ['clean','embedApplicationManifest']) << {
|
||||||
|
def file = new File(fxlauncherPathName + 'fxlauncher.jar')
|
||||||
|
file.renameTo(fxlauncherPathName + 'SmartCSV.fx.jar')
|
||||||
|
}
|
||||||
|
|
||||||
|
task modifyAppXML(dependsOn: 'generateApplicationManifest') << {
|
||||||
|
String contents = new File( fxlauncherPathName + 'app.xml' ).getText( 'UTF-8' )
|
||||||
|
contents = contents.replaceAll( 'Updating...', 'Updating SmartCSV.fx ...' )
|
||||||
|
contents = contents.replaceAll( '-fx-spacing: 10; -fx-padding: 25;', '-fx-spacing: 10; -fx-padding: 25;-fx-font-size: 0.9em;' )
|
||||||
|
new File( fxlauncherPathName + 'app.xml' ).write( contents, 'UTF-8' )
|
||||||
|
}
|
||||||
|
|
||||||
|
embedApplicationManifest.dependsOn modifyAppXML
|
||||||
|
|
||||||
|
defaultTasks 'buildSmartCSV'
|
||||||
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,6 @@
|
|||||||
#Sat Jul 23 09:35:51 CEST 2016
|
#Thu Oct 06 15:00:38 CEST 2016
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
application.name = SmartCSV.fx
|
application.name = SmartCSV.fx
|
||||||
application.version = 0.8
|
application.version = 0.9
|
||||||
|
|
||||||
# fxml views
|
# fxml views
|
||||||
fxml.smartcvs.view = /ninja/javafx/smartcsv/fx/smartcsv.fxml
|
fxml.smartcvs.view = /ninja/javafx/smartcsv/fx/smartcsv.fxml
|
||||||
|
|||||||
Reference in New Issue
Block a user