lib/makit/mp/project_mp.rb in makit-0.0.11 vs lib/makit/mp/project_mp.rb in makit-0.0.12
- old
+ new
@@ -102,10 +102,15 @@
def setup
setup_dotnet_projects
end
+ def make
+ setup_dotnet_projects
+ make_dotnet_projects
+ end
+
def build
build_dotnet_projects
end
def test
@@ -132,21 +137,43 @@
project.packages.each { |package|
Makit::DotNet::add_package(project_filename, package)
}
end
end
- Makit::DotNet.new_solution(self.name)
+ #Makit::DotNet.new_solution(self.name)
Makit::DotNet.sln_add_projects(self.name)
else
puts " no dotnet projects found".colorize(:yellow)
end
end
+ def make_dotnet_projects
+ self.dotnet_projects.each do |project|
+ if (project.os == "windows" && !Makit::Environment.is_windows?)
+ next
+ else
+ project.commands.each do |command|
+ newest_file_timestamp = Makit::Directory::get_newest_file_timestamp(project.output)
+ #newest_file = Makit::Directory::get_newest_file_or_now(project.output)
+ command_request = Makit::RUNNER::parse_command_request(command)
+ RUNNER.cache_run(command_request, newest_file_timestamp)
+ end
+ end
+ end
+ end
+
def build_dotnet_projects
self.dotnet_projects.each do |project|
if (project.os == "windows" && !Makit::Environment.is_windows?)
next
else
+ project.commands.each do |command|
+ newest_file_timestamp = Makit::Directory::get_newest_file_timestamp(project.output)
+ #newest_file = Makit::Directory::get_newest_file_or_now(project.output)
+ command_request = Makit::RUNNER::parse_command_request(command)
+ RUNNER.cache_run(command_request, newest_file_timestamp)
+
+ end
project.build_args.each do |build_arg|
project_path = File.join(project.output, "#{project.name}.csproj")
Makit::DotNet.build(project_path, build_arg.configuration, build_arg.output)
end
project.publish_args.each do |publish_arg|