Update Groovy-Core

  1. Create a new Branch

https://svn.codehaus.org.groovy/trunk/ide/groovy-eclipse (Trunk)
https://svn.codehaus.org.groovy/branches/ide/groovy-eclipse/1.5.x

svn copy [source] [target] -m "message"
  1. Checkout the new created branch
  1. Run all tests to verify that the version is ok
  1. Exchange Jars from the official distribution release (Maven Repo) the jars are stored in the project org.codehaus.groovy
    • groovy-1.5.x.jar
    • groovy-all-1.5.6.x.jar
    • groovy-sources.jar
    • groovy-javadoc.jar
  1. Extract the grammar file out of sources.jar (groovy.g)
  2. Merge the new grammar with the old grammar to get the error recovery (org.codehaus.groovy.eclipse.core/src/org/codehaus/groovy/eclipse/core/compiler/internal/antlr)
    1. Insert code which is marked with // Recovery
    2. modify the header of the grammar
    3. modify the errorList
    4. modify getErrorList
  1. Install antlr 2.7.x on yor system
  2. Generate the new Lexer
antlr.bat [path -> gramar groovy.g]
  1. Replace the generated files with the existing in the plugin
  2. Change the paths to all JARs (search/replace 1.5.x in all files)
  3. Run all tests to verify that the new grammar is working fine