Home » Newcomers » Newcomers » Files linked to multiple plugin projects?
Files linked to multiple plugin projects? [message #252888] |
Wed, 02 April 2008 00:12  |
Eclipse User |
|
|
|
I am posting this in newcomer because I think this question belongs here. I
am working on an RCP application that involves a ton of plugins, and
classpath problems are making it impossible for me to unit test a very
select portion of the application.
Is it possible to have the same source files, external to the file structure
of a project, linked by more than one project? I would like to edit the
source files (just three or four classes) in one project and when the files
are saved, I should see the same source files in the other project. The
goal would be to unit test the classes in the "other" project.
If it is possible, is it a disastrous idea?
Thanks.
- Mike
|
|
| |
Re: Files linked to multiple plugin projects? [message #252919 is a reply to message #252907] |
Wed, 02 April 2008 09:41   |
Eclipse User |
|
|
|
Drools has a weird problem that I do not understand. I can test everything
in my main RCP application EXCEPT anything invoking Drools inference engine.
The RCP itself calls Drools and works. But I cannot unit test rules.
I can make a separate project that is entirely a Drools project, and I can
unit test it without problems.
If I make the latter project depend on the RCP application, then my unit
tests in the Drools project fail.
After months of flailing with this, my idea was simply to have the four
classes and rules files be pointed to from a pure Drools project and use
that solely for testing rules; the remainder of the application would
remain in the main project. I don't actually have multiple projects that
need these common source files - just trying to figure out a work around to
a problem I completely don't understand.
- Mike
On 4/2/08 6:35 AM, in article fsvuic$t90$4@build.eclipse.org, "Ed Merks"
<merks@ca.ibm.com> wrote:
> Mike,
>
> It is possible to create links to external folders, but the natural
> question that arises is, why isn't common code put in a common plugin
> that's shared by each plugin that needs the common code. Classpath are
> easily managed by plugin dependencies so I'm not sure what classpath
> issues you're having...
>
>
> J Michael Dean wrote:
>> I am posting this in newcomer because I think this question belongs here. I
>> am working on an RCP application that involves a ton of plugins, and
>> classpath problems are making it impossible for me to unit test a very
>> select portion of the application.
>>
>> Is it possible to have the same source files, external to the file structure
>> of a project, linked by more than one project? I would like to edit the
>> source files (just three or four classes) in one project and when the files
>> are saved, I should see the same source files in the other project. The
>> goal would be to unit test the classes in the "other" project.
>>
>> If it is possible, is it a disastrous idea?
>>
>> Thanks.
>>
>> - Mike
>>
>>
|
|
|
Re: Files linked to multiple plugin projects? [message #252923 is a reply to message #252919] |
Wed, 02 April 2008 09:52  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------050407060805090001040302
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mike,
It sounds most likely that the unit tests doesn't pull in the same
dependencies as the RCP applicaton. Are you running the JUnits using
JUnit Plug-in Test rather that "just as" a Junit Test?
J Michael Dean wrote:
> Drools has a weird problem that I do not understand. I can test everything
> in my main RCP application EXCEPT anything invoking Drools inference engine.
> The RCP itself calls Drools and works. But I cannot unit test rules.
>
> I can make a separate project that is entirely a Drools project, and I can
> unit test it without problems.
>
> If I make the latter project depend on the RCP application, then my unit
> tests in the Drools project fail.
>
> After months of flailing with this, my idea was simply to have the four
> classes and rules files be pointed to from a pure Drools project and use
> that solely for testing rules; the remainder of the application would
> remain in the main project. I don't actually have multiple projects that
> need these common source files - just trying to figure out a work around to
> a problem I completely don't understand.
>
> - Mike
>
>
> On 4/2/08 6:35 AM, in article fsvuic$t90$4@build.eclipse.org, "Ed Merks"
> <merks@ca.ibm.com> wrote:
>
>
>> Mike,
>>
>> It is possible to create links to external folders, but the natural
>> question that arises is, why isn't common code put in a common plugin
>> that's shared by each plugin that needs the common code. Classpath are
>> easily managed by plugin dependencies so I'm not sure what classpath
>> issues you're having...
>>
>>
>> J Michael Dean wrote:
>>
>>> I am posting this in newcomer because I think this question belongs here. I
>>> am working on an RCP application that involves a ton of plugins, and
>>> classpath problems are making it impossible for me to unit test a very
>>> select portion of the application.
>>>
>>> Is it possible to have the same source files, external to the file structure
>>> of a project, linked by more than one project? I would like to edit the
>>> source files (just three or four classes) in one project and when the files
>>> are saved, I should see the same source files in the other project. The
>>> goal would be to unit test the classes in the "other" project.
>>>
>>> If it is possible, is it a disastrous idea?
>>>
>>> Thanks.
>>>
>>> - Mike
>>>
>>>
>>>
>
>
--------------050407060805090001040302
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Mike,<br>
<br>
It sounds most likely that the unit tests doesn't pull in the same
dependencies as the RCP applicaton. Are you running the JUnits using
JUnit Plug-in Test rather that "just as" a Junit Test?<br>
<br>
<br>
J Michael Dean wrote:
<blockquote cite="mid:C418E916.25497%25mdean77@comcast.net" type="cite">
<pre wrap="">Drools has a weird problem that I do not understand. I can test everything
in my main RCP application EXCEPT anything invoking Drools inference engine.
The RCP itself calls Drools and works. But I cannot unit test rules.
I can make a separate project that is entirely a Drools project, and I can
unit test it without problems.
If I make the latter project depend on the RCP application, then my unit
tests in the Drools project fail.
After months of flailing with this, my idea was simply to have the four
classes and rules files be pointed to from a pure Drools project and use
that solely for testing rules; the remainder of the application would
remain in the main project. I don't actually have multiple projects that
need these common source files - just trying to figure out a work around to
a problem I completely don't understand.
- Mike
On 4/2/08 6:35 AM, in article <a class="moz-txt-link-abbreviated" href="mailto:fsvuic$t90$4@build.eclipse.org">fsvuic$t90$4@build.eclipse.org</a>, "Ed Merks"
<a class="moz-txt-link-rfc2396E" href="mailto:merks@ca.ibm.com"><merks@ca.ibm.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Mike,
It is possible to create links to external folders, but the natural
question that arises is, why isn't common code put in a common plugin
that's shared by each plugin that needs the common code. Classpath are
easily managed by plugin dependencies so I'm not sure what classpath
issues you're having...
J Michael Dean wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I am posting this in newcomer because I think this question belongs here. I
am working on an RCP application that involves a ton of plugins, and
classpath problems are making it impossible for me to unit test a very
select portion of the application.
Is it possible to have the same source files, external to the file structure
of a project, linked by more than one project? I would like to edit the
source files (just three or four classes) in one project and when the files
are saved, I should see the same source files in the other project. The
goal would be to unit test the classes in the "other" project.
If it is possible, is it a disastrous idea?
Thanks.
- Mike
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>
--------------050407060805090001040302--
|
|
|
Goto Forum:
Current Time: Mon May 12 08:16:53 EDT 2025
Powered by FUDForum. Page generated in 0.07798 seconds
|