diff options
author | Sean Dague | 2007-12-14 18:01:51 +0000 |
---|---|---|
committer | Sean Dague | 2007-12-14 18:01:51 +0000 |
commit | a5a408c444fbbb849cd4ba409638b8867616dea7 (patch) | |
tree | 78aec2109cd5927326200a04a48a3ab8daa2ec08 /OpenSim/Tools/Export/OpenSimExport.cs | |
parent | start to pull in config for OpenSim export (diff) | |
download | opensim-SC_OLD-a5a408c444fbbb849cd4ba409638b8867616dea7.zip opensim-SC_OLD-a5a408c444fbbb849cd4ba409638b8867616dea7.tar.gz opensim-SC_OLD-a5a408c444fbbb849cd4ba409638b8867616dea7.tar.bz2 opensim-SC_OLD-a5a408c444fbbb849cd4ba409638b8867616dea7.tar.xz |
pluging away, setting up storage manager
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tools/Export/OpenSimExport.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Tools/Export/OpenSimExport.cs b/OpenSim/Tools/Export/OpenSimExport.cs index cdafbdb..03eb123 100644 --- a/OpenSim/Tools/Export/OpenSimExport.cs +++ b/OpenSim/Tools/Export/OpenSimExport.cs | |||
@@ -31,6 +31,7 @@ using Nini.Config; | |||
31 | using OpenSim; | 31 | using OpenSim; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Framework.Console; | 33 | using OpenSim.Framework.Console; |
34 | using OpenSim.Region.Environment; | ||
34 | using Mono.Addins; | 35 | using Mono.Addins; |
35 | using Mono.Addins.Description; | 36 | using Mono.Addins.Description; |
36 | 37 | ||
@@ -39,10 +40,17 @@ namespace OpenSim.Tools.Export | |||
39 | public class OpenSimExport | 40 | public class OpenSimExport |
40 | { | 41 | { |
41 | private IniConfigSource config; | 42 | private IniConfigSource config; |
43 | private StorageManager sman; | ||
42 | 44 | ||
43 | public OpenSimExport(IniConfigSource config) | 45 | public OpenSimExport(IniConfigSource config) |
44 | { | 46 | { |
45 | this.config = config; | 47 | this.config = config; |
48 | IConfig startup = config.Configs["Startup"]; | ||
49 | sman = new StorageManager( | ||
50 | startup.GetString("storage_plugin", "OpenSim.DataStore.NullStorage.dll"), | ||
51 | startup.GetString("storage_connection_string","") | ||
52 | ); | ||
53 | |||
46 | } | 54 | } |
47 | 55 | ||
48 | public static void Main(string[] args) | 56 | public static void Main(string[] args) |
@@ -52,6 +60,8 @@ namespace OpenSim.Tools.Export | |||
52 | System.Console.WriteLine("This application does nothing useful yet"); | 60 | System.Console.WriteLine("This application does nothing useful yet"); |
53 | } | 61 | } |
54 | 62 | ||
63 | |||
64 | |||
55 | private static IniConfigSource InitConfig(string[] args) | 65 | private static IniConfigSource InitConfig(string[] args) |
56 | { | 66 | { |
57 | System.Console.WriteLine("Good"); | 67 | System.Console.WriteLine("Good"); |