Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 45657

Summary: File>Import...>Import External Plug-ins and Fragments doesn't setup .classpath
Product: [Eclipse Project] PDE Reporter: Simon Tardell <simon>
Component: UIAssignee: Wassim Melhem <wassim.melhem>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Simon Tardell CLA 2003-10-28 07:11:31 EST
I recently did a fresh install of 3.0M4 on a new machine (RHL 9.0.93), and tried
to do
some plugin development. I imported the plugin I wanted to work on, and
then did a "File>Import...>Import External Plug-ins and Fragments" to pull
in all dependencies. I tried both binary, binary with linked contents and
source. In all cases the projects come up with basically empty .classpath:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="output" path="bin"/>
</classpath>

When I compare with earlier what was previously generated by older
releases (2.1-3.0M3) there is a whole lot missing: references to the
source folder or jars, dependencies on other plugins and the runtime
libraries.

This appears to be similar to Bug 42118 except that it appears in 3.0M4, and as
far as I understand, background builds are off (is that the first check box on
the Workbench preference page?).
Comment 1 Wassim Melhem CLA 2003-10-28 08:31:07 EST
The first checkbox on the Workbench preference page does indeed turn off all 
builds (including background building).
I'm unable to reproduce this.  Could you please specify what plug-ins you were 
importing and what JRE you were using...
Comment 2 Simon Tardell CLA 2003-10-28 08:40:14 EST
I am using Sun's JDK 1.4.2_02 on RH Linux 9.0.93 (plus a bit of Rawhide...). 

I am trying to import everything that is required by some third party plugin
which is this list:

org.apache.lucene
org.apache.xerces
org.eclipse.ant.core
org.eclipse.compare
org.eclipse.core.boot
org.eclipse.core.filebuffers
org.eclipse.core.resources
org.eclipse.core.runtime
org.eclipse.debug.core
org.eclipse.debug.ui
org.eclipse.help
org.eclipse.help.appserver
org.eclipse.jdt.core
org.eclipse.jdt.debug
org.eclipse.jdt.launching
org.eclipse.jdt.ui
org.eclipse.jface
org.eclipse.jface.text
org.eclipse.search
org.eclipse.swt
org.eclipse.swt.gtk
org.eclipse.team.core
org.eclipse.text
org.eclipse.ui
org.eclipse.ui.console
org.eclipse.ui.editors
org.eclipse.ui.views
org.eclipse.ui.workbench
org.eclipse.ui.workbench.texteditor
org.eclipse.update.core

(requires in the plugin.xml of the plugin:
  <requires>
      <import plugin="org.eclipse.core.resources"/>
      <import plugin="org.eclipse.ui"/>
      <import plugin="org.eclipse.jdt.ui"/>
      <import plugin="org.eclipse.jdt.core"/>
   </requires>
)
Comment 3 Wassim Melhem CLA 2003-10-28 08:42:15 EST
Just to make sure:  Is this happening consistently?
Comment 4 Simon Tardell CLA 2003-10-28 08:43:35 EST
Yep. Tried it three or four times already.
Comment 5 Wassim Melhem CLA 2003-10-28 08:46:57 EST
Which option in the 'Plug-ins and Fragments to import' section of the first 
page of the import wizard did you use?
1. Choose from all...
OR
2. Import plug-ins required by existing workspace plug-ins?
Comment 6 Wassim Melhem CLA 2003-10-28 08:48:36 EST
As a workaround in the meantime, you can explicitly update the classpath of 
the projects you importing by right-clicking on the plugin.xml file and 
selecting 'Update Classpath..' from the context menu.
Comment 7 Simon Tardell CLA 2003-10-28 11:12:55 EST
I've tried both methods with the same result.

Workaround works (thanks).
Comment 8 Wassim Melhem CLA 2003-12-10 14:50:32 EST

*** This bug has been marked as a duplicate of 48368 ***