Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "FAQ When does PDE change a plug-in's Java build path?"

 
m
Line 3: Line 3:
 
plug-in in question. When you save the <tt>plugin.xml</tt> file, the  
 
plug-in in question. When you save the <tt>plugin.xml</tt> file, the  
 
editor will also update the Java build path: the <tt>.classpath</tt> file.
 
editor will also update the Java build path: the <tt>.classpath</tt> file.
 
 
  
 
In Eclipse 3.0, the PDE uses a special classpath entry called a
 
In Eclipse 3.0, the PDE uses a special classpath entry called a
Line 11: Line 9:
 
change.  During builds, this classpath container resolves to  the
 
change.  During builds, this classpath container resolves to  the
 
set of dependencies specified in the <tt>plugin.xml</tt> file.
 
set of dependencies specified in the <tt>plugin.xml</tt> file.
 
 
  
 
Regardless of whether classpath containers are used, it makes little  
 
Regardless of whether classpath containers are used, it makes little  
Line 19: Line 15:
 
plug-in projects.  Any changes you make there will be silently  
 
plug-in projects.  Any changes you make there will be silently  
 
overwritten the next time you save the Manifest Editor.
 
overwritten the next time you save the Manifest Editor.
 
 
 
 
  
 
== See Also: ==
 
== See Also: ==
 +
*[[FAQ_Why_doesn%26%23146%3Bt_my_plug-in_build_correctly%3F]]
 +
*[[FAQ_What_is_the_classpath_of_a_plug-in%3F]]
  
 
+
{{Template:FAQ_Tagline}}
[[FAQ_Why_doesn%26%23146%3Bt_my_plug-in_build_correctly%3F]]
+
 
+
 
+
[[FAQ_What_is_the_classpath_of_a_plug-in%3F]]
+

Revision as of 21:48, 30 May 2006

Whenever you add dependent plug-ins in the Manifest Editor, the underlying classpath has to be updated to give you access to the classes defined by the plug-in in question. When you save the plugin.xml file, the editor will also update the Java build path: the .classpath file.

In Eclipse 3.0, the PDE uses a special classpath entry called a classpath container to avoid having to directly modify the .classpath file every time your plug-in&#146;s dependencies change. During builds, this classpath container resolves to the set of dependencies specified in the plugin.xml file.

Regardless of whether classpath containers are used, it makes little sense to edit the .classpath file by hand or to make changes directly to the Java Build Path property page for plug-in projects. Any changes you make there will be silently overwritten the next time you save the Manifest Editor.

See Also:


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.

Back to the top