Module: RakeDotNet

Defined in:
lib/rake_dotnet.rb

Defined Under Namespace

Classes: AssemblyInfoTask, BcpCmd, Cli, FxCopCmd, FxCopTask, HarvestOutputTask, HarvestWebApplicationTask, Harvester, MsBuildCmd, MsBuildTask, NCoverConsoleCmd, NCoverReportingCmd, NCoverTask, RDNPackageTask, SevenZipCmd, SqlCmd, SvnCmd, SvnExport, SvnInfo, Versioner, XUnitConsoleCmd, XUnitTask

Constant Summary collapse

PRODUCT_ROOT =

Setting constants like this allows you to do things like ‘rake compile CONFIGURATION=Release’ to specify their values By default, we assume that this Rakefile lives in PRODUCT_ROOT/build, and that this is the working directory

ENV['PRODUCT_ROOT'] ? ENV['PRODUCT_ROOT'] : '..'
SRC_DIR =
ENV['SRC_DIR'] ? ENV['SRC_DIR'] : File.join(PRODUCT_ROOT, 'src')
TOOLS_DIR =
ENV['TOOLS_DIR'] ? ENV['TOOLS_DIR'] : find_tools_dir
CONFIGURATION =
ENV['CONFIGURATION'] ? ENV['CONFIGURATION'] : 'Debug'
MSBUILD_VERBOSITY =
ENV['MSBUILD_VERBOSITY'] ? ENV['MSBUILD_VERBOSITY'] : 'm'
OUT_DIR =
ENV['OUT_DIR'] ? ENV['OUT_DIR'] : 'out'
VERBOSE =
ENV['VERBOSE'] ? ENV['VERBOSE'] : false
Bin_out =
File.join(RakeDotNet::OUT_DIR, 'bin')
Version_txt =
'version.txt'

Class Method Summary collapse

Class Method Details

.find_tools_dirObject



61
62
63
64
65
66
67
68
69
70
# File 'lib/rake_dotnet.rb', line 61

def RakeDotNet::find_tools_dir
	shared = File.join(PRODUCT_ROOT, '..', '3rdparty')
	owned = File.join(PRODUCT_ROOT, '3rdparty')
	if File.exist?(shared)
		return shared
	end
	if File.exist?(owned)
		return owned
	end
end

.regexify(path) ⇒ Object



57
58
59
# File 'lib/rake_dotnet.rb', line 57

def RakeDotNet::regexify(path)
	path.gsub('/', '\/').gsub('.', '\.')
end