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

Allow @BaseScript on import or package definition

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0-beta-1
    • None
    • None

    Description

      It would be nice if @BaseScript could be used on a package/import definition, like this:

      @BaseScript(MyScript)
      import groovy.transform.BaseScript
      
      println 'ok'
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            melix Cédric Champeau
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment