Author: ludovicc-guest Date: 2012-10-08 22:05:48 +0000 (Mon, 08 Oct 2012) New Revision: 16318
Modified: trunk/maven2/debian/bash_completion.d/maven2 trunk/maven2/debian/changelog Log: Add resolution for the exec plugin in the bash completion. Modified: trunk/maven2/debian/bash_completion.d/maven2 =================================================================== --- trunk/maven2/debian/bash_completion.d/maven2 2012-10-07 12:52:59 UTC (rev 16317) +++ trunk/maven2/debian/bash_completion.d/maven2 2012-10-08 22:05:48 UTC (rev 16318) @@ -27,6 +27,7 @@ __mvnpackaging="pom jar maven-plugin ejb war ear rar par" __mvnclassifiers="sources test-jar" +__mvnscopes="compile test runtime system" # phases for the default lifecycle __mvndefault_phases="validate @@ -295,6 +296,7 @@ jetty:run-war jetty:run cargo:start cargo:stop dbunit:export dbunit:operation + exec:exec exec:java exec:help hibernate3:hbm2cfgxml hibernate3:hbm2ddl hibernate3:hbm2doc hibernate3:hbm2hbmxml hibernate3:hbm2java hibernate3:schema-export hibernate3:schema-update groovy:compile groovy:console groovy:execute groovy:generateStubs groovy:generateTestStubs groovy:help groovy:providers groovy:shell @@ -544,10 +546,39 @@ esac } +__mvnexec_java () +{ + local cur="${COMP_WORDS[COMP_CWORD]}" + if [[ "${cur}" == "=" ]]; then + cur="${COMP_WORDS[COMP_CWORD-1]}=" + fi + cur="${cur#-Dexec.}" + case "${cur}" in + classpathScope=*) + __mvncomp "${__mvnscopes}" "$(__mvnprefix_equals $cur)" "${cur#*=}" + ;; + *) + local options="mainClass= args= arguments= includeProjectDependencies=false includePluginDependencies=true + classpathScope=press classpathScope=tab + cleanupDaemonThreads=false daemonThreadJoinTimeout= stopUnresponsiveDaemonThreads=" + __mvncomp "$options" "-Dexec." "${cur}" + ;; + esac +} + __mvnarchetype_generate () { local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" + case "${cur}" in + basedir=*) + COMPREPLY=( $( compgen -d -P "$(__mvnprefix_equals $cur)" -- "${cur#*=}" ) ) + ;; + *) + local options="archetypeArtifactId= archetypeCatalog= archetypeGroupId= archetypeRepository= archetypeVersion= basedir=press basedir=tab goals= interactiveMode=" + __mvncomp "$options" "-D" "${cur}" + ;; + esac __mvncomp "archetypeArtifactId= archetypeCatalog= archetypeGroupId= archetypeRepository= archetypeVersion= basedir= goals= interactiveMode=" \ "-D" "${cur}" } @@ -804,6 +835,7 @@ dependency:purge-local-repository) __mvndependency_purge_local_repository ;; dependency:analyze) __mvndependency_analyze ;; dependency:analyze-dep-mgt) __mvndependency_analyze_dep_mgt ;; + exec:java) __mvnexec_java ;; install:install-file) __mvninstall_install_file ;; release:prepare) __mvnrelease_prepare ;; scm:checkin) __mvnscm_checkin ;; Modified: trunk/maven2/debian/changelog =================================================================== --- trunk/maven2/debian/changelog 2012-10-07 12:52:59 UTC (rev 16317) +++ trunk/maven2/debian/changelog 2012-10-08 22:05:48 UTC (rev 16318) @@ -10,6 +10,9 @@ * Fix typo in maven bash completion file. (Closes: #688722) - Thank you to Oleksandr Gavenko. + [ Ludovic Claude ] + * Add resolution for the exec plugin in the bash completion. + -- tony mancill <tmanc...@debian.org> Fri, 28 Sep 2012 17:24:47 -0700 maven2 (2.2.1-12) unstable; urgency=low _______________________________________________ pkg-java-commits mailing list pkg-java-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits