Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinetrue

Overview

Griffon 1.0.9.6 0 – "Gryphys magnus" - is a maintenance release of Griffon 0.9.the latest and greatest Griffon release.

New Features

Buildtime

Dependencies

Griffon 1.0.9.6 0 upgrades the following dependencies

  • Spring 3.1.1.RELEASE

New RunScript command

It's now possible to run arbitrary Groovy scripts with either the application classpath fully built or a bootstrapped application, as it happens with the console and shell commands. Simply call run-script with at least one argument: the path to the script. Remaining arguments will be sent directly to the running script.

Additional JVM Flags

There are some JVM flags such as -javaagent that cannot be set via System properties. For such cases Griffon allows setting values for these flags. You can specify flag values either in configuration files (BuildConfig.groovy or settings.groovy) or at the command line prompt.

...

Code Block
languagegroovy
griffon run-app --jvm-opts='-javaagent='/Applications/ZeroTurnaround/JRebel/jrebel.jar'

Unparsed Command Arguments

Griffon will automatically parse and format command line arguments. For those cases where you'd want to perform your' own parsing Griffon now exposes the original arguments as a variable in the running script's biding. The variable name is unparsedArgs and it's of type String[].

Default Repository for Releases

Griffon 0.9.5 introduced artifact repositories and gave you the ability to specify default repositories for searching and local installation. Missing was the option to specify the default repository to where releases would be posted. Now you can define a value for griffon.artifact.repository.default.release either as a System property at the command prompt or in any of the build time configuration files. Here's an example of a plugin being released to a local Griffon repository.

...

When specified at the command prompt it has the same effect as defining a value for --repository, so this flag works better if placed in the build time configuration files, specifically settings.groovy.

Framework Plugins

Perhaps the biggest change for buildtime in this release is the availability of framework plugins. Plugins can now be installed at the distribution level, not just project level. this means for example installing the Git plugin at the framework level enables the usage of Git to all projects. Not all plugins can be installed as framework plugins, particularly those that deliver runtime capabilities.

...

If install-plugin and uninstall-plugin are executed within a Griffon project then the plugin will affect the project only, otherwise it will affect the distribution. You can force a framework plugin install/uninstall if the --framework flag is specified at the command prompt.

Sublime Text2 Integration

Sublime Text2 support is now in place. You can generate a project file suitable for this editor just by typing

Code Block
languagegroovy
griffon integrate-with --sublimetext2

Start Debug Process in Suspend Mode

Prior to this release suspended debug mode was not engaged at all. Now you can configure it at the command prompt.

Code Block
languagegroovy
griffon run-app --debug --debug-suspend=y

Runtime

Config Application Locale

The application's Locale can now be set via configuration. Simply specify a value of type java.util.Locale or java.lang.String for the application.locale key in Application.groovy, like this

...

The string follows the format language[_country[_variant]]

MetaComponent View Node

You can now instantiate a metacomponent via View nodes. MetaComponents were introduced in Griffon 0.9.5. They are MVC groups that can be treated as "components". The metaComponent node automatically embeds the group's View into the current view. For example, a group with name custom defined as

...

Code Block
languagegroovy
panel {
    migLayout()
    button('Click me', constraints: 'left')
    widget(metaComponent('custom', title: 'New Title'), constraints: 'center')
}

Breaking Changes

Runtime

All methods marked as deprecated in previous release has been removed. Pay special attention to the threading methods renamed in 0.9.5.

Sample Applications

Griffon 1.0.9.6 0 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.

...

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.

...

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.

...

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.

...

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.

...

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.

...

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.

...

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.

...

To run the sample from source, change into the source directory and run griffon run-app from the command prompt.

Release Notes

1.0.

...

0

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