- 1 Overview
- 2 Fixes
- 2.1 Buildtime
- 2.1.1 File Paths on Windows
- 2.1.2 Resolve Application Name
- 2.1.3 Griffonsh did not honor --env option
- 2.1.4 Service instantiation error lost
- 2.1.5 Additional Compile Paths
- 2.1.6 Additional Resource Paths
- 3 Sample Applications
- 3.1 File Viewer
- 3.2 GroovyEdit
- 3.3 Font Picker
- 3.4 Greet
- 3.5 SwingPad
- 3.6 GroovyFXPad
- 3.7 FxBrowser
- 3.8 WeatherWidget
- 4 Release Notes
- 4.1 1.0.2
Overview
Griffon 1.0.2 - is the second maintenance release of the 1.0 series. This is mostly bug-fix release, with only 2 small features added.
Fixes
Buildtime
File Paths on Windows
Users reported having issues with applications on Windows platforms whose names either contained a hyphen or one or more paths contained whitespace characters. A couple of bugs were filed and fixed for this matter.
Resolve Application Name
The create-app command did not react properly when an application name was not given as an argument.
Griffonsh did not honor --env option
No matter how you specified the --env option griffonsh would never use it. This was a last minute bug introduced in 1.0.0.
Service instantiation error lost
Griffon would eat any exceptions thrown by services instantiated by the default ServiceManager, making it difficult to find the problem. The exception is now logged as soon as it occurs.
Additional Compile Paths
There may be times where additional sources should be compiled along with application sources, for example when a custom patch is needed when targeting a particular platform or applying a security fix that should not be included in the application's versioned sources.
Additional sources may be defined in BuildConfig.groovy in the following way
You may define literal or File values. Paths are assumed to be relative to the application's root.
Additional Resource Paths
Sometimes you' want additional resources to be included with the application but their inclusion is conditional, for example when packaging a generic applicaiton that contains customization for clients A and B you'd want an application per client that only includes the client's respective logos and brand recognition resources. Another example would be protected resources that should not be included in the application's sources under SCM.
Additional resources may be defined in BuildConfig.groovy in the following way
You may define literal or File values. Paths are assumed to be relative to the application's root.
Sample Applications
Griffon 1.0.2 ships with 8 sample applications of varying levels of complexity demonstrating various parts of the framework. In order of complexity they are:
File Viewer
File Viewer is a simple demonstration of creating new MVCGroups on the fly.
Source: samples/FileViewer
To run the sample from source, change into the source directory and run griffon run-app from the command prompt.
GroovyEdit
GroovyEdit is an improved version of FileViewer that uses custom observable models.
Source: samples/GroovyEdit
To run the sample from source, change into the source directory and run griffon run-app from the command prompt.
Font Picker
Font Picker demonstrates form based data binding to adjust the sample rendering of system fonts.
Source: samples/FontPicker
To run the sample from source, change into the source directory and run griffon run-app from the command prompt.
Greet
Greet, a full featured Griffon Application, is a Twitter client. It shows Joint Java/Groovy compilation, richer MVCGroup interactions, and network service based data delivery.
Source: samples/Greet
To run the sample from source, change into the source directory and run griffon run-webstart from the command prompt. Because Greet uses JNLP APIs for browser integration using run-app will prevent web links from working.
SwingPad
SwingPad, a full featured Griffon Application, is a scripting console for rendering Groovy SwingBuilder views.
Source: samples/SwingPad
To run the sample from source, change into the source directory and run griffon run-app from the command prompt.
GroovyFXPad
GroovyFXPad, a full featured Griffon Application, is a scripting console for rendering GroovyFX views.
Source: samples/GroovyFXPad
To run the sample from source, change into the source directory and run griffon run-app from the command prompt.
FxBrowser
FxBrowser is a trivial JavaFX powered browser that demonstrates Griffon's integration with JavaFX.
Source: samples/FxBrowser
To run the sample from source, change into the source directory and run griffon run-app from the command prompt.
WeatherWidget
WeatherWidget demonstrates binding, threading and plugin usage.
Source: samples/WeatherWidget
To run the sample from source, change into the source directory and run griffon run-app from the command prompt.
Release Notes
1.0.2