Skip to content

Commit

Permalink
[GEOS-6075] Leverage XStream ability to ignore unknown elements
Browse files Browse the repository at this point in the history
  • Loading branch information
aaime committed Feb 26, 2014
1 parent b71dfd4 commit 5ec2759
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ protected void init(XStream xs) {
// Default implementations
initImplementationDefaults(xs);

// ignore unkonwn fields, this should help using data dirs that has new config elements
// with older versions of GeoServer
xs.ignoreUnknownElements();

// Aliases
xs.alias("global", GeoServerInfo.class);
xs.alias("settings", SettingsInfo.class);
Expand Down
2 changes: 1 addition & 1 deletion src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.3</version>
<version>1.4.7</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
Expand Down

0 comments on commit 5ec2759

Please sign in to comment.