From cf29b6508d3f7636eec51c3e3f390fb3f7aabb2e Mon Sep 17 00:00:00 2001 From: knielsen Date: Mon, 10 Mar 2003 21:30:36 +0000 Subject: [PATCH] Plugin that allows one to generate files that allows tab completion for maven goals for different shells, currently only zsh is supported git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113099 13f79535-47bb-0310-9956-ffa450edef68 --- shell/.cvsignore | 3 ++ shell/plugin.jelly | 102 +++++++++++++++++++++++++++++++++++++ shell/plugin.properties | 11 ++++ shell/project.properties | 7 +++ shell/project.xml | 32 ++++++++++++ shell/xdocs/changes.xml | 16 ++++++ shell/xdocs/goals.xml | 28 ++++++++++ shell/xdocs/index.xml | 26 ++++++++++ shell/xdocs/navigation.xml | 16 ++++++ shell/xdocs/properties.xml | 35 +++++++++++++ 10 files changed, 276 insertions(+) create mode 100644 shell/.cvsignore create mode 100644 shell/plugin.jelly create mode 100644 shell/plugin.properties create mode 100644 shell/project.properties create mode 100644 shell/project.xml create mode 100644 shell/xdocs/changes.xml create mode 100644 shell/xdocs/goals.xml create mode 100644 shell/xdocs/index.xml create mode 100644 shell/xdocs/navigation.xml create mode 100644 shell/xdocs/properties.xml diff --git a/shell/.cvsignore b/shell/.cvsignore new file mode 100644 index 00000000..e5e33942 --- /dev/null +++ b/shell/.cvsignore @@ -0,0 +1,3 @@ +target +velocity.log +maven.log diff --git a/shell/plugin.jelly b/shell/plugin.jelly new file mode 100644 index 00000000..3c04999c --- /dev/null +++ b/shell/plugin.jelly @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + '${escgoal}:${escdesc}' + + + '${escgoal}' + + + + + + + + Now start a new zsh shell + + + + + + + + + + + + diff --git a/shell/plugin.properties b/shell/plugin.properties new file mode 100644 index 00000000..a6d36248 --- /dev/null +++ b/shell/plugin.properties @@ -0,0 +1,11 @@ +# ------------------------------------------------------------------- +# P L U G I N P R O P E R I E S +# ------------------------------------------------------------------- +# Shell plugin. +# ------------------------------------------------------------------- + +# Generate Eclipse external tools mappings for the specified goals. +# This accepts two values: 'all' for all the goals, +# and 'plugins' to generate only the plugins' default goals. +# maven.shell.zsh.dir= /usr/zsh/functions +maven.shell.zsh.nodesc = true \ No newline at end of file diff --git a/shell/project.properties b/shell/project.properties new file mode 100644 index 00000000..df6f93f4 --- /dev/null +++ b/shell/project.properties @@ -0,0 +1,7 @@ +# ------------------------------------------------------------------- +# P R O J E C T P R O P E R T I E S +# ------------------------------------------------------------------- +maven.xdoc.date=left +maven.xdoc.version=${pom.currentVersion} +maven.license.licenseFile=${basedir}/../../../LICENSE.txt + diff --git a/shell/project.xml b/shell/project.xml new file mode 100644 index 00000000..707335ee --- /dev/null +++ b/shell/project.xml @@ -0,0 +1,32 @@ + + + + ${basedir}/../project.xml + 3 + maven-shell-plugin + Maven Shell Plug-in + 1.0 + A plugin to generate various files for different shells to allow tab completion for maven goals + Shell Plugin for Maven + http://jakarta.apache.org/turbine/maven/reference/plugins/shell/ + + /www/jakarta.apache.org/turbine/maven/reference/plugins/shell/ + + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-turbine-maven/src/plugins-build/shell/ + http://cvs.apache.org/viewcvs/jakarta-turbine-maven/src/plugins-build/shell/ + + + + + + Kasper Nielsen + knielsen + apache@kav.dk + + + Developer + + + + diff --git a/shell/xdocs/changes.xml b/shell/xdocs/changes.xml new file mode 100644 index 00000000..c1eb96f1 --- /dev/null +++ b/shell/xdocs/changes.xml @@ -0,0 +1,16 @@ + + + + Changes + Kasper Nielsen + + + + + + Initial release + + + + + diff --git a/shell/xdocs/goals.xml b/shell/xdocs/goals.xml new file mode 100644 index 00000000..89f45856 --- /dev/null +++ b/shell/xdocs/goals.xml @@ -0,0 +1,28 @@ + + + + + ShellScript Plugin Goals + Kasper Nielsen + + + + + + sheel + + The default goal. This goal simply executes the + shell:zsh goal for now + + + + + shell:zsh + + Generates a _maven file for the ZSH shell + + + + + + diff --git a/shell/xdocs/index.xml b/shell/xdocs/index.xml new file mode 100644 index 00000000..a4c09dba --- /dev/null +++ b/shell/xdocs/index.xml @@ -0,0 +1,26 @@ + + + + + Maven Shell Plugin + Kasper Nielsen + + + +
+

+ This plug-in provides the ability to generate shell script files + that allows for tab completion. +

+

+ For more information on the functionality provided by this plugin, + please see the Goals document. +

+

+ For more information on how to customise the functionality provided + by this plugin, please see the properties + document. +

+
+ +
diff --git a/shell/xdocs/navigation.xml b/shell/xdocs/navigation.xml new file mode 100644 index 00000000..5db52223 --- /dev/null +++ b/shell/xdocs/navigation.xml @@ -0,0 +1,16 @@ + + + + Maven Eclipse Plugin + + + + + + + + + + + + diff --git a/shell/xdocs/properties.xml b/shell/xdocs/properties.xml new file mode 100644 index 00000000..083f5668 --- /dev/null +++ b/shell/xdocs/properties.xml @@ -0,0 +1,35 @@ + + + + + Shell Properties + Kasper Nielsen + + + +
+ + + + + + + + + + + + + + +
PropertyOptional?Description
maven.shell.zsh.dirYes + Location of the Zsh + function directory. +

+ If this parameter is specified, the + shell:zsh goal will use it as the destination to copy the generated file. + Otherwise it will be put into the build dir. +

+
maven.shell.zsh.nodescYes + Do not generate descriptions for tab completion +