You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2012/09/28 07:57:53 UTC

svn commit: r1391312 - /maven/plugins/trunk/maven-war-plugin/src/site/apt/examples/adding-filtering-webresources.apt.vm

Author: dennisl
Date: Fri Sep 28 05:57:52 2012
New Revision: 1391312

URL: http://svn.apache.org/viewvc?rev=1391312&view=rev
Log:
[MWAR-164] Support for specifying which encoding to use when filtering resources

- Add more documentation.

Modified:
    maven/plugins/trunk/maven-war-plugin/src/site/apt/examples/adding-filtering-webresources.apt.vm

Modified: maven/plugins/trunk/maven-war-plugin/src/site/apt/examples/adding-filtering-webresources.apt.vm
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-war-plugin/src/site/apt/examples/adding-filtering-webresources.apt.vm?rev=1391312&r1=1391311&r2=1391312&view=diff
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/site/apt/examples/adding-filtering-webresources.apt.vm (original)
+++ maven/plugins/trunk/maven-war-plugin/src/site/apt/examples/adding-filtering-webresources.apt.vm Fri Sep 28 05:57:52 2012
@@ -2,8 +2,9 @@
  Adding and Filtering External Web Resources
  ------
  Pete Marvin King
+ Dennis Lundberg
  ------
- 2012-09-25
+ 2012-09-28
  ------
 
 ~~ Licensed to the Apache Software Foundation (ASF) under one
@@ -341,6 +342,14 @@ documentedproject-1.0-SNAPSHOT.war
 </another_ioc_container>
 +----------+
 
+  <<Note:>> In versions 2.2 and earlier of this plugin the platform encoding was
+  used when filtering resources. Depending on what that encoding was you could
+  end up with scrambled characters after filtering. Starting with version 2.3
+  this plugin respects the property <<<project.build.sourceEncoding>>> when
+  filtering resources. One notable exception to this is that <<<.xml>>> files
+  are filtered using the encoding specified inside the xml-file itself.
+
+
 **Overriding the default destination directory
 
  By default web resources are copied to the root of the WAR, as shown in the previous example.