Re: [rules-users] Drools library - updating Drools jar

2009-08-20 Thread Edson Tirelli
   Cool, living and learning! Thanks,

   Edson

2009/8/20 Pegram, Macon 

>  There’s another way…..
>
>
>
> In the Eclipse Plugin Preferences (Eclipse -> Preferences -> Drools ->
> Installed Drools Runtime) you point to the location of the Drools runtime
> you want to use.  If you swap out the MVEL file at the location of your
> Drools Runtime it should pick up the right version of the MVEL.
>
>
>
> You could also duplicate the jar files in that folder into a “Patch”
> folder, replace the MVEL jar in the PATCH copy, and setup a “Patch Drools
> Runtime” if you want to keep your original installation pristine.
>
>
>
> You will likely need/want to bounce Eclipse for this to take effect.
>
>
>
>
>  --
>
> *From:* rules-users-boun...@lists.jboss.org [mailto:
> rules-users-boun...@lists.jboss.org] *On Behalf Of *Edson Tirelli
> *Sent:* Thursday, August 20, 2009 12:12 PM
> *To:* Rules Users List
> *Subject:* Re: [rules-users] Drools library - updating Drools jar
>
>
>
>
>Does not matter the order in the "libraries" tab. You need to set them
> in the "Order and Export" tab.
>
>[]s
>Edson
>
> 2009/8/20 KDR 
>
>
> Edson thank you very much for your suggestions.
>
> I wonder if it didn't work because I used 2.0.13? - I did that because I
> couldn't find 2.0.12 on the download page at
> http://docs.codehaus.org/display/MVEL/Downloading+MVEL - as you can see
> from
> the attached pic I did try adding that jar to the project build path, ahead
> of the "standard" Drools library.
>
> I'll download 2.0.14-SNAPSHOT and try it with that. Don't have the strength
> to rebuild etc right now! I'll report back. Thanks again for your help,
> much
> appreciated. :)
>
> http://www.nabble.com/file/p25063132/drools3.png drools3.png
>
>
>
> Edson Tirelli-3 wrote:
> >
> >I am no Eclipse expert, but:
> >
> > "The correct way" (TM): checkout the source code, change the pom.xml to
> > use
> > the correct MVEL version, rebuild the plugin and re-install. When we
> > release
> > the next version, just update it.
> >
> > "The easy way" (TM): add the new mvel jar to your eclipse project
> > classpath
> > and move it up to be before the drools library in the eclipse project
> > classpath order. You will have both in the classpath, but being first in
> > the
> > classpath order will make eclipse use it.
> >
> >You must use 2.0.12 or 2.0.14-SNAPSHOT. When I tested 2.0.13 there was
> > a
> > regression, if I remember correctly.
> >
> >[]s
> >Edson
> >
>
> --
> View this message in context:
> http://www.nabble.com/Drools-library---updating-Drools-jar-tp25057905p25063132.html
>
> Sent from the drools - user mailing list archive at Nabble.com.
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
> --
>  Edson Tirelli
>  JBoss Drools Core Development
>  JBoss by Red Hat @ www.jboss.com
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools library - updating Drools jar

2009-08-20 Thread Pegram, Macon
There's another way.

 

In the Eclipse Plugin Preferences (Eclipse -> Preferences -> Drools ->
Installed Drools Runtime) you point to the location of the Drools
runtime you want to use.  If you swap out the MVEL file at the location
of your Drools Runtime it should pick up the right version of the MVEL. 

 

You could also duplicate the jar files in that folder into a "Patch"
folder, replace the MVEL jar in the PATCH copy, and setup a "Patch
Drools Runtime" if you want to keep your original installation pristine.

 

You will likely need/want to bounce Eclipse for this to take effect.

 

 



From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Edson Tirelli
Sent: Thursday, August 20, 2009 12:12 PM
To: Rules Users List
Subject: Re: [rules-users] Drools library - updating Drools jar

 


   Does not matter the order in the "libraries" tab. You need to set
them in the "Order and Export" tab.

   []s
   Edson

2009/8/20 KDR 


Edson thank you very much for your suggestions.

I wonder if it didn't work because I used 2.0.13? - I did that because I
couldn't find 2.0.12 on the download page at
http://docs.codehaus.org/display/MVEL/Downloading+MVEL - as you can see
from
the attached pic I did try adding that jar to the project build path,
ahead
of the "standard" Drools library.

I'll download 2.0.14-SNAPSHOT and try it with that. Don't have the
strength
to rebuild etc right now! I'll report back. Thanks again for your help,
much
appreciated. :)

http://www.nabble.com/file/p25063132/drools3.png drools3.png



Edson Tirelli-3 wrote:
>
>I am no Eclipse expert, but:
>
> "The correct way" (TM): checkout the source code, change the pom.xml
to
> use
> the correct MVEL version, rebuild the plugin and re-install. When we
> release
> the next version, just update it.
>
> "The easy way" (TM): add the new mvel jar to your eclipse project
> classpath
> and move it up to be before the drools library in the eclipse project
> classpath order. You will have both in the classpath, but being first
in
> the
> classpath order will make eclipse use it.
>
>You must use 2.0.12 or 2.0.14-SNAPSHOT. When I tested 2.0.13 there
was
> a
> regression, if I remember correctly.
>
>[]s
>Edson
>

--
View this message in context:
http://www.nabble.com/Drools-library---updating-Drools-jar-tp25057905p25
063132.html

Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools library - updating Drools jar

2009-08-20 Thread Edson Tirelli
   Does not matter the order in the "libraries" tab. You need to set them in
the "Order and Export" tab.

   []s
   Edson

2009/8/20 KDR 

