From 7b2977d625d46718fe39051c778c477022153cc1 Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Thu, 12 Mar 2009 06:04:17 +0000 Subject: Move ArchiveConstants to OpenSim.Framework.Archive - move a couple constants from InventoryArchiveConstants to ArchiveConstants, now only one of these is needed - change InventoryArchiveConstants references to ArchiveConstants - remove InventoryArchive AssetInventoryServer plugin dependency on OpenSim.Region.CodeModules - trim trailing whitespace --- OpenSim/Grid/AssetInventoryServer/Plugins/InventoryArchivePlugin.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'OpenSim/Grid') diff --git a/OpenSim/Grid/AssetInventoryServer/Plugins/InventoryArchivePlugin.cs b/OpenSim/Grid/AssetInventoryServer/Plugins/InventoryArchivePlugin.cs index ceded03..cd02a64 100644 --- a/OpenSim/Grid/AssetInventoryServer/Plugins/InventoryArchivePlugin.cs +++ b/OpenSim/Grid/AssetInventoryServer/Plugins/InventoryArchivePlugin.cs @@ -35,7 +35,6 @@ using OpenMetaverse; using OpenSim.Framework; using OpenSim.Framework.Archive; using OpenSim.Framework.Servers; -using OpenSim.Region.CoreModules.Avatar.Inventory.Archiver; using log4net; namespace OpenSim.Grid.AssetInventoryServer.Plugins @@ -146,7 +145,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins MemoryStream ms = new MemoryStream(); GZipStream gzs = new GZipStream(ms, CompressionMode.Compress, true); TarArchiveWriter archive = new TarArchiveWriter(gzs); - WriteInventoryFolderToArchive(archive, rootFolder, InventoryArchiveConstants.INVENTORY_PATH); + WriteInventoryFolderToArchive(archive, rootFolder, ArchiveConstants.INVENTORY_PATH); archive.Close(); @@ -181,7 +180,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins private static void WriteInventoryFolderToArchive(TarArchiveWriter archive, InventoryFolderWithChildren folder, string path) { - path += string.Format("{0}{1}{2}/", folder.Name, InventoryArchiveConstants.INVENTORY_NODE_NAME_COMPONENT_SEPARATOR, folder.ID); + path += string.Format("{0}{1}{2}/", folder.Name, ArchiveConstants.INVENTORY_NODE_NAME_COMPONENT_SEPARATOR, folder.ID); archive.WriteDir(path); foreach (InventoryNodeBase inventoryNode in folder.Children.Values) -- cgit v1.1