Add list of possible completions to jelly-tags-interaction
----------------------------------------------------------

         Key: JELLY-229
         URL: http://issues.apache.org/jira/browse/JELLY-229
     Project: Jelly
        Type: New Feature

 Environment: Linux FC3, jdk-14.2_10, Maven-1.1-beta-3-SNAPSHOT
    Reporter: Lukas Theussl
 Assigned to: james strachan 


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to