Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Table of Contents
outlinetrue

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

Code Block
languagegroovy
griffon.compiler.additional.sources = [
    'path/to/custom.patch.directory',
    'path/to/security.fix.directory'
]

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

Code Block
languagegroovy
griffon.compiler.additional.resources = [
    'path/to/protected/resources'
]

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

JIRA Issues
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=18661&pid=11833&resolution=1&sorter/field=priority&sorter/order=DESC&sorter/field=issuekey&sorter/order=ASC&tempMax=1000