svn commit: r791380 - /maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructureSerializer.java

View: New views
1 Messages — Rating Filter:   Alert me  

svn commit: r791380 - /maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructureSerializer.java

by snicoll-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Author: snicoll
Date: Mon Jul  6 04:38:29 2009
New Revision: 791380

URL: http://svn.apache.org/viewvc?rev=791380&view=rev
Log:
MWAR-184: forcing the driver to use to avoid issues in specific classloader configurations

Modified:
    maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructureSerializer.java

Modified: maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructureSerializer.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructureSerializer.java?rev=791380&r1=791379&r2=791380&view=diff
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructureSerializer.java (original)
+++ maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructureSerializer.java Mon Jul  6 04:38:29 2009
@@ -20,6 +20,7 @@
  */
 
 import com.thoughtworks.xstream.XStream;
+import com.thoughtworks.xstream.io.xml.DomDriver;
 import org.apache.maven.model.Dependency;
 import org.codehaus.plexus.util.IOUtil;
 import org.codehaus.plexus.util.ReaderFactory;
@@ -46,7 +47,7 @@
      */
     public WebappStructureSerializer()
     {
-        this.xStream = new XStream();
+        this.xStream = new XStream(new DomDriver());
 
         // Register aliases
         xStream.alias( "webapp-structure", WebappStructure.class );