From 596fb953b0077a9a6a79db26c50339090ba179c5 Mon Sep 17 00:00:00 2001 From: vmassol Date: Thu, 10 Mar 2005 16:33:28 +0000 Subject: [PATCH] Added new assert:assertFileContains tag that verifies if a file contains a specific string. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@156960 13f79535-47bb-0310-9956-ffa450edef68 --- plugin/plugin.jelly | 13 ++++++++++++- plugin/project.xml | 11 ++++++++++- plugin/src/plugin-test/maven.xml | 28 ++++++++++++++++++++-------- plugin/xdocs/changes.xml | 6 +++++- 4 files changed, 47 insertions(+), 11 deletions(-) diff --git a/plugin/plugin.jelly b/plugin/plugin.jelly index cfc60ddb..ab2f6e55 100644 --- a/plugin/plugin.jelly +++ b/plugin/plugin.jelly @@ -27,7 +27,8 @@ xmlns:maven="jelly:maven" xmlns:plugin="plugin" xmlns:u="jelly:util" - xmlns:x="jelly:xml"> + xmlns:x="jelly:xml" + xmlns:assert="assert"> @@ -379,6 +380,16 @@ ${file} does not exist.${msg} + + + + + + + + ${file} does not contain string [${match}].${msg} + + diff --git a/plugin/project.xml b/plugin/project.xml index 26fade59..c87fdc7c 100644 --- a/plugin/project.xml +++ b/plugin/project.xml @@ -2,7 +2,7 @@ - + - - + + + @@ -30,11 +33,20 @@ - navigation.xml,goals.xml,properties.xml,tags.xml + navigation.xml,goals.xml,properties.xml,tags.xml - - + + + + + + + This is a test blah blah... + + + \ No newline at end of file diff --git a/plugin/xdocs/changes.xml b/plugin/xdocs/changes.xml index 57ac56e1..c1403a7a 100644 --- a/plugin/xdocs/changes.xml +++ b/plugin/xdocs/changes.xml @@ -24,7 +24,11 @@ Emmanuel Venisse - + + + Added new assert:assertFileContains tag that verifies if a + file contains a specific string. + Add plugin:generate-tags goal Mention in docs for the plugin:repository-deploy that it uses the artifact plugin