lib/tasks/build.rb in dev-2.1.58 vs lib/tasks/build.rb in dev-2.1.59
- old
+ new
@@ -11,42 +11,39 @@
SMARTASSEMBLY_FILES=FileList.new('**/*.saproj')
class Build < Array
def update
- puts "SLN_FILES: #{SLN_FILES}" if(Environment.default.debug?)
+ #puts "SLN_FILES: #{SLN_FILES}" if(Environment.default.debug?)
update_gemspec
update_dotnet
update_sln if Environment.windows?
update_smartassembly if Environment.windows?
#update_nuget if Environment.windows?
update_wix if Environment.windows?
update_xcode if Environment.mac?
- if(Environment.default.debug?)
- puts "Build commands: #{self.to_s}"
-
- end
+ log_debug_info("Build") if defined?(DEBUG)
end
def update_gemspec
- puts "Build scanning for gemspec files" if Environment.default.debug?
+ #puts "Build scanning for gemspec files" if Environment.default.debug?
Dir.glob('*.gemspec'){|gemspec|
add_quiet("gem build #{gemspec}") if !File.exist?(Gemspec.gemfile gemspec)
}
end
def update_dotnet
- puts "Build scanning for project.json" if Environment.default.debug?
+ #puts "Build scanning for project.json" if Environment.default.debug?
if(File.exists?('project.json'))
add_quiet "dotnet build"
end
end
def update_sln
- puts "Build scanning for sln files" if Environment.default.debug?
+ #puts "Build scanning for sln files" if Environment.default.debug?
SLN_FILES.each{|sln_file|
puts " #{sln_file}" if Environment.default.debug?
build_commands = MSBuild.get_build_commands sln_file
if(!build_commands.nil?)
build_commands.each{|c|
@@ -58,11 +55,11 @@
end
}
end
def update_smartassembly
- puts "Build scanning for sa (smart assembly) files" if Environment.default.debug?
+ #puts "Build scanning for sa (smart assembly) files" if Environment.default.debug?
sa = 'C:/Program Files/Red Gate/SmartAssembly 6/SmartAssembly.com'
SMARTASSEMBLY_FILES.each{|saproj_file|
puts " #{saproj_file}" if Environment.default.debug?
if(!File.exists?(sa))
puts "warning: #{sa} does not exist, skipping build command for #{saproj_file}"
@@ -73,11 +70,11 @@
end
def update_wix
- puts "Build scanning for wxs <Product> files" if Environment.default.debug?
+ #puts "Build scanning for wxs <Product> files" if Environment.default.debug?
WXS_FILES.each{|wxs_file|
if(IO.read(wxs_file).include?('<Product'))
build_commands = Wix.get_build_commands wxs_file
if(!build_commands.nil?)
build_commands.each{|c|
@@ -85,11 +82,11 @@
}
end
end
}
- puts "Build scanning for wxs <Bundle> files" if Environment.default.debug?
+ #puts "Build scanning for wxs <Bundle> files" if Environment.default.debug?
WXS_FILES.each{|wxs_file|
if(IO.read(wxs_file).include?('<Bundle'))
build_commands = Wix.get_build_commands wxs_file
if(!build_commands.nil?)
build_commands.each{|c|
@@ -98,10 +95,10 @@
end
end
}
end
def update_xcode
- puts "Build scanning for xcodeproj folders" if Environment.default.debug?
+ #puts "Build scanning for xcodeproj folders" if Environment.default.debug?
Dir.glob('**/*.xcodeproj').each{|dir|
puts dir if Environment.default.debug?
build_commands = XCodeBuild.get_build_commands dir
if(!build_commands.nil?)
build_commands.each{|c|
\ No newline at end of file