Revision: 12427
          http://gate.svn.sourceforge.net/gate/?rev=12427&view=rev
Author:   ian_roberts
Date:     2010-04-01 17:01:31 +0000 (Thu, 01 Apr 2010)

Log Message:
-----------
Enhanced groovy script PR:
- now works with any URL, doesn't have to be file:...
- Added the same default imports as you get on the RHS of JAPE rules (this was
  a bit of a dirty hack - I simply append a load of import statements to the
  end of the script text before parsing.  Imports work anywhere in a groovy
  script, they don't have to be ahead of the point where they are used, so
  putting them at the end means it doesn't affect the line numbers of
  compilation error messages).
- Added an encoding parameter giving the encoding of the script file
- changed configuration to @CreoleResource rather than creole.xml

I've left the old 'gate' and 'factory' variables for compatibility, but you can
now use Gate and Factory instead (as well as AnnotationSet, FeatureMap, etc.
etc.) because of the import gate.*

Modified Paths:
--------------
    gate/trunk/plugins/Groovy/build.xml
    gate/trunk/plugins/Groovy/creole.xml
    gate/trunk/plugins/Groovy/resources/scripts/regex.groovy
    gate/trunk/plugins/Groovy/src/gate/groovy/ScriptPR.java

Property Changed:
----------------
    gate/trunk/plugins/Groovy/


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to