Moved migration classes to com.sk89q.worldguard.migration.

This commit is contained in:
sk89q 2012-11-13 00:51:19 -08:00
parent 5f11c5710b
commit 2a504ffbde
7 changed files with 17 additions and 8 deletions

View File

@ -32,6 +32,9 @@
import com.sk89q.worldguard.bukkit.WorldConfiguration; import com.sk89q.worldguard.bukkit.WorldConfiguration;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin; import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.domains.DefaultDomain; import com.sk89q.worldguard.domains.DefaultDomain;
import com.sk89q.worldguard.migration.AbstractDatabaseMigrator;
import com.sk89q.worldguard.migration.MigrationException;
import com.sk89q.worldguard.migration.MigratorKey;
import com.sk89q.worldguard.region.ApplicableRegionSet; import com.sk89q.worldguard.region.ApplicableRegionSet;
import com.sk89q.worldguard.region.flags.*; import com.sk89q.worldguard.region.flags.*;
import com.sk89q.worldguard.region.indices.RegionIndex; import com.sk89q.worldguard.region.indices.RegionIndex;
@ -40,9 +43,6 @@
import com.sk89q.worldguard.region.regions.ProtectedPolygonalRegion; import com.sk89q.worldguard.region.regions.ProtectedPolygonalRegion;
import com.sk89q.worldguard.region.regions.ProtectedRegion; import com.sk89q.worldguard.region.regions.ProtectedRegion;
import com.sk89q.worldguard.region.regions.ProtectedRegion.CircularInheritanceException; import com.sk89q.worldguard.region.regions.ProtectedRegion.CircularInheritanceException;
import com.sk89q.worldguard.region.stores.AbstractDatabaseMigrator;
import com.sk89q.worldguard.region.stores.MigrationException;
import com.sk89q.worldguard.region.stores.MigratorKey;
import com.sk89q.worldguard.region.stores.ProtectionDatabaseException; import com.sk89q.worldguard.region.stores.ProtectionDatabaseException;
import com.sk89q.worldguard.region.stores.RegionDBUtil; import com.sk89q.worldguard.region.stores.RegionDBUtil;

View File

@ -17,13 +17,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.sk89q.worldguard.region.stores; package com.sk89q.worldguard.migration;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import com.sk89q.worldguard.region.regions.ProtectedRegion; import com.sk89q.worldguard.region.regions.ProtectedRegion;
import com.sk89q.worldguard.region.stores.MySQLToYAMLMigrator;
import com.sk89q.worldguard.region.stores.ProtectionDatabaseException;
import com.sk89q.worldguard.region.stores.RegionStore;
public abstract class AbstractDatabaseMigrator implements DatabaseMigrator { public abstract class AbstractDatabaseMigrator implements DatabaseMigrator {

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.sk89q.worldguard.region.stores; package com.sk89q.worldguard.migration;
/** /**
* Represents a method of converting from one database to another. * Represents a method of converting from one database to another.

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.sk89q.worldguard.region.stores; package com.sk89q.worldguard.migration;
public class MigrationException extends Exception { public class MigrationException extends Exception {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.sk89q.worldguard.region.stores; package com.sk89q.worldguard.migration;
public class MigratorKey { public class MigratorKey {
public final String from; public final String from;

View File

@ -17,10 +17,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.sk89q.worldguard.region.stores; package com.sk89q.worldguard.migration;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin; import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.region.regions.ProtectedRegion; import com.sk89q.worldguard.region.regions.ProtectedRegion;
import com.sk89q.worldguard.region.stores.MySQLStore;
import com.sk89q.worldguard.region.stores.ProtectionDatabaseException;
import com.sk89q.worldguard.region.stores.RegionStore;
import com.sk89q.worldguard.region.stores.YamlStore;
import java.io.File; import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;

View File

@ -21,6 +21,8 @@
import com.sk89q.worldguard.bukkit.ConfigurationManager; import com.sk89q.worldguard.bukkit.ConfigurationManager;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin; import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.migration.AbstractDatabaseMigrator;
import com.sk89q.worldguard.migration.MigrationException;
import com.sk89q.worldguard.region.regions.ProtectedRegion; import com.sk89q.worldguard.region.regions.ProtectedRegion;
import java.io.File; import java.io.File;