[Arakhnę-Dev] [380] * Avoid the tag replacer plugin to replace tags in its own source code.

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 380
Author:   galland
Date:     2012-08-21 00:24:20 +0200 (Tue, 21 Aug 2012)
Log Message:
-----------
* Avoid the tag replacer plugin to replace tags in its own source code.

Modified Paths:
--------------
    trunk/tag-replacer/src/main/java/org/arakhne/maven/plugins/tagreplacer/AbstractReplaceMojo.java

Modified: trunk/tag-replacer/src/main/java/org/arakhne/maven/plugins/tagreplacer/AbstractReplaceMojo.java
===================================================================
--- trunk/tag-replacer/src/main/java/org/arakhne/maven/plugins/tagreplacer/AbstractReplaceMojo.java	2012-08-20 22:18:29 UTC (rev 379)
+++ trunk/tag-replacer/src/main/java/org/arakhne/maven/plugins/tagreplacer/AbstractReplaceMojo.java	2012-08-20 22:24:20 UTC (rev 380)
@@ -741,7 +741,8 @@
 
 		StringBuilder buffer = new StringBuilder();
 		buffer.setLength(0);
-		buffer.append("$Id: "); //$NON-NLS-1$
+		// Split the string int "$" and "Id" to avoid the plugin to replace the tag in its own source fole
+		buffer.append("$"+"Id: "); //$NON-NLS-1$
 		buffer.append(file);
 		buffer.append(' ');
 		if (replacementRevision != null) {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/