2 Replies Last post: Dec 13, 2011 5:55 PM by kushal Likhi  
kushal Likhi Newbie 2 posts since
Dec 8, 2011
Currently Being Moderated

Dec 8, 2011 2:06 PM

Intellij IDEA-Grails GDSL Not Working

I tried to use GDSL Scripts for my grails project in IDEA.

I tried things as shown in the Guide: GDSL Guide

The Steps I followed were:

  1. Created a myDef.gdsl file in my project home(i.e. in the folder
    that containg grails-app, web-app etc)
  2. In that file i added this code:

    def ctx2 = context(ctype: "com.myPackage.MyClass")
    
    contributor(ctx2) {
        method(name: 'withLock', type: 'void', params: [closure: { }])
    }
    
  3. Clicked on Activate.

But it still does not show any autocomplete or recognise when i do:

Myclass m = new MyClass()
m.withLock() //This is not recognised

Anything i am doing wrong???

Details:


  • Idea Version: 107.535

.

Peter Gromov Apprentice 726 posts since
Sep 12, 2002
Currently Being Moderated
Dec 13, 2011 5:40 PM in response to: kushal Likhi
Re: Intellij IDEA-Grails GDSL Not Working

More Like This

  • Retrieving data ...