Yes, the drools jars do not contain any source by default (to limit the size of 
the jars).
There are two ways to use the source of these classes though:
 * When you are trying to debug an application in eclipse, and you open the 
debug dialog (right click your Java main class, select Debug As -> Debug ...), 
there is a tab there you can use to add sources.  If you download the sources 
from svn and import these as Java projects in eclipse, you can just add those 
projects to the source lookup path.  I added a screenshot to help you out with 
that.
 * If you add the sources to the drools jars directly (in the same dir as the 
corresponding class files, so not in a separate src dir or something like 
that), those sources will be found automatically as well.  So rebuilding those 
jars and adding the sources should do the trick for all your projects at once.

Kris

  ----- Original Message ----- 
  From: Steven Williams 
  To: Rules Users List 
  Sent: Wednesday, February 07, 2007 1:53 AM
  Subject: Re: [rules-users] Adding DROOLS/JBoss Rules to classpath


  In addition to that Kris I have noticed that I can't attach source to any of 
the drools jars in eclipse - it seems to treat these jars differently. Do you 
know how we can attach the source?

  thanks
  Steve


  On 2/7/07, Kris Verlaenen <[EMAIL PROTECTED]> wrote:
    Currently, a JBoss Rules project is just a Java project with two additional 
characteristics:
     * The JBoss Rules classpath container is added to the classpath of the 
project
     * A JBoss Rules builder automatically checks all rules for possible errors

    In the current version of the IDE (3.0.5) you can only convert existing 
projects to JBoss rules projects by manually altering the .project and 
.classpath files as described in the documentation.  The latest version in 
trunk already contains a shortcut where you can right-click the .project file 
and select the "Convert to JBoss Rules Project" action.  I will see whether it 
is possible to add the JBoss Rules classpath container to the list of libraries 
that can be added.

    Kris

      ----- Original Message ----- 
      From: Grimshaw, Jeffrey 
      To: Rules Users List 
      Sent: Monday, February 05, 2007 7:23 PM
      Subject: [rules-users] Adding DROOLS/JBoss Rules to classpath


      Hi all.  I'm having some trouble adding the JBoss Rules custom classpath 
container to an existing project in Eclipse.  I can do it by adding the 
following line to the project's .classpath file: 

      <classpathentry kind="con" path="DROOLS/JBoss Rules"/> 

      Is there another/better way to do this?  I would expect to be able to do 
it somewhere in Build Path --> Add Libraries…, but I have had no luck.

      Thanks, 

      -- Jeff Grimshaw 





--------------------------------------------------------------------------


      _______________________________________________
      rules-users mailing list
      [email protected]
      https://lists.jboss.org/mailman/listinfo/rules-users



    Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more 
information. 


    _______________________________________________
    rules-users mailing list
    [email protected]
    https://lists.jboss.org/mailman/listinfo/rules-users





  -- 
  Steven Williams

  Supervising Consultant

  Object Consulting
  Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501 
  [EMAIL PROTECTED]
  www.objectconsulting.com.au

  consulting | development | training | support 
  our experience makes the difference 


------------------------------------------------------------------------------


  _______________________________________________
  rules-users mailing list
  [email protected]
  https://lists.jboss.org/mailman/listinfo/rules-users

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to