Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updates for Griffon 0.9.5

  • Loading branch information...
commit 77d20a1a39bce256c6bc79f8870041259a192c35 1 parent 8671e6f
@aalmiray aalmiray authored
View
1  .gitignore
@@ -0,0 +1 @@
+target
View
2  JeuclidGriffonAddon.groovy
@@ -1,5 +1,5 @@
/*
- * Copyright 2011 the original author or authors.
+ * Copyright 2011-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
59 JeuclidGriffonPlugin.groovy
@@ -1,5 +1,5 @@
/*
- * Copyright 2011 the original author or authors.
+ * Copyright 2011-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.
@@ -18,31 +18,54 @@
*/
class JeuclidGriffonPlugin {
// the plugin version
- def version = "0.1"
+ String version = '0.2'
// the version or versions of Griffon the plugin is designed for
- def griffonVersion = '0.9.3 > *'
+ String griffonVersion = '0.9.5 > *'
// the other plugins this plugin depends on
- def dependsOn = [:]
+ Map dependsOn = [swing: '0.9.5']
// resources that are included in plugin packaging
- def pluginIncludes = []
+ List pluginIncludes = []
// the plugin license
- def license = 'Apache Software License 2.0'
+ String license = 'Apache Software License 2.0'
// Toolkit compatibility. No value means compatible with all
// Valid values are: swing, javafx, swt, pivot, gtk
- def toolkits = ['swing']
+ List toolkits = ['swing']
// Platform compatibility. No value means compatible with all
// Valid values are:
// linux, linux64, windows, windows64, macosx, macosx64, solaris
- def platforms = []
-
- def author = 'Andres Almiray'
- def authorEmail = 'aalmiray@users.sourceforge.net'
- def title = 'MathML renderer'
- def description = '''
-MathML renderer
-http://jeuclid.sourceforge.net
-'''
+ List platforms = []
+ // URL where documentation can be found
+ String documentation = ''
+ // URL where source can be found
+ String source = 'https://github.com/griffon/griffon-jeuclid-plugin'
+
+ List authors = [
+ [
+ name: 'Andres Almiray',
+ email: 'aalmiray@yahoo.com'
+ ]
+ ]
+ String title = 'MathML Renderer'
+ String description = '''
+A MathML rendering plugin via [JEuclid][1].
+
+Usage
+-----
+
+The following nodes will become available on a View script upon installing this plugin
+
+| *Node* | *Type* |
+| ----------- | ---------------------------------------------- |
+| mathMLViewer| `net.sourceforge.jeuclid.swing.JMathComponent` |
- // URL to the plugin's documentation
- def documentation = 'http://griffon.codehaus.org/Jeuclid+Plugin'
+
+### Example
+
+A sample application is available at [https://github.com/aalmiray/griffon_sample_apps/tree/master/misc/jeuclid][2].
+It reproduces the 7 examples available from the JEuclid project site.
+
+[1]: http://jeuclid.sourceforge.net/index.html
+[2]: https://github.com/aalmiray/griffon_sample_apps/tree/master/misc/jeuclid
+'''
}
+
View
5 application.properties
@@ -1,4 +1,5 @@
#Griffon Metadata file
-#Wed Aug 17 10:48:49 CEST 2011
-app.griffon.version=0.9.3
+#Mon Apr 02 21:59:42 CEST 2012
+app.griffon.version=0.9.5-rc2
app.name=jeuclid
+plugins.swing=0.9.5
View
16 griffon-app/conf/BuildConfig.groovy
@@ -2,9 +2,7 @@ griffon.project.dependency.resolution = {
inherits "global"
log "warn"
repositories {
- griffonPlugins()
griffonHome()
- griffonCentral()
mavenCentral()
}
dependencies {
@@ -33,4 +31,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-jeuclid-0.1.zip
Binary file not shown
View
14 plugin.xml
@@ -1,14 +0,0 @@
-<plugin name='jeuclid' version='0.1' griffonVersion='0.9.3 &gt; *' jdk='1.5'>
- <author>Andres Almiray</author>
- <authorEmail>aalmiray@users.sourceforge.net</authorEmail>
- <title>MathML renderer</title>
- <description>MathML renderer
-http://jeuclid.sourceforge.net</description>
- <documentation>http://griffon.codehaus.org/Jeuclid+Plugin</documentation>
- <license>Apache Software License 2.0</license>
- <toolkits>swing</toolkits>
- <resources>
- <resource>BuildConfig</resource>
- </resources>
- <dependencies />
-</plugin>
View
31 scripts/_Events.groovy
@@ -1,31 +0,0 @@
-/*
- * Copyright 2011 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 getApplication()licable 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
- */
-
-/**
- * @author Andres Almiray
- */
-
-def eventClosure1 = binding.variables.containsKey('eventSetClasspath') ? eventSetClasspath : {cl->}
-eventSetClasspath = { cl ->
- eventClosure1(cl)
- if(compilingPlugin('jeuclid')) return
- griffonSettings.dependencyManager.flatDirResolver name: 'griffon-jeuclid-plugin', dirs: "${jeuclidPluginDir}/addon"
- griffonSettings.dependencyManager.addPluginDependency('jeuclid', [
- conf: 'compile',
- name: 'griffon-jeuclid-addon',
- group: 'org.codehaus.griffon.plugins',
- version: jeuclidPluginVersion
- ])
-}
View
25 scripts/_Install.groovy
@@ -1,25 +0,0 @@
-/*
- * Copyright 2011 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 getApplication()licable 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
- */
-
-/**
- * @author Andres Almiray
- */
-
-// check to see if we already have a JeuclidGriffonAddon
-configText = '''root.'JeuclidGriffonAddon'.addon=true'''
-if(!(builderConfigFile.text.contains(configText))) {
- println 'Adding JeuclidGriffonAddon to Builder.groovy'
- builderConfigFile.text += '\n' + configText + '\n'
-}
View
25 scripts/_Uninstall.groovy
@@ -1,25 +0,0 @@
-/*
- * Copyright 2011 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 getApplication()licable 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
- */
-
-/**
- * @author Andres Almiray
- */
-
-// check to see if we already have a JeuclidGriffonAddon
-configText = '''root.'JeuclidGriffonAddon'.addon=true'''
-if(!(builderConfigFile.text.contains(configText))) {
- println 'Adding JeuclidGriffonAddon to Builder.groovy'
- builderConfigFile.text += '\n' + configText + '\n'
-}
Please sign in to comment.
Something went wrong with that request. Please try again.