howto: only compile certain package hierachies? [message #99204] |
Fri, 02 September 2005 18:09  |
Eclipse User |
|
|
|
Originally posted by: mlundquist2.comcast.net
Hi,
I have an Eclipse project with a boatload of <classpathentry
kind="src".../>, but I don't want all those things to compile when I
build the project... they are on the classpath for debugging only.
How do I configure my build so that only certain package hierarchies or
source directories get compiled?
Thanks a lot!
Mark
|
|
|
|
Re: howto: only compile certain package hierachies? [message #99863 is a reply to message #99204] |
Tue, 06 September 2005 12:16   |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
Mark Lundquist wrote:
> Hi,
>
> I have an Eclipse project with a boatload of <classpathentry
> kind="src".../>, but I don't want all those things to compile when I
> build the project... they are on the classpath for debugging only.
>
> How do I configure my build so that only certain package hierarchies or
> source directories get compiled?
It is not clear why you want to do that (if you explain it to us, we may
be able to guide you in a better way).
Having said that, if you remove those entries from the Java Build Path
they will not get compiled. If you need the code to be compiled for
debugging, then when/how do you plan on compiling it? Do you have
another process (such as an Ant script) that compiles them? If so, you
can just include the results of that compile in your Launch
Configuration classpath for debugging.
Remember, the Build Path is separate and distinct from Launch paths
(which are used for running/debugging a program).
Do you see why I asked to explain why you want to not compile certain
packages? It seems like you are trying to accomplish something at a
higher level, and there might be a better way than trying to disable
compilation of some packages.
HTH,
Eric
|
|
|
Re: howto: only compile certain package hierachies? [message #100488 is a reply to message #99863] |
Thu, 08 September 2005 15:55   |
Eclipse User |
|
|
|
Originally posted by: mlundquist2.comcast.net
Eric Rizzo wrote:
> Mark Lundquist wrote:
>
>> Hi,
>>
>> I have an Eclipse project with a boatload of <classpathentry
>> kind="src".../>, but I don't want all those things to compile when I
>> build the project... they are on the classpath for debugging only.
>>
>> How do I configure my build so that only certain package hierarchies
>> or source directories get compiled?
>
>
> It is not clear why you want to do that (if you explain it to us, we may
> be able to guide you in a better way).
See below...
>
> Having said that, if you remove those entries from the Java Build Path
> they will not get compiled. If you need the code to be compiled for
> debugging, then when/how do you plan on compiling it? Do you have
> another process (such as an Ant script) that compiles them?
Yes! :-)
> If so, you
> can just include the results of that compile in your Launch
> Configuration classpath for debugging.
> Remember, the Build Path is separate and distinct from Launch paths
> (which are used for running/debugging a program).
Aha! Great, thanks...
> Do you see why I asked to explain why you want to not compile certain
> packages? It seems like you are trying to accomplish something at a
> higher level, and there might be a better way than trying to disable
> compilation of some packages.
Yep. I answer questions the exact same way on other lists, where I'm
not the newbie :-). We should acronym-ize it... WAYTTD = "What Are You
Trying To Do", we ask that question back so often e.g. on the Cocoon
list :-)
Best regards,
Mark
|
|
|
Re: howto: only compile certain package hierachies? [message #100825 is a reply to message #100488] |
Fri, 09 September 2005 11:06  |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
Mark Lundquist wrote:
> Eric Rizzo wrote:
>> It is not clear why you want to do that (if you explain it to us, we
>> may be able to guide you in a better way).
>
>
> See below...
[snip]
>> Do you see why I asked to explain why you want to not compile certain
>> packages? It seems like you are trying to accomplish something at a
>> higher level, and there might be a better way than trying to disable
>> compilation of some packages.
>
>
> Yep. I answer questions the exact same way on other lists, where I'm
> not the newbie :-). We should acronym-ize it... WAYTTD = "What Are You
> Trying To Do", we ask that question back so often e.g. on the Cocoon
> list :-)
OK, so answer WAYTTD...
;-)
|
|
|
Powered by
FUDForum. Page generated in 0.10536 seconds