mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-17 08:05:20 +01:00
Moved migration classes to com.sk89q.worldguard.migration.
This commit is contained in:
parent
5f11c5710b
commit
2a504ffbde
@ -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;
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
|
@ -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.
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user