Skip to content
Browse files

Updates for Griffon 0.9.5

  • Loading branch information...
1 parent 18db4d3 commit 2fa0e0a23cdaa2b9758402da3e947f23a464b47b @aalmiray aalmiray committed Mar 5, 2012
View
1 .gitignore
@@ -0,0 +1 @@
+target
View
10 LookandfeelA03GriffonAddon.groovy → LookandfeelA03GriffonAddon.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2010 the original author or authors.
+ * Copyright 2010-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,8 +14,14 @@
* limitations under the License.
*/
+import griffon.util.ApplicationHolder;
+import org.codehaus.griffon.runtime.core.AbstractGriffonAddon;
+
/**
* @author Andres Almiray
*/
-class LookandfeelA03GriffonAddon {
+public class LookandfeelA03GriffonAddon extends AbstractGriffonAddon {
+ public LookandfeelA03GriffonAddon() {
+ super(ApplicationHolder.getApplication());
+ }
}
View
59 LookandfeelA03GriffonPlugin.groovy
@@ -18,20 +18,51 @@
* @author Andres Almiray
*/
class LookandfeelA03GriffonPlugin {
- def version = 0.3
- def griffonVersion = '0.9.2 > *'
- def dependsOn = [lookandfeel: 0.5]
- def toolkits = ['swing']
- def license = 'Apache Software License 2.0'
+ // the plugin version
+ String version = '0.4'
+ // the version or versions of Griffon the plugin is designed for
+ String griffonVersion = '0.9.5 > *'
+ // the other plugins this plugin depends on
+ Map dependsOn = [lookandfeel: '0.6']
+ // resources that are included in plugin packaging
+ List pluginIncludes = []
+ // the plugin license
+ String license = 'Apache Software License 2.0'
+ // Toolkit compatibility. No value means compatible with all
+ // Valid values are: swing, javafx, swt, pivot, gtk
+ List toolkits = ['swing']
+ // Platform compatibility. No value means compatible with all
+ // Valid values are:
+ // linux, linux64, windows, windows64, macosx, macosx64, solaris
+ List platforms = []
+ // URL where documentation can be found
+ String documentation = ''
+ // URL where source can be found
+ String source = 'https://github.com/griffon/griffon-lookandfeel-a03-plugin'
- def author = 'Andres Almiray'
- def authorEmail = 'aalmiray@users.sourceforge.net'
- def title = 'A03 Swing Look & Feel'
- def description = '''
-A03 Swing Look & Feel.
-'''
+ List authors = [
+ [
+ name: 'Andres Almiray',
+ email: 'aalmiray@yahoo.com'
+ ]
+ ]
+ String title = 'Swing Look & Feel selector'
+ String description = '''
+Pluggable lookandfeel based on [A03][1].
+
+Usage
+-----
+
+Refer to the [lookandfeel][2] plugin to find out how setup `lookAndFeel` and `theme` properties in the configuration.
- // URL to the plugin's documentation
- def documentation = 'http://griffon.codehaus.org/Lookandfeel+A03+Plugin'
-}
+LookAndFeel and Themes
+----------------------
+| *LookAndFeel* | *Theme* |
+| ------------- | --------|
+| A03 | A03 |
+
+[1]: http://www.davideraccagni.com/index.php?q=node/20
+[2]: /plugin/lookandfeel
+'''
+}
View
9 application.properties
@@ -1,6 +1,7 @@
#Griffon Metadata file
-#Tue Feb 22 21:17:01 CET 2011
-app.griffon.version=0.9.3-beta-2
+#Mon Mar 05 19:10:24 CET 2012
+app.griffon.version=0.9.5-rc2
app.name=lookandfeel-a03
-plugins.lookandfeel=0.5
-plugins.miglayout=0.2
+plugins.lookandfeel=0.6
+plugins.miglayout=0.4
+plugins.swing=0.9.5
View
21 griffon-app/conf/BuildConfig.groovy
@@ -2,13 +2,12 @@ griffon.project.dependency.resolution = {
inherits("global")
log "warn"
repositories {
- griffonPlugins()
griffonHome()
- griffonCentral()
- flatDir name: 'lookandfeelA03PluginLib', dirs: 'lib'
+ String basePath = pluginDirPath? "${pluginDirPath}/" : ''
+ flatDir name: "lookAndFeelA03LibDir", dirs: ["${basePath}lib"]
}
dependencies {
- runtime ':a03:1.0'
+ runtime 'a03:a03:1.0'
}
}
@@ -20,4 +19,16 @@ griffon {
}
}
-griffon.jars.destDir='target/addon'
+log4j = {
+ // Example of changing the log pattern for the default console
+ // appender:
+ appenders {
+ console name: 'stdout', layout: pattern(conversionPattern: '%d [%t] %-5p %c - %m%n')
+ }
+
+ error 'org.codehaus.griffon',
+ 'org.springframework',
+ 'org.apache.karaf',
+ 'groovyx.net'
+ warn 'griffon'
+}
View
BIN griffon-lookandfeel-a03-0.3.zip
Binary file not shown.
View
15 plugin.xml
@@ -1,15 +0,0 @@
-<plugin name='lookandfeel-a03' version='0.3' griffonVersion='0.9.2 &gt; *' jdk='1.5'>
- <author>Andres Almiray</author>
- <authorEmail>aalmiray@users.sourceforge.net</authorEmail>
- <title>A03 Swing Look &amp; Feel</title>
- <description>A03 Swing Look &amp; Feel.</description>
- <documentation>http://griffon.codehaus.org/Lookandfeel+A03+Plugin</documentation>
- <license>Apache Software License 2.0</license>
- <toolkits>swing</toolkits>
- <resources>
- <resource>BuildConfig</resource>
- </resources>
- <dependencies>
- <plugin name='lookandfeel' version='0.5' />
- </dependencies>
-</plugin>
View
32 scripts/_Events.groovy
@@ -1,32 +0,0 @@
-/*
- * Copyright 2010 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @author Andres Almiray
- */
-
-def eventClosure1 = binding.variables.containsKey('eventSetClasspath') ? eventSetClasspath : {cl->}
-eventSetClasspath = { cl ->
- eventClosure1(cl)
- if(compilingPlugin('lookandfeel-a03')) return
- griffonSettings.dependencyManager.flatDirResolver name: 'griffon-lookandfeelA03-plugin', dirs: "${lookandfeelA03PluginDir}/addon"
- griffonSettings.dependencyManager.addPluginDependency('lookandfeelA03', [
- conf: 'compile',
- name: 'griffon-lookandfeel-a03-addon',
- group: 'org.codehaus.griffon.plugins',
- version: lookandfeelA03PluginVersion
- ])
-}
View
36 scripts/_Install.groovy
@@ -1,36 +0,0 @@
-/*
- * Copyright 2010 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @author Andres Almiray
- */
-
-// check to see if we already have a LookandfeelA03GriffonAddon
-ConfigSlurper configSlurper1 = new ConfigSlurper()
-def slurpedBuilder1 = configSlurper1.parse(new File("$basedir/griffon-app/conf/Builder.groovy").toURL())
-boolean addonIsSet1
-slurpedBuilder1.each() { prefix, v ->
- v.each { builder, views ->
- addonIsSet1 = addonIsSet1 || 'LookandfeelA03GriffonAddon' == builder
- }
-}
-
-if (!addonIsSet1) {
- println 'Adding LookandfeelA03GriffonAddon to Builder.groovy'
- new File("$basedir/griffon-app/conf/Builder.groovy").append('''
-root.'LookandfeelA03GriffonAddon'.addon=true
-''')
-}
View
35 scripts/_Uninstall.groovy
@@ -1,35 +0,0 @@
-/*
- * Copyright 2010 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @author Andres Almiray
- */
-
-// check to see if we already have a LookandfeelA03GriffonAddon
-ConfigSlurper configSlurper1 = new ConfigSlurper()
-def slurpedBuilder1 = configSlurper1.parse(new File("$basedir/griffon-app/conf/Builder.groovy").toURL())
-boolean addonIsSet1
-slurpedBuilder1.each() { prefix, v ->
- v.each { builder, views ->
- addonIsSet1 = addonIsSet1 || 'LookandfeelA03GriffonAddon' == builder
- }
-}
-
-if (addonIsSet1) {
- println 'Removing LookandfeelA03GriffonAddon from Builder.groovy'
- def builderConfigFile1 = new File("${basedir}/griffon-app/conf/Builder.groovy")
- builderConfigFile1.text = builderConfigFile1.text - "root.'LookandfeelA03GriffonAddon'.addon=true\n"
-}
View
10 scripts/_Upgrade.groovy
@@ -1,10 +0,0 @@
-//
-// This script is executed by Griffon during application upgrade ('griffon upgrade'
-// command). This script is a Gant script so you can use all special variables
-// provided by Gant (such as 'baseDir' which points on project base dir). You can
-// use 'ant' to access a global instance of AntBuilder
-//
-// For example you can create directory under project tree:
-//
-// ant.mkdir(dir:"${basedir}/griffon-app/jobs")
-//
View
2 src/main/griffon/lookandfeel/a03/A03LookAndFeelProvider.groovy
@@ -1,5 +1,5 @@
/*
- * Copyright 2010 the original author or authors.
+ * Copyright 2010-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
2 test/unit/griffon/lookandfeel/a03/A03LookAndFeelTests.groovy
@@ -1,5 +1,5 @@
/*
- * Copyright 2010 the original author or authors.
+ * Copyright 2010-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

0 comments on commit 2fa0e0a

Please sign in to comment.
Something went wrong with that request. Please try again.