From 1e69156909e43c9b1c457c01b7d7a03ff9e1e8c2 Mon Sep 17 00:00:00 2001 From: aheritier Date: Mon, 12 Sep 2005 15:34:35 +0000 Subject: [PATCH] new plugin:available tag to check if a minimal release of a plugin is present. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@280355 13f79535-47bb-0310-9956-ffa450edef68 --- plugin/plugin.jelly | 61 ++++++++++++++++++++++++++++++++++++++++ plugin/xdocs/changes.xml | 3 ++ plugin/xdocs/tags.xml | 22 +++++++++++++++ 3 files changed, 86 insertions(+) diff --git a/plugin/plugin.jelly b/plugin/plugin.jelly index ab2f6e55..77239bda 100644 --- a/plugin/plugin.jelly +++ b/plugin/plugin.jelly @@ -369,6 +369,67 @@ + + + + + + + + + + + + + + + + + ${installedRelease} + ${minReleaseToHave} + + ${installedRelease} + ${minReleaseToHave} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - BE CAREFUL + ======================================================================================= + Must have ${pluginToTest} plugin v${minReleaseToHave} installed to use this version of the plugin. + Try: maven plugin:download -DgroupId=maven -DartifactId=${pluginToTest} -Dversion=${minReleaseToHave} + ======================================================================================= + + + + diff --git a/plugin/xdocs/changes.xml b/plugin/xdocs/changes.xml index ae3e6e42..9e12e8e5 100644 --- a/plugin/xdocs/changes.xml +++ b/plugin/xdocs/changes.xml @@ -23,6 +23,9 @@ Emmanuel Venisse + + new plugin:available tag to check if a minimal release of a plugin is present. + Added new assert:assertFileContainstag that verifies if a file contains a specific string. diff --git a/plugin/xdocs/tags.xml b/plugin/xdocs/tags.xml index 33bc4c4c..9275eea0 100644 --- a/plugin/xdocs/tags.xml +++ b/plugin/xdocs/tags.xml @@ -31,6 +31,7 @@
  1. uninstall
  2. clearCache
  3. +
  4. available
  • assert @@ -70,6 +71,27 @@

    There are no attributes for this tag

    + +

    Fails the build if the given plugin does not exist or hasn't the minimal release number. Otherwise no effect.

    + + + + + + + + + + + + + + + + + +
    AttributeOptional?Description
    groupIdNoThe plugin's groupId
    artifactIdNoThe plugin's artifactId
    minReleaseNoThe minimum plugin's release
    +