From 1fc2ebc7f47eec249b02ec5bd4e782a952d681ee Mon Sep 17 00:00:00 2001 From: Emmanuel Venisse Date: Mon, 23 May 2005 13:21:08 +0000 Subject: [PATCH] Ignore pom.xml.backup and release.properties files git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@177975 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/plugin/release/PrepareReleaseMojo.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugin/release/PrepareReleaseMojo.java b/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugin/release/PrepareReleaseMojo.java index 6c39286d74..a17bec784b 100644 --- a/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugin/release/PrepareReleaseMojo.java +++ b/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugin/release/PrepareReleaseMojo.java @@ -110,6 +110,16 @@ public class PrepareReleaseMojo throw new MojoExecutionException( "An error is occurred in the status process.", e ); } + for ( Iterator i = changedFiles.iterator(); i.hasNext(); ) + { + ScmFile f = (ScmFile) i.next(); + if ( f.getPath().equals( "pom.xml.backup" ) || + f.getPath().equals( "release.properties" ) ) + { + i.remove(); + } + } + if ( !changedFiles.isEmpty() ) { StringBuffer message = new StringBuffer();