Sha256: 84caad4b690ea4b0f3bd51cd4a48963ec1cf1c9c078e6c870f56d67071f25613
Contents?: true
Size: 775 Bytes
Versions: 1
Compression:
Stored size: 775 Bytes
Contents
require 'alpacabuildtool/tools/tool' module AlpacaBuildTool ## # MSBuild provides access to MSBuild.exe tool class MSBuild < Tool ## # Build *.sln file # # +file+:: solution file with absolute path # +debug+:: set to build with debug configuration def build(file, debug = false) config = @configuration['options'].dup config['Property'] ||= {} config['Property']['Configuration'] = debug ? 'Debug' : 'Release' call([config, file]) end private def format_option(name, value, switch) case value when Array then value = value.join(';') when Hash then value = value.map { |k, v| "#{k}=#{v}" }.join(';') end super name, value, switch end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alpacabuildtool-1.0.0 | lib/alpacabuildtool/tools/msbuild.rb |