specifying project dependencies in build.xml vs build path [message #214065] |
Wed, 06 June 2007 14:21 |
Eclipse User |
|
|
|
Originally posted by: navodit.kaushik.citigroup.com
Hi
What is the difference between specifying the project dependencies in the
build.xml file and specifying them in the Java Build Path? For example for
using the spring framework in the build.xml file I have:
<pathelement
location="${xenv.SPRING_FRAMEWORK}/lib/aspectj/aspectjrt.jar "/>
<pathelement
location="${xenv.SPRING_FRAMEWORK}/lib/aspectj/aspectjweaver.jar "/>
and many more...
But I also need to add these individual jar files in the "libraries" tab
on the "Java Build Path" in the project's properties dialog.
Why do we need to specify both? Can someone clarify this as I am a bit new
to using Eclipse and am not sure abt what is going on here... Thanks
|
|
|
Re: specifying project dependencies in build.xml vs build path [message #214132 is a reply to message #214065] |
Wed, 06 June 2007 19:47 |
Eclipse User |
|
|
|
Originally posted by: eclipse5.rizzoweb.com
nk wrote:
> Hi
> What is the difference between specifying the project dependencies in
> the build.xml file and specifying them in the Java Build Path? For
> example for using the spring framework in the build.xml file I have:
>
> <pathelement
> location="${xenv.SPRING_FRAMEWORK}/lib/aspectj/aspectjrt.jar "/>
> <pathelement
> location="${xenv.SPRING_FRAMEWORK}/lib/aspectj/aspectjweaver.jar "/>
> and many more...
>
> But I also need to add these individual jar files in the "libraries" tab
> on the "Java Build Path" in the project's properties dialog.
>
> Why do we need to specify both? Can someone clarify this as I am a bit
> new to using Eclipse and am not sure abt what is going on here... Thanks
build.xml is used by Ant. The Java Build Path is, obviously, used by
Eclipse. Eclipse does not generally use build.xml, although you can
disable the Eclipse compiler and set up a custom buider that uses
build.xml (although that is usually recommended against because it
disables many of the powerful features of Eclipse Java tools)
Eclipse has the ability to create a project from an existing Ant
build.xml. Also, there are several 3rd-party plugins out there that
purport to keep the two in sync, but I've not used any of them.
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.08005 seconds