I know why I got the error sometimes but it worked.
I've written some rules to unit test individual
mappings in my dsl. I keep these unit test rules in a
package under the src\test\resources folder. The dsl
file, however, is under src\main\resouces. So Eclipse
can't find the dsl where the drl is. Once built, they
of course all go to the classes folder, thus the
actual execution has no problem.



--- Michael Neale <[EMAIL PROTECTED]> wrote:

> no problems. The IDE will pick up the DSLs for
> compiling and code
> completion, however, you still need to use the right
> API call to execute the
> rules (as the API works off a Reader at the moment -
> we are open to
> enhancement suggestions).
> 
> Yeah each beta had many many changes, thanks to
> excellent feedback from
> users.
> 
> On 4/6/06, Yuesong Wang <[EMAIL PROTECTED]>
> wrote:
> >
> > I have beta3. It is working fine now. Must have
> been
> > user error while I was trying to figure out how
> > different things work. Sorry and Thanks!
> >
> > --- Michael Neale <[EMAIL PROTECTED]> wrote:
> >
> > > what version of the plugin are you using? That
> was
> > > only fixed in beta 2 or 3
> > > I think.
> > > Is there is a .dsl file in the same directory,
> it
> > > should pick it up. If its
> > > giving errors or not completing, then chances
> are it
> > > can't find the DSL that
> > > is mentioned in the expander statement.
> > >
> > > On 4/5/06, Yuesong Wang <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > Speaking of dsl, I spent a whole night and
> finally
> > > got
> > > > it to work. One thing, however, is that when
> using
> > > the
> > > > Eclipse plugin to edit a dsl-enabled drl file,
> it
> > > will
> > > > be marked with an error:
> > > >
> > > > Unable to use expander. Make sure a expander
> or
> > > dsl
> > > > config is being passed to the parser.
> > > > [ExpanderResolver was not set].
> > > >
> > > > And I don't get code assisstance, which I see
> on
> > > the
> > > > screen shots of the plugin, when editing the
> drl
> > > file.
> > > > The rule runs fine though.
> > > >
> > > > Yuesong
> > > >
> > > > --- Michael Neale <[EMAIL PROTECTED]>
> wrote:
> > > >
> > > > > keep in mind, DSLs in 2.x and 3.x are quite
> > > > > different beasts
> > > > > (www.drools.orgtalks about the
> > > > > 2.x XML style of DSLs).
> > > > >
> > > > > On 4/4/06, Paul Smith
> <[EMAIL PROTECTED]>
> > > > > wrote:
> > > > > >
> > > > > > Try installing the eclipse IDE plugin.
> There
> > > is a
> > > > > nice little editor for
> > > > > > creating your own .dsl. There are a couple
> of
> > > .dsl
> > > > > examples at
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>
http://anonsvn.labs.jboss.com/trunk/labs/jbossrules/drools-compiler/src/test/resources/org/drools/integrationtests/
> > > > > >
> > > > > > These are basically what I followed.
> > > > > >
> > > > > > On 4/4/06, Diouf Mouhamed <[EMAIL PROTECTED]>
> > > wrote:
> > > > > > >
> > > > > > > Hi all,
> > > > > > > I wanner create my own DSL. Have you
> some
> > > > > documentation or guide for me?
> > > > > > > Thanks, mdiouf
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to