Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Ant build problems
Ant build problems [message #215450] Thu, 22 September 2005 10:30 Go to next message
Eclipse UserFriend
Originally posted by: ianfeldberg.yahoo.com

I would like to integrate my Ant project into Eclipse but my Ant build
task does a lot more than just compile java files. I need to be able to
tell Eclipse to run my Ant "build" target instead of its internal Java
Builder.

Trouble is when I do that, I no longer get compiler errors/warnings for my
java files in the Package Explorer, Editor or Problems View. Is there a
way to use Ant for building and still get these warnings/errors?

I tried setting and unsetting the "build.compiler" setting to the
jdtCompilerAdapter as was mentioned in some previous emails but it doesn't
seem to help.

- Ian
ianfeldberg@yahoo.com
Re: Ant build problems [message #215458 is a reply to message #215450] Thu, 22 September 2005 11:11 Go to previous messageGo to next message
Eclipse UserFriend
No.
The Java development tooling support is fully integrated with the Java
builder and resulting compile.
Why not leave the compiling up to the Java builder and tweak your Ant
builder to do the additional tasks?

HTH
Darins

"Ian" <ianfeldberg@yahoo.com> wrote in message
news:524b2787d593c274ce9c707a62d89add$1@www.eclipse.org...
>I would like to integrate my Ant project into Eclipse but my Ant build task
>does a lot more than just compile java files. I need to be able to tell
>Eclipse to run my Ant "build" target instead of its internal Java Builder.
>
> Trouble is when I do that, I no longer get compiler errors/warnings for my
> java files in the Package Explorer, Editor or Problems View. Is there a
> way to use Ant for building and still get these warnings/errors?
>
> I tried setting and unsetting the "build.compiler" setting to the
> jdtCompilerAdapter as was mentioned in some previous emails but it doesn't
> seem to help.
>
> - Ian
> ianfeldberg@yahoo.com
>
Re: Ant build problems [message #215466 is a reply to message #215458] Thu, 22 September 2005 11:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ianfeldberg.yahoo.com

Darin,

Thanks for your response.

I would like to use the Eclipse compiler so that I get the compiler
error/warnings but the problem is that the build.xml file contains links
to a ton of external jar files. It seems that if I use the Eclipse builder
I have to go into the "Java Build Path" window and add these jars one by
one.

I have a large group of developers who will be using this build.xml to
build their project and I was hoping to avoid having them manually set
their classpath in Eclipse. Why doesn't Eclipse pick these up from the
build.xml file?

Is the only way to get those compiler errors/warnings in the Package
Explorer & Editor to use Eclipse's Java Builder?

- Ian
Re: Ant build problems [message #215488 is a reply to message #215466] Thu, 22 September 2005 21:56 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Ian wrote:
> Darin,
>
> Thanks for your response.
> I would like to use the Eclipse compiler so that I get the compiler
> error/warnings but the problem is that the build.xml file contains
> links to a ton of external jar files. It seems that if I use the Eclipse
> builder I have to go into the "Java Build Path" window and add these
> jars one by one.
>
> I have a large group of developers who will be using this build.xml to
> build their project and I was hoping to avoid having them manually set
> their classpath in Eclipse. Why doesn't Eclipse pick these up from the
> build.xml file?
>
> Is the only way to get those compiler errors/warnings in the Package
> Explorer & Editor to use Eclipse's Java Builder?
>
> - Ian
>
If you use ClassPath Variables to define your external jar files, only
one developer will need to add all of the jars. You then can share the
..classpath and .project files with the rest of the team. They just need
to set the base directory for the ClassPath Variable that points the
location on their system where the external jar files can be found.
Previous Topic:Searching only within strings
Next Topic:NoClassDefFoundError with Rational Application Developer
Goto Forum:
  


Current Time: Tue Jun 03 08:52:51 EDT 2025

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

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

Back to the top