Jump to: navigation, search

Difference between revisions of "FAQ How do I turn off autobuilding of Java code?"

 
m
 
(One intermediate revision by one other user not shown)
Line 20: Line 20:
 
resource save may have a considerable impact on the responsiveness
 
resource save may have a considerable impact on the responsiveness
 
of the workbench. In these situations, autobuild  
 
of the workbench. In these situations, autobuild  
can be turned off through '''Window > Preferences > Workbench >  
+
can be turned off through '''Window > Preferences > General > Workspace >  
Perform build automatically on resource modification'''.  
+
'''Build automatically'''.  
  
  
Line 42: Line 42:
  
 
[[FAQ_How_do_I_implement_an_Eclipse_builder%3F]]
 
[[FAQ_How_do_I_implement_an_Eclipse_builder%3F]]
 +
 +
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>

Latest revision as of 13:15, 26 February 2011

JDT uses the autobuild facilities provided by the platform. If a resource changes, the platform checks the project description file (see .project in your projects). When the file contains a reference to the Java builder, the builder gets notified of the change and will then compile the Java source file and its dependents. The following project description file snippet shows that the Java builder is associated with the project:

   <buildSpec>
      <buildCommand>
         <name>org.eclipse.jdt.core.javabuilder</name>
         <arguments>
         </arguments>
      </buildCommand>
   </buildSpec>

If a workspace gets large—say, tens of thousands of files—the process of checking each project, activating all registered builders, and discovering whether anything needs to be rebuilt owing to a single resource save may have a considerable impact on the responsiveness of the workbench. In these situations, autobuild can be turned off through Window > Preferences > General > Workspace > Build automatically.


Even for smaller workspaces, turning off autobuilding may be a useful feature. For instance, when importing a large number of plug-ins from CVS, it may make sense to turn off autobuilding first. After all files are checked out, autobuilding is turned on again, and all pending builds are run in one swoop.



See Also:

FAQ_Where_can_I_find_information_about_writing_builders?


FAQ_How_do_I_implement_an_Eclipse_builder?


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.