Class: Bozo::Compilers::WebProject2010
- Defined in:
- lib/bozo/compilers/msbuild.rb
Instance Method Summary collapse
Methods inherited from Project
#clean, #framework_version, #generate_args, #initialize, #location, #name, #project_path, #temp_project_path, #windowsize_path
Constructor Details
This class inherits a constructor from Bozo::Compilers::Project
Instance Method Details
#build(configuration) ⇒ Object
270 271 272 273 274 275 276 277 278 279 280 281 282 |
# File 'lib/bozo/compilers/msbuild.rb', line 270 def build(configuration) super(configuration) unless configuration[:websites_as_zip] log_info File.join(project_path, '**', 'Web.*.config') Dir[File.join(project_path, '**', 'Web.*.config')].each do |source_file| destination = File.join(temp_project_path, source_file.sub(project_path, '')) log_info "Copying #{source_file} to #{destination}" FileUtils.mkdir_p File.dirname(destination) FileUtils.cp source_file, destination end end end |
#populate_config(config) ⇒ Object
257 258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/bozo/compilers/msbuild.rb', line 257 def populate_config(config) config[:targets] << :package if config[:websites_as_zip] config[:properties][:packagelocation] = location + '/Site.zip' config[:properties][:packageassinglefile] = true else config[:properties][:_packagetempdir] = temp_project_path end config[:properties][:solutiondir] = windowsize_path(File.('.') + '//') end |