Hi,<br>Do not add to an existing project.<br><br>Go to folder jbossrules-3.0.5-src. Then do a &#39;mvn eclipse:eclipse&#39;<br><br>This will generate eclipse meta files. The import this as an Eclipse project.<br>When running a rules project(X), add the imported project as a dependent project.
<br><br>Do not forget to remove the jbossrules jars from the project X.<br><br>/sumedha<br><br><br><br><br><div><span class="gmail_quote">On 2/21/07, <b class="gmail_sendername">Francisco Brum</b> &lt;<a href="mailto:francisco.brum@link.pt">
francisco.brum@link.pt</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="PT">

<div>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Hi</span></font><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font><font face="Arial" size="2">
<span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">everybody</span></font><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">!</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">I have added the JBoss rules – drools 3.0.5 to
an existing eclipse project.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">I have already solved the problem of adding the
source code of drools to the debugging of eclipse, using the first indication
of Kris, witch is quoted in the end!</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Now the problem it's being able to debugging
using the source of drools, but having the line number, so that eclipse can
follow the exact actions of the source.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Can anybody help me?!</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">&nbsp;</span></font></p>

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

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Thanks in advance for the attention of this problem.</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">__________________________________</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Francisco Brum&nbsp;- </span></font><a href="mailto:rui.arrenega@link.pt" title="mailto:rui.arrenega@link.pt
mailto:nuno.oliveira@link.pt" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"><span title="mailto:rui.arrenega@link.pt">
francisco.brum@link.pt</span></span></font></a><br>
<b><font color="teal" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: teal; font-weight: bold;">Link Consulting</span></font></b><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">
 - </span></font><a href="http://www.link.pt/" title="http://www.link.pt/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">
<span title="http://www.link.pt/">http://www.link.pt/</span></span></font></a></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Tel.: 213 100 031</span></font><br>
<font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Av.
Duque D&#39;Ávila, 23 4º Esq.<br>
1000-138 Lisboa</span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

</div>


<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br>