Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0
-
Component/s: None
-
Labels:None
-
Environment:GroovyPlugin 1.0.0.20060711
-
Number of attachments :
Description
Copied from: http://www.nabble.com/Eclipse-and-%27Invalid-Package-Declaration%27-error.-tf1897916.html#a5449140
I created a app with grails0.2, imported it into eclipse3.2, have all subfolders marked as src-folders (default), but still get errors like this in eclipse:
"Invalid Package declaration in script: C:\dev\grails\inventory\grails-app\conf\ApplicationBootStrap.groovy is not in a source folder matching the package declaration: "
(Of course) my ApplicationBootStrap.groovy doesn't have a package declaration, like all other generated groovy-files it is starting with "class xyz" instantly.
My .classpath file:
<classpathentry kind="src" path="grails-app/conf"/>
Is this a bug of the groovy plugin?
There were some emails that I exchanged with someone using Grails with Eclipse and they were focused around not being able to create compile a class without a package declaration. I am able to do this.
I think to get to the root of the problem, I will create a sample Grails application and try to bring it into Eclipse so I have a common frame of reference for understanding the errors.