forked from JFXtras/jfxtras-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c5ee4de
Showing
7 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.gradle | ||
build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
JFXtras-labs | ||
============ | ||
_A project for experimenting with new controls and other useful JavaFX extensions_ | ||
|
||
Building with Gradle | ||
-------------------- | ||
* Set your environment variable JAVAFX_HOME to the directory that contains rt/lib/jfxrt.jar. | ||
* cd jfxtras-labs | ||
* gradlew build | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apply plugin: 'java' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
/*************************************** | ||
* Set Maven coordinates and build vars | ||
***************************************/ | ||
group = 'org.jfxlabs' | ||
archivesBaseName = "jfxlabs" | ||
version = '0.1-SNAPSHOT' | ||
|
||
isRelease = !version.endsWith('SNAPSHOT') | ||
requiredJavaFxVersion = '2.1.0' | ||
|
||
/*************************************** | ||
* Check environment | ||
***************************************/ | ||
javafxHome = System.env['JAVAFX_HOME'] | ||
if(!javafxHome) { | ||
println """Please set environment variable JAVAFX_HOME | ||
to the directory that contains /rt/lib/jfxrt.jar | ||
for JavaFX version $requiredJavaFxVersion""" | ||
System.exit 1 | ||
} | ||
|
||
buildscript { | ||
dependencies { | ||
classpath files("${System.env['JAVAFX_HOME']}/rt/lib/jfxrt.jar") | ||
} | ||
} | ||
|
||
actualJavaFXVersion = com.sun.javafx.runtime.VersionInfo.runtimeVersion | ||
if (!actualJavaFXVersion.startsWith(requiredJavaFxVersion)) { | ||
println "Required JavaFX version is '$requiredJavaFxVersion' but actual version is '$actualJavaFXVersion'" | ||
System.exit(1) | ||
} | ||
// environment is ok | ||
|
||
/*************************************** | ||
* The build script proper | ||
***************************************/ | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile files("${javafxHome}/rt/lib/jfxrt.jar") | ||
testCompile 'junit:junit:4.10' | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Johann, please put datafx stuff here! :-) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Tom, your datepicker goes here! :-) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Gerrit, gauges go here! :-) |
18 changes: 18 additions & 0 deletions
18
src/test/java/jfxtras/labs/scene/control/HelloWorldTest.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package jfxtras.labs.scene.control; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
public class HelloWorldTest { | ||
|
||
@Before | ||
public void setUp() throws Exception { | ||
} | ||
|
||
@Test | ||
public void testHelloEmpty() { | ||
assertTrue("Tests compile!", true); | ||
} | ||
} |