>
> Edson thank you very much for your suggestions.
>
> I wonder if it didn't work because I used 2.0.13? - I did that because I
> couldn't find 2.0.12 on the download page at
> http://docs.codehaus.org/display/MVEL/Downloading+MVEL - as you can see
> from
> the attached pic I did try adding that jar to the project build path, ahead
> of the "standard" Drools library.
>
> I'll download 2.0.14-SNAPSHOT and try it with that. Don't have the strength
> to rebuild etc right now! I'll report back. Thanks again for your help,
> much
> appreciated. :)
>
> http://www.nabble.com/file/p25063132/drools3.png drools3.png
>
>
> Edson Tirelli-3 wrote:
> >
> >I am no Eclipse expert, but:
> >
> > "The correct way" (TM): checkout the source code, change the pom.xml to
> > use
> > the correct MVEL version, rebuild the plugin and re-install. When we
> > release
> > the next version, just update it.
> >
> > "The easy way" (TM): add the new mvel jar to your eclipse project
> > classpath
> > and move it up to be before the drools library in the eclipse project
> > classpath order. You will have both in the classpath, but being first in
> > the
> > classpath order will make eclipse use it.
> >
> >You must use 2.0.12 or 2.0.14-SNAPSHOT. When I tested 2.0.13 there was
> > a
> > regression, if I remember correctly.
> >
> >[]s
> >Edson
> >
>
> --
> View this message in context:
> http://www.nabble.com/Drools-library---updating-Drools-jar-tp25057905p25063132.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools library - updating Drools jar

2009-08-20 Thread KDR

Edson thank you very much for your suggestions. 

I wonder if it didn't work because I used 2.0.13? - I did that because I
couldn't find 2.0.12 on the download page at
http://docs.codehaus.org/display/MVEL/Downloading+MVEL - as you can see from
the attached pic I did try adding that jar to the project build path, ahead
of the "standard" Drools library. 

I'll download 2.0.14-SNAPSHOT and try it with that. Don't have the strength
to rebuild etc right now! I'll report back. Thanks again for your help, much
appreciated. :)

http://www.nabble.com/file/p25063132/drools3.png drools3.png 


Edson Tirelli-3 wrote:
> 
>I am no Eclipse expert, but:
> 
> "The correct way" (TM): checkout the source code, change the pom.xml to
> use
> the correct MVEL version, rebuild the plugin and re-install. When we
> release
> the next version, just update it.
> 
> "The easy way" (TM): add the new mvel jar to your eclipse project
> classpath
> and move it up to be before the drools library in the eclipse project
> classpath order. You will have both in the classpath, but being first in
> the
> classpath order will make eclipse use it.
> 
>You must use 2.0.12 or 2.0.14-SNAPSHOT. When I tested 2.0.13 there was
> a
> regression, if I remember correctly.
> 
>[]s
>Edson
> 

-- 
View this message in context: 
http://www.nabble.com/Drools-library---updating-Drools-jar-tp25057905p25063132.html
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools library - updating Drools jar

2009-08-20 Thread Edson Tirelli
   I am no Eclipse expert, but:

"The correct way" (TM): checkout the source code, change the pom.xml to use
the correct MVEL version, rebuild the plugin and re-install. When we release
the next version, just update it.

"The easy way" (TM): add the new mvel jar to your eclipse project classpath
and move it up to be before the drools library in the eclipse project
classpath order. You will have both in the classpath, but being first in the
classpath order will make eclipse use it.

   You must use 2.0.12 or 2.0.14-SNAPSHOT. When I tested 2.0.13 there was a
regression, if I remember correctly.

   []s
   Edson


2009/8/20 KDR 

>
> Thanks to Edson and André for the very interesting discussion on maps in
> Drools. :) I suspect my follow up question got a bit buried in that thread
> and probably is a separate topic anyway, so I hope you don't mind my asking
> this newbie question in a new thread.
>
> All Drools projects created in Eclipse with the Drools plugin have a Drools
> library associated with them, which shows up as a Drools Library entry on
> the left in both project/package explorer, and in the project properties
> for
> the project - in the Libraries tab for the project properties' Java Build
> Path.
>
> My question is, how do you get Eclipse to recognise an updated jar in the
> Drools library please? Or perhaps it should be, how do you get Drools to
> recognise an update to a jar which it uses?
>
> Edson said in the other thread that I need to update my mvel jar to 2.0.12.
> I can only find 2.0.13 but no doubt that's also got the maps bugfix.
>
> However where I'm stuck is how get the Drools projects to use the updated
> jar. I've copied the 2.0.13 jar to the Drools runtime folder on my computer
> (both top level and subfolder). I've tried to add the 2.0.13 jar to the
> Java
> build path for the project as an external jar. I've tried to create a fresh
> Drools project in Eclipse. I've restarted Eclipse with -clean. The map
> issue
> is still there, and the Drools library for the Drools projects still don't
> even show 2.0.13 in the list of jars - just 2.0.10. I'm sure the crux of it
> is that somewhere Drools has been told to use 2.0.10, and I don't know how
> to tell it otherwise.
>
> I'm sure it's a really easy thing to do if you know how, but I've tried
> everything I can think of and am totally at a loss as to what to try next.
> (Probably try to rename 2.0.13 to 2.0.10, delete or rename the old 2.0.10
> and restart Eclipse?).
>
> Would some kind person be able to point me in the right direction please?
> I'm trying to think of a workaround for my project that doesn't use maps,
> but ideally maps would be the best way. I'm willing to offer a box of
> chocolates or a bottle of wine or beer whatever your poison of choice, if
> blatant bribes will help! :D
>
> Many thanks. Any suggestions at all would be most appreciated.
> --
> View this message in context:
> http://www.nabble.com/Drools-library---updating-Drools-jar-tp25057905p25057905.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users