Uploaded image for project: 'Commons Jelly'
  1. Commons Jelly
  2. JELLY-229

Add list of possible completions to jelly-tags-interaction

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

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1
    • taglib.interaction
    • None
    • Linux FC3, jdk-14.2_10, Maven-1.1-beta-3-SNAPSHOT

    Description

      This is a follow-up of JELLY-175. I added a method setCompletor(list) allowing to set a list of strings that is used by jline for tab completion. Use it like: <i:ask completor="${list}" answer="a"/>. The list of tab-completion strings is added to the history list, ie new goals typed in console mode will always be tab-completed afterwards.

      Please note that I have bumped the jline dependency to the latest 0.9.5. This is not on ibiblio yet, I have created an upload request ( http://jira.codehaus.org/browse/MAVENUPLOAD-883 ), if it is not found, you will have to put the jline-0.9.5.jar into your local repo by hand.

      To test it: I have deployed a snapshot of the maven 1 console plugin:

      maven plugin:download -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://cvs.apache.org/repository/ -DgroupId=maven -DartifactId=maven-console-plugin -Dversion=1.2-SNAPSHOT

      The default value for the completor list is "clean,java:compile,jar,test,xdoc,site,quit,help", but you can define your own custom list using the maven.console.completor.goals property.

      Attachments

        Activity

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

          People

            polx Paul Libbrecht
            ltheussl Lukas Theussl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment