Sha256: 944152c15144dd512270de46a89dac7d6fa3c0239e5e7e60ab515632bf4b2f98
Contents?: true
Size: 835 Bytes
Versions: 2
Compression:
Stored size: 835 Bytes
Contents
require "albacore/albacoretask" require "albacore/config/nantconfig" class NAnt TaskName = :nant include Albacore::Task include Albacore::RunCommand include Configuration::NAnt attr_reader :no_logo attr_accessor :build_file attr_array :targets attr_hash :properties def initialize super() update_attributes(nant.to_hash) end def execute result = run_command("NAnt", build_parameters) fail_with_message("NAnt failed, see the build log for more details.") unless result end def build_parameters p = [] p << "-buildfile:\"#{@build_file}\"" if @build_file p << @properties.map { |key, value| "-D:#{key}=\"#{value}\"" } if @properties p << @targets if @targets p << "-nologo" if @no_logo p end def no_logo @no_logo = true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-1.0.0 | lib/albacore/nant.rb |
albacore-1.0.0.rc.3 | lib/albacore/nant.rb |