[maven2] 73/87: Add resolution for the exec plugin in the bash completion.
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Fri Feb 27 13:59:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository maven2.
commit 9bf7450880feb42ecfb3b30d289c84b60a474026
Author: Ludovic Claude <ludovic.claude at laposte.net>
Date: Mon Oct 8 22:05:48 2012 +0000
Add resolution for the exec plugin in the bash completion.
---
debian/bash_completion.d/maven2 | 32 ++++++++++++++++++++++++++++++++
debian/changelog | 3 +++
2 files changed, 35 insertions(+)
diff --git a/debian/bash_completion.d/maven2 b/debian/bash_completion.d/maven2
index f8a6aa7..cf7f0a3 100644
--- a/debian/bash_completion.d/maven2
+++ b/debian/bash_completion.d/maven2
@@ -27,6 +27,7 @@ __mvnparams="-Dmaven.test.skip=true -Dsurefire.useFile=false -Dmaven.surefire.de
__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 @@ __mvnother_plugins="
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 @@ __mvninstall_install_file ()
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 @@ _mvn ()
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 ;;
diff --git a/debian/changelog b/debian/changelog
index bf6122a..68eeb12 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,9 @@ maven2 (2.2.1-13) UNRELEASED; urgency=low
* 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 <tmancill at debian.org> Fri, 28 Sep 2012 17:24:47 -0700
maven2 (2.2.1-12) unstable; urgency=low
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven2.git
More information about the pkg-java-commits
mailing list