Run Application [message #75445] |
Wed, 08 June 2005 12:15  |
Eclipse User |
|
|
|
Originally posted by: jason.tang.ubc.ca
Hi all,
Does anyone run into a problem I have when using Eclipse 3.0.2 that it
always cleans up my build directory (remove all class files) and copy all
xml files which are located in the repository, finally recompile all my
repository? I used ant to build so it's not necessary to rebuild when
running my application. I see there's no way to stop this. It not only
slows down the running process and also copy the unwanted xml (ie.
jboss-services.xml) to build directory which ends up in ear.
Can anyone tell if it's a default feature of run application or I can
prevent this happening by just making a minor change in the configuration?
Thanks
Jason
|
|
|
|
Re: Run Application [message #76090 is a reply to message #75580] |
Thu, 09 June 2005 10:45  |
Eclipse User |
|
|
|
Originally posted by: eclipse.rizzoweb.com
Jason wrote:
> Problem seems to be solved. There's a java builder associated with each
> java project. I simply uncheck java builder hence those builds and
> copies are no longer appear again.
>
Just understand what turning off the Java Builder is really doing. By
doing so, you are disabling one of Eclipse's major features, its
incremental compiler. It will also cripple other key features of the
Java tools, like the code assist in the editor and some of the code
navigation features.
IOW, it is not usually necessary to disable the Java builder. I've
worked on several projects that had special needs when it came to
building (beyond just compiling Java code). In those cases, there were
Ant scripts to do the builds. I set up the Projects in Eclipse to do the
compilation, with the source and output directories set appropriately to
match what the Ant builds expected/used. Then I set up the Ant builds to
be easily launchable from Eclipse (you can also set it up to run
automatically along-side the Eclipse compiler [Java Builder]).
Doing that sometimes (not always) requires a little bit of extra work in
initially setting up the Project in Eclipse, but it pays off quickly in
productivity gains.
If any of this doesn't make sense or you'd like to know more, feel free
to post questions here or to the JDT group.
HTH,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.13117 seconds