This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 187679 - Unable to import Eclipse Groovy Project
Summary: Unable to import Eclipse Groovy Project
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 20:31 UTC by esmithbss
Modified: 2012-11-19 10:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2010-06-16 20:31:05 UTC
Groovy 1.7.1
Grails 1.3.1
NetBeans 6.9 Final (Full Product)
NetBeans 201006130001 (Full Product)
Java 1.6.1_20

When I attempt to import an Eclipse Groovy/Grails project, I receive a dialog box indicating 3 separate errors:

1) Unsupported classpath container found. It will be ignored and you may need to update the NetBeans project classpath by hand. The internal name of this container is: 'com.springsource.sts.grails.core.CLASSPATH_CONTAINER'

2) Cannot create J2SE platform for 'C:\Program Files\Java\jre6'. Default platform will be used instead.

3) The Eclipse project 'XXXXXXX' has a source root (C:\XXXXXXX\src\java) which is already owned by an existing NetBeans project 'C:\XXXXXXX'. The Eclipse project will not be imported and you should instead open the existing NetBeans project which manages the sources.


This happens regardless of the project and whether it has or has not been imported into NetBeans at any time.

I have tried this with both the 6.9 final and latest dev releases (201006130001) multiple times with the following 16 permutations:

Old Grails Project - New Eclipse Workspace - New 6.9 user folder
Old Grails Project - Old Eclipse Workspace - New 6.9 user folder
Old Grails Project - New Eclipse Workspace - Old 6.9 user folder
Old Grails Project - Old Eclipse Workspace - Old 6.9 user folder
Old Grails Project - New Eclipse Workspace - New Dev user folder
Old Grails Project - Old Eclipse Workspace - New Dev user folder
Old Grails Project - New Eclipse Workspace - Old Dev user folder
Old Grails Project - Old Eclipse Workspace - Old Dev user folder
New Grails Project - New Eclipse Workspace - New 6.9 user folder
New Grails Project - Old Eclipse Workspace - New 6.9 user folder
New Grails Project - New Eclipse Workspace - Old 6.9 user folder
New Grails Project - Old Eclipse Workspace - Old 6.9 user folder
New Grails Project - New Eclipse Workspace - New Dev user folder
New Grails Project - Old Eclipse Workspace - New Dev user folder
New Grails Project - New Eclipse Workspace - Old Dev user folder
New Grails Project - Old Eclipse Workspace - Old Dev user folder


Prerequisites:
1) Install Groovy
2) Install Grails
3) Install Eclipse Galileo
4) Install Eclipse-Groovy plugin
5) Install Eclipse-Grails plugin (Spring Toolkit Suite Grails)

To reproduce:

1) Create a new Grails project from the command line into a clean folder (not in an Eclipse workspace).
2) Launch Eclipse Galileo (3.5)
3) Import the new Grails project into your workspace.  Use a clean workspace for simplicity. **** DO NOT COPY PROJECT INTO WORKSPACE
4) Close Eclipse
5) Force a clean NetBeans environment by deleting your .netbeans folder under your user dir.
5) Launch NetBeans
6) Activate all modules
7) Import the Eclipse project using the File -> Import -> Eclipse Project option from the file menu.
8) Select the workspace you used for #3 above.
9) Select your Eclipse project.
10) Create your nbproject folder in a separate location than the source code.
11) Start the import.

After attempting to import the project, you will receive the error message.