Permalink
Browse files

Upgraded to griffon 0.9

  • Loading branch information...
aalmiray committed Jul 27, 2010
1 parent 6d5aa59 commit c663a950679c02cbb35d766ca5303f7cefebf842
View
@@ -1,11 +1,11 @@
-#utf-8
-#Fri Oct 09 11:16:19 PDT 2009
-plugins.swingx-builder=0.1
-plugins.trident-builder=0.1
-app.version=0.1
-plugins.gfx-builder=0.2.1
-plugins.jide-builder=0.2
-plugins.css-builder=0.2
-app.griffon.version=0.2-BETA
+#Griffon Metadata file
+#Tue Jul 27 11:09:07 CEST 2010
+app.griffon.version=0.9
app.name=griffon-talk
-plugins.transitions=0.1.2
+app.version=0.2
+plugins.css-builder=0.6
+plugins.gfx-builder=0.4
+plugins.jide-builder=0.4
+plugins.swingx-builder=0.2
+plugins.transitions=0.3
+plugins.trident-builder=0.4
@@ -1,26 +1,17 @@
application {
- title = 'Ebay'
- startupGroups = ['init']
-
- // Should Griffon exit when no Griffon created frames are showing?
- autoShutdown = true
-
- // If you want some non-standard application class, apply it here
- //frameClass = 'javax.swing.JFrame'
+ title="Ebay"
+ startupGroups=["init"]
+ autoShutdown=true
}
mvcGroups {
- // MVC Group for "Init"
- 'init' {
- model = 'InitModel'
- controller = 'InitController'
- view = 'InitView'
- }
-
- // MVC Group for "deck"
- 'deck' {
- model = 'DeckModel'
- controller = 'DeckController'
- view = 'DeckView'
- }
-
+ init {
+ model="InitModel"
+ controller="InitController"
+ view="InitView"
+ }
+ deck {
+ model="DeckModel"
+ controller="DeckController"
+ view="DeckView"
+ }
}
@@ -0,0 +1,127 @@
+// log4j configuration
+log4j {
+ appender.stdout = 'org.apache.log4j.ConsoleAppender'
+ appender.'stdout.layout'='org.apache.log4j.PatternLayout'
+ appender.'stdout.layout.ConversionPattern'='[%r] %c{2} %m%n'
+ appender.errors = 'org.apache.log4j.FileAppender'
+ appender.'errors.layout'='org.apache.log4j.PatternLayout'
+ appender.'errors.layout.ConversionPattern'='[%r] %c{2} %m%n'
+ appender.'errors.File'='stacktrace.log'
+ rootLogger='error,stdout'
+ logger {
+ griffon='error'
+ StackTrace='error,errors'
+ org {
+ codehaus.griffon.commons='info' // core / classloading
+ }
+ }
+ additivity.StackTrace=false
+}
+
+// key signing information
+environments {
+ development {
+ signingkey {
+ params {
+ sigfile = 'GRIFFON'
+ keystore = "${basedir}/griffon-app/conf/keys/devKeystore"
+ alias = 'development'
+ storepass = 'BadStorePassword'
+ keypass = 'BadKeyPassword'
+ lazy = true // only sign when unsigned
+ }
+ }
+
+ }
+ test {
+ griffon {
+ jars {
+ sign = false
+ pack = false
+ }
+ }
+ }
+ production {
+ signingkey {
+ params {
+ sigfile = 'GRIFFON'
+ keystore = 'CHANGE ME'
+ alias = 'CHAMGE ME'
+ // NOTE: for production keys it is more secure to rely on key prompting
+ // no value means we will prompt //storepass = 'BadStorePassword'
+ // no value means we will prompt //keypass = 'BadKeyPassword'
+ lazy = false // sign, regardless of existing signatures
+ }
+ }
+
+ griffon {
+ jars {
+ sign = true
+ pack = true
+ destDir = "${basedir}/staging"
+ }
+ webstart {
+ codebase = 'CHANGE ME'
+ }
+ }
+ }
+}
+
+griffon {
+ memory {
+ //max = '64m'
+ //min = '2m'
+ //maxPermSize = '64m'
+ }
+ jars {
+ sign = false
+ pack = false
+ destDir = "${basedir}/staging"
+ jarName = "${appName}.jar"
+ }
+ extensions {
+ jarUrls = []
+ jnlpUrls = []
+ }
+ webstart {
+ codebase = "${new File(griffon.jars.destDir).toURI().toASCIIString()}"
+ jnlp = 'application.jnlp'
+ }
+ applet {
+ jnlp = 'applet.jnlp'
+ html = 'applet.html'
+ }
+}
+griffon.project.dependency.resolution = {
+ // inherit Griffon' default dependencies
+ inherits("global") {
+ }
+ log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
+ repositories {
+ griffonPlugins()
+ griffonHome()
+ griffonCentral()
+
+ // uncomment the below to enable remote dependency resolution
+ // from public Maven repositories
+ //mavenLocal()
+ //mavenCentral()
+ //mavenRepo "http://snapshots.repository.codehaus.org"
+ //mavenRepo "http://repository.codehaus.org"
+ //mavenRepo "http://download.java.net/maven/2/"
+ //mavenRepo "http://repository.jboss.com/maven2/"
+ }
+ dependencies {
+ // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
+
+ // runtime 'mysql:mysql-connector-java:5.1.5'
+ }
+}
+
+griffon {
+ doc {
+ logo = '<a href="http://griffon.codehaus.org" target="_blank"><img alt="The Griffon Framework" src="../img/griffon.png" border="0"/></a>'
+ sponsorLogo = "<br/>"
+ footer = "<br/><br/>Made with Griffon (0.9)"
+ }
+}
@@ -12,12 +12,12 @@ root.'griffon.builder.trident.TridentBuilder'.view = '*'
jx {
'groovy.swing.SwingXBuilder' {
view = '*'
+ controller = ['withWorker']
}
}
root.'griffon.builder.jide.JideBuilder'.view = '*'
-
root.'griffon.builder.gfx.GfxBuilder'.view = '*'
-
root.'griffon.builder.css.CSSBuilder'.view = '*'
root.'griffon.builder.css.CSSBuilder'.controller = ['CSS']
+root.'TransitionsGriffonAddon'.addon=true
@@ -17,78 +17,3 @@ log4j {
}
additivity.StackTrace=false
}
-
-// key signing information
-environments {
- development {
- signingkey {
- params {
- sigfile = 'GRIFFON'
- keystore = "${basedir}/griffon-app/conf/keys/devKeystore"
- alias = 'development'
- storepass = 'BadStorePassword'
- keypass = 'BadKeyPassword'
- lazy = true // only sign when unsigned
- }
- }
-
- }
- test {
- griffon {
- jars {
- sign = false
- pack = false
- }
- }
- }
- production {
- signingkey {
- params {
- sigfile = 'GRIFFON'
- keystore = 'CHANGE ME'
- alias = 'CHAMGE ME'
- // NOTE: for production keys it is more secure to rely on key prompting
- // no value means we will prompt //storepass = 'BadStorePassword'
- // no value means we will prompt //keypass = 'BadKeyPassword'
- lazy = false // sign, regardless of existing signatures
- }
- }
-
- griffon {
- jars {
- sign = true
- pack = true
- destDir = "${basedir}/staging"
- }
- webstart {
- codebase = 'CHANGE ME'
- }
- }
- }
-}
-
-griffon {
- memory {
- //max = '64m'
- //min = '2m'
- //maxPermSize = '64m'
- }
- jars {
- sign = false
- pack = false
- destDir = "${basedir}/staging"
- jarName = "${appName}.jar"
- }
- extensions {
- jarUrls = []
- jnlpUrls = []
- }
- webstart {
- codebase = "${new File(griffon.jars.destDir).toURI().toASCIIString()}"
- jnlp = 'application.jnlp'
- }
- applet {
- jnlp = 'applet.jnlp'
- html = 'applet.html'
- }
-}
@@ -1,9 +1,9 @@
class DeckController {
def close = { evt = null ->
- app.appFrames.last().dispose()
+ app.windowManager.windows.last().dispose()
destroyMVCGroup("deck")
- app.appFrames.pop()
- app.appFrames.first().visible = true
+ app.windowManager.windows.pop()
+ app.windowManager.windows.first().visible = true
}
def runScript = { script ->
@@ -13,4 +13,4 @@ class DeckController {
} catch(x) {x.printStackTrace()}
}
}
-}
+}
@@ -7,12 +7,12 @@ class InitController {
def play = { evt = null ->
createMVCGroup("deck", "deck",[:])
- app.appFrames[0].visible = false
+ app.windowManager.windows[0].visible = false
def graphicsEnvironment = GraphicsEnvironment.localGraphicsEnvironment
def device = graphicsEnvironment.screenDevices.find{it.fullScreenSupported}
- device?.setFullScreenWindow(app.appFrames[1])
- CSSDecorator.decorate("style", app.appFrames[1])
- app.appFrames[1].visible = true
+ device?.setFullScreenWindow(app.windowManager.windows[1])
+ CSSDecorator.decorate("style", app.windowManager.windows[1])
+ app.windowManager.windows[1].visible = true
}
def help = { evt = null ->
@@ -34,8 +34,8 @@ class InitController {
return
}
if(pack) dialog.pack()
- int x = app.appFrames[0].x + (app.appFrames[0].width - dialog.width) / 2
- int y = app.appFrames[0].y + (app.appFrames[0].height - dialog.height) / 2
+ int x = app.windowManager.windows[0].x + (app.windowManager.windows[0].width - dialog.width) / 2
+ int y = app.windowManager.windows[0].y + (app.windowManager.windows[0].height - dialog.height) / 2
dialog.setLocation(x, y)
dialog.show()
}
View
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module relativePaths="true" type="GRIFFON_MODULE" version="4">
- <component name="FacetManager">
- <facet type="Griffon" name="Griffon">
- <configuration />
- </facet>
- <!--
- <facet type="Spring" name="Spring">
- <configuration>
- <fileset id="Griffon" name="Griffon" removed="false">
- <file>file://$MODULE_DIR$/web-app/WEB-INF/applicationContext.xml</file>
- </fileset>
- </configuration>
- </facet>
- -->
- </component>
- <component name="NewModuleRootManager" inherit-compiler-output="true">
- <exclude-output />
- <content url="file://$MODULE_DIR$">
- <sourceFolder url="file://$MODULE_DIR$/griffon-app/conf" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/griffon-app/models" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/griffon-app/views" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/griffon-app/controllers" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/griffon-app/lifecycle" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src/main" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/test/integration" isTestSource="true" />
- <sourceFolder url="file://$MODULE_DIR$/test/unit" isTestSource="true" />
- </content>
- <orderEntry type="inheritedJdk" />
- <orderEntry type="sourceFolder" forTests="false" />
- <orderEntry type="library" name="Griffon @griffon.version@" level="project" />
- <orderEntry type="module-library">
- <library name="Griffon User Library">
- <CLASSES>
- <root url="file://$MODULE_DIR$/lib" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- <jarDirectory url="file://$MODULE_DIR$/lib" recursive="false" />
- </library>
- </orderEntry>
- </component>
-</module>
Oops, something went wrong.

0 comments on commit c663a95

Please sign in to comment.