Commit bc94585

mo_khan <mo@mokhan.ca>
2009-05-22 01:30:15
fixed the deploy task to move the final project to artifacts\deploy
1 parent 2b627fd
Changed files (2)
build
product
project.specifications
build/rakefile.rb
@@ -3,14 +3,13 @@ require 'fileutils'
 
 CLEAN.include('artifacts','**/bin','**/obj')
 
-project_test_dir  = File.join('product',"mars.rover.tests",'bin','debug')
 deploy_dir = File.join('artifacts','deploy')
 
 task :default => [:test]
 
 task :init  => :clean do
-  mkdir 'artifacts'
-  mkdir 'artifacts/deploy'
+	mkdir 'artifacts'
+	mkdir 'artifacts/deploy'
 end
 
 task :compile => :init do
@@ -25,8 +24,11 @@ task :test, :needs => [:compile] do |t,args|
 end
 
 task :deploy => :compile do
-  Dir.glob(File.join('product','**','mars.rover*.exe')).each do|file|
-    FileUtils.cp file,deploy_dir
-  end
+	files =  File.join('../product','**','mars.rover*.exe')
+	puts files
+	Dir.glob(files).each do|file|
+		puts file
+		FileUtils.cp file,deploy_dir
+	end
 end
 
product/project.specifications/Class1.cs
@@ -8,7 +8,7 @@ namespace specifications
         [Test]
         public void should_blow_up()
         {
-            Assert.AreEqual(1, 2);
+            Assert.AreEqual(1, 1);
         }
     }
 }
\ No newline at end of file