• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse clean output folder when change file

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,

I have a remote debugging. (The server is JBoss).
It use to work ok, but now when i change a file (just add sysout) during debug i see in "work progress" that eclipse build a lot of files that not relevant for this class, eclipse also clean output folders and copy resource all as a result of just adding system.out.

I don�t know what has been changed. i remove eclipse and workspace, but didn�t help (the same preference).
It took too much time and also in remote debug it cause to get unsynchronized message.


Thank you
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cleaning output folders when you do a build is a project option that's turned on by default. To change it, open the project Preferences dialog and select Java Compiler/Building - it's under the Output Folder options.

The reason for this is that Eclipse is attempting to guarantee that the source code in your project is, in fact, sufficient to create the desired output and that any obsolete output be removed from the system. Sometimes "obsolete" output really wasn't obsolete, and even if it was, it's wasting space.

This is one reason why when I work with code generators I prefer to use 2 source directories. One for static code and one for generated code. Your life will be much more pleasant if directories are input-only or output-only and don't attempt to be both. Generated code is both at some time in its life, but by isolating it, you can nuke and re-generate without harming the static source.
 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The option that i have there is - "scrub output folders when cleaning projects".

This is not the case and also i don�t generate sources.

The case is:
Startup JBoss server
Connect with remote debug.
Change one line in class (add space to string) and save.
in the work progress i see that eclipse build workspace and compile a lot of irrelevant projects and also clean some output folders.

This waste time and also popup message on unsynchronized (but the debug still work in most cases).

Thank you
 
reply
    Bookmark Topic Watch Topic
  • New Topic