From f7205da1d9e9aacf07c6e8e65f68f03848f2cb04 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Sun, 19 Oct 2008 17:51:42 +0000
Subject: * move command line parsing code from inventory archive modules to
opensim server * use default inventory archive name if none is given * other
minor cleanups * this facility is not useable yet
---
OpenSim/Region/Application/OpenSimBase.cs | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Region/Application/OpenSimBase.cs')
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index eff2422..69bb4d8 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -686,7 +686,7 @@ namespace OpenSim
#endregion
///
- /// Save inventory to a file.
+ /// Save inventory to a file archive
///
///
protected void SaveInv(string[] cmdparams)
@@ -697,11 +697,19 @@ namespace OpenSim
m_log.Error("[CONSOLE]: usage is save-inv []");
return;
}
- new InventoryArchiveWriteRequest(m_sceneManager.CurrentOrFirstScene,m_commsManager).execute(cmdparams);
+
+ string firstName = cmdparams[0];
+ string lastName = cmdparams[1];
+ string invPath = cmdparams[2];
+ string savePath = (cmdparams.Length > 3 ? cmdparams[3] : DEFAULT_INV_BACKUP_FILENAME);
+
+ new InventoryArchiveWriteRequest(
+ m_sceneManager.CurrentOrFirstScene,m_commsManager).execute(
+ firstName, lastName, invPath, savePath);
}
///
- /// Load inventory from a tar.gz file.
+ /// Load inventory from an inventory file archive
///
///
protected void LoadInv(string[] cmdparams)
@@ -712,7 +720,15 @@ namespace OpenSim
m_log.Error("[CONSOLE]: usage is load-inv []");
return;
}
- new InventoryArchiveReadRequest(m_sceneManager.CurrentOrFirstScene, m_commsManager).execute(cmdparams);
+
+ string firstName = cmdparams[0];
+ string lastName = cmdparams[1];
+ string invPath = cmdparams[2];
+ string loadPath = (cmdparams.Length > 3 ? cmdparams[3] : DEFAULT_INV_BACKUP_FILENAME);
+
+ new InventoryArchiveReadRequest(
+ m_sceneManager.CurrentOrFirstScene, m_commsManager).execute(
+ firstName, lastName, invPath, loadPath);
}
///
--
cgit v1.1