Skip to end of metadata
Go to start of metadata

Description

Provides better tooling integration with Eclipse. At the moment there is a single script that keeps Eclipse's classpath file up to date.

Installation

The current version of griffon-eclipse-support-plugin is 0.4.9
To install just issue the following command

Usage

This plugin provides a single script which is automatically called whenever a plugin is installed or uninstalled. If you add/remove a library from $appHome/lib then you must manually run the script.

Configuration

Make sure to define the following classpath variables in Eclipse

  • USER_HOME pointing to $USER_HOME (your user's home directory)
  • GRIFFON_HOME pointing to $GRIFFON_HOME (the location where Griffon is installed)

otherwise Eclipse will complain that the jars cannot be located.

All source directories available under griffon-app and src will be automatically configured by the plugin. However, should you require additional source directories to be included you can do so by specifying a list of directories relative to the application's location. Add this settings to either BuildConfig.groovy or $GRIFFON_HOME/settings.groovy

Scripts

  • eclipse-update - re-generates the contents of the .classpath file.

History

Version

Date

Notes

0.4.9

12-02-11

Fixes GRIFFON-436

0.4.8

10-21-11

Fixes GRIFFON-424

0.4.7

05-20-11

Fix a regexp problem on Windows platforms

0.4.6

05-20-11

Fix a regexp problem on Windows platforms

0.4.5

05-19-11

Fix a regexp problem on Windows platforms

0.4.4

05-19-11

Fix selection of kind = var | lib

0.4.3

04-15-11

Remove dependency on IVY2_CACHE env variable

0.4.2

04-06-11

Fixed GRIFFON-351 and GRIFFON-356

0.4.1

03-11-11

Fixed GRIFFON-180 (more tweaks)

0.4

02-15-11

Release sync with Griffon 0.9.2

0.3.1

10-10-10

Fixed GRIFFON-251

0.3

07-22-10

Release sync with Griffon 0.9

0.2.1

06-05-10

Fixed GRIFFON-203

0.2

05-30-10

Fixed GRIFFON-180

0.1

05-07-10

Initial release

  • No labels

2 Comments

  1. I have an error when I try to run the script (see below).

    Is there an issue tracker for griffon plugins?

    =====

    snowch@euc-nc:~/workspace-appspot/ScheduleEditorLayout$ griffon eclipse-update
    Welcome to Griffon 0.9 - http://griffon.codehaus.org/
    Licensed under Apache Standard License 2.0
    Griffon home is set to: /home/snowch/griffon-0.9

    Base Directory: /home/snowch/workspace-appspot/ScheduleEditorLayout
    Resolving dependencies...
    Dependencies resolved in 560ms.
    Running script /home/snowch/.griffon/0.9/projects/ScheduleEditorLayout/plugins/eclipse-support-0.3/scripts/EclipseUpdate.groovy
    Environment set to development
    Updating Eclipse classpath file...
    Error executing script EclipseUpdate: No such property: file for class: java.lang.String
    No such property: file for class: java.lang.String
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:387)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
    Caused by: groovy.lang.MissingPropertyException: No such property: file for class: java.lang.String
        at EclipseUpdate$_run_closure2_closure3_closure10.doCall(EclipseUpdate:88)
        at EclipseUpdate$_run_closure2_closure3.doCall(EclipseUpdate:87)
        at EclipseUpdate$_run_closure2_closure3.doCall(EclipseUpdate)
        at EclipseUpdate$_run_closure2.doCall(EclipseUpdate:41)
        at EclipseUpdate$_run_closure2.doCall(EclipseUpdate)
        at EclipseUpdate$_run_closure1.doCall(EclipseUpdate:27)
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        ... 10 more
    Error executing script EclipseUpdate: No such property: file for class: java.lang.String

  2. Hi,

    I am new to Griffon and very enthusiast to discover this new framework. However, I experienced an other regex issue on Windows with this eclipse-support plugin (v0.4.7):

    "java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 38"

    So, I opened the zip and tried to fix it, I applied the same regex fix than earlier in the script ... here is it :

    /* line 76 : path = path.replaceFirst(~/$\{griffonSettings.baseDir.path\}(\\|\/)/, '') */
    String baseDirPath = isWindows ? griffonSettings.baseDir.path.replace('', '\\\\') : griffonSettings.baseDir.path
    path = path.replaceFirst(~/$\{baseDirPath\}(\\|\/)/, '')
    

    I re-packaged and re-install this griffon plugin, and the script now work properly.

    Thanks a lot for all this work !

    Best regards,

    Vincent