Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1430

Invalid Package declaration: abc.groovy is not in a source folder matching the package declaration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • None
    • None
    • GroovyPlugin 1.0.0.20060711

    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?

      Attachments

        1. patch-JIRA-GROOVY-1430.txt
          1 kB
          James E. Ervin

        Activity

          People

            jshickey Scott Hickey
            tomla Thomas Latka
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: