Commons Jelly
  1. Commons Jelly
  2. JELLY-229

Add list of possible completions to jelly-tags-interaction


    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Component/s: taglib.interaction
    • Labels:
    • Environment:

      Linux FC3, jdk-14.2_10, Maven-1.1-beta-3-SNAPSHOT


      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="$


      " 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 ( ), 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=, -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.

      1. JELLY-229.patch
        3 kB
        Lukas Theussl


        Lukas Theussl created issue -
        Lukas Theussl made changes -
        Field Original Value New Value
        Attachment JELLY-229.patch [ 12326414 ]
        Paul Libbrecht made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.1-beta-1 [ 10228 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee james strachan [ jstrachan ] Paul Libbrecht [ polx ]
        Paul Libbrecht made changes -
        Affects Version/s 1.0 [ 10216 ]
        Component/s taglib.interaction [ 12311002 ]
        Fix Version/s 1.1 [ 12310620 ]
        Fix Version/s 1.1-beta-1 [ 10228 ]


          • Assignee:
            Paul Libbrecht
            Lukas Theussl
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: