sparklelib: use a nice SparkleLib.Git namespace

This commit is contained in:
Hylke Bons 2012-03-01 17:02:52 +00:00
parent 023a0d4166
commit 5313ffc47d
5 changed files with 11 additions and 11 deletions

View file

@ -22,15 +22,15 @@ using System.Text.RegularExpressions;
using System.Threading;
using SparkleLib;
namespace SparkleLib {
namespace SparkleLib.Git {
// Sets up a fetcher that can get remote folders
public class SparkleFetcherGit : SparkleFetcherBase {
public class SparkleFetcher : SparkleFetcherBase {
private SparkleGit git;
public SparkleFetcherGit (string server, string remote_path, string target_folder) :
public SparkleFetcher (string server, string remote_path, string target_folder) :
base (server, remote_path, target_folder)
{
if (server.EndsWith ("/"))

View file

@ -20,7 +20,7 @@ using System.IO;
using System.Diagnostics;
using SparkleLib;
namespace SparkleLib {
namespace SparkleLib.Git {
public class SparkleGit : Process {

View file

@ -21,11 +21,11 @@ using System.IO;
using System.Text.RegularExpressions;
using SparkleLib;
namespace SparkleLib {
namespace SparkleLib.Git {
public class SparkleRepoGit : SparkleRepoBase {
public class SparkleRepo : SparkleRepoBase {
public SparkleRepoGit (string path) : base (path)
public SparkleRepo (string path) : base (path)
{
}

View file

@ -54,11 +54,11 @@ namespace SparkleShare {
// Let's use the bundled git first
SparkleGit.Path =
SparkleLib.Git.SparkleGit.Path =
Path.Combine (NSBundle.MainBundle.ResourcePath,
"git", "libexec", "git-core", "git");
SparkleGit.ExecPath =
SparkleLib.Git.SparkleGit.ExecPath =
Path.Combine (NSBundle.MainBundle.ResourcePath,
"git", "libexec", "git-core");
}

View file

@ -614,7 +614,7 @@ namespace SparkleShare {
try {
repo = (SparkleRepoBase) Activator.CreateInstance (
Type.GetType ("SparkleLib.SparkleRepo" + backend + ", SparkleLib." + backend),
Type.GetType ("SparkleLib." + backend + ".SparkleRepo, SparkleLib." + backend),
folder_path
);
@ -1015,7 +1015,7 @@ namespace SparkleShare {
try {
this.fetcher = (SparkleFetcherBase) Activator.CreateInstance (
Type.GetType ("SparkleLib.SparkleFetcher" + backend + ", SparkleLib." + backend),
Type.GetType ("SparkleLib." + backend + ".SparkleFetcher, SparkleLib." + backend),
server,
remote_folder,
tmp_folder