Skip to main content



      Home
Home » Newcomers » Newcomers » howto: only compile certain package hierachies?
howto: only compile certain package hierachies? [message #99204] Fri, 02 September 2005 18:09 Go to next message
Eclipse UserFriend
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 #99719 is a reply to message #99204] Tue, 06 September 2005 06:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

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?

You can remove them from the Java build path or move the debug code into
a separate project. You can then close that project until you need it.

Dani

>
> 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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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...

;-)
Previous Topic:Files .war
Next Topic:"Stuck" eclipse project won't load, need help debugging Eclipse project creation
Goto Forum:
  


Current Time: Sun Jul 13 22:10:21 EDT 2025

Powered by FUDForum. Page generated in 0.10536 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top