[Geoserver-devel] [JIRA] (GEOS-7733) Move IOUtils from gs-main to gs-platform

Torben Barsballe created an issue

GeoServer / ImprovementGEOS-7733

Move IOUtils from gs-main to gs-platform

Issue Type:

ImprovementImprovement

Assignee:

Unassigned

Created:

08/Sep/16 11:46 PM

Fix Versions:

2.10-beta

Priority:

MediumMedium

Reporter:

Torben Barsballe

IOUtils contains a bunch of usefull File and IO utilities, including a very thorough rename method. However, IOUtils is contained in the gs-main project, which has gs-platform as a dependency

FileSystemResouce (in gs-platform) is currently using the plain java File rename, leading to GEOS-7651 Open .

It would be better to have utility classes such as IOUtils as far upstream as possible (e.g. in gs-platform rather than gs-main). IOUtils currently contains a couple of methods that depend on classes in gs-main (XStreamPersister related stuff, which could be refactored out to its own utility method).

In order to mitigate API changes, we can retain the gs-main org.geoserver.data.util.IOUtils as a deprecated class for the duration of 2.10. To limit code duplication, it will extend the new IOUtils in gs-platform.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.319.1#100012-sha1:913341f)

Atlassian logo