Skip to content

Commit

Permalink
re-integrated the Moofile source and specs
Browse files Browse the repository at this point in the history
  • Loading branch information
remi committed Feb 14, 2011
1 parent 85a6545 commit 87b04bc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
Expand Up @@ -5,7 +5,7 @@
using MooGet;
using NUnit.Framework;

namespace MooGet.Specs {
namespace MooGet.Specs.Core {

[TestFixture]
public class BuildingSimpleProjectsSpec : MooGetSpec {
Expand Down
Expand Up @@ -4,7 +4,7 @@
using MooGet;
using NUnit.Framework;

namespace MooGet.Specs {
namespace MooGet.Specs.Core {

[TestFixture]
public class MoofileDependencySpec : MooGetSpec {
Expand Down
Expand Up @@ -4,7 +4,7 @@
using MooGet;
using NUnit.Framework;

namespace MooGet.Specs {
namespace MooGet.Specs.Core {

[TestFixture]
public class MoofileParsingSpec : MooGetSpec {
Expand Down
Expand Up @@ -3,6 +3,7 @@

namespace MooGet.Commands {

/// <summary>moo build</summary>
public class BuildCommand {

[Command(Name = "build", Description = "Compiles the current project (using Moofile)")]
Expand Down
File renamed without changes.
File renamed without changes.
Expand Up @@ -100,7 +100,7 @@ public partial class Moofile {
var localPackageReferences = new List<IPackage>();

foreach (var nupkg in nupkgReferences) {
var package = Moo.Dir.Install(nupkg) as LocalPackage;
var package = Moo.Dir.Push(nupkg) as IPackage;
response.Line("Installed {0}", package);
localPackageReferences.Add(package);
}
Expand All @@ -110,7 +110,7 @@ public partial class Moofile {

// add -r references for LocalPackage libraries
foreach (var package in localPackageReferences)
foreach (var dll in package.Libraries)
foreach (var dll in (package as MooDirPackage).Libraries)
command += " -r:" + System.IO.Path.GetFullPath(dll);

response.Line(command);
Expand All @@ -123,7 +123,7 @@ public partial class Moofile {
File.Copy(dll, copyTo);
});
foreach (var package in localPackageReferences)
foreach (var dll in package.Libraries) {
foreach (var dll in (package as MooDirPackage).Libraries) {
var dllPath = System.IO.Path.GetFullPath(dll);
var copyTo = System.IO.Path.Combine(outputDir, System.IO.Path.GetFileName(dllPath));
response.Line("cp {0} {1}", dllPath, copyTo);
Expand Down

0 comments on commit 87b04bc

Please sign in to comment.