File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse clean output folder when change file

 
avihai marchiano
Ranch Hand
Posts: 342
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17621
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic