Permalink
Browse files

removed rakefile

  • Loading branch information...
1 parent 35d07c0 commit 120a4ada2c7167f5f6d66b17e165aeef5cf08a8f @prabirshrestha prabirshrestha committed Apr 12, 2012
Showing with 4 additions and 2,667 deletions.
  1. +4 −4 NOTICE.txt
  2. +0 −19 build/albacore/EULA.txt
  3. +0 −1 build/albacore/VERSION
  4. +0 −9 build/albacore/albacore.rb
  5. +0 −50 build/albacore/albacore/albacoretask.rb
  6. +0 −58 build/albacore/albacore/aspnetcompiler.rb
  7. +0 −140 build/albacore/albacore/assemblyinfo.rb
  8. +0 −18 build/albacore/albacore/assemblyinfolanguages/csharpengine.rb
  9. +0 −18 build/albacore/albacore/assemblyinfolanguages/vbnetengine.rb
  10. +0 −29 build/albacore/albacore/config/aspnetcompilerconfig.rb
  11. +0 −13 build/albacore/albacore/config/assemblyinfoconfig.rb
  12. +0 −22 build/albacore/albacore/config/config.rb
  13. +0 −28 build/albacore/albacore/config/cscconfig.rb
  14. +0 −23 build/albacore/albacore/config/docuconfig.rb
  15. +0 −15 build/albacore/albacore/config/execconfig.rb
  16. +0 −15 build/albacore/albacore/config/fluentmigratorrunnerconfig.rb
  17. +0 −29 build/albacore/albacore/config/msbuildconfig.rb
  18. +0 −15 build/albacore/albacore/config/mspectestrunnerconfig.rb
  19. +0 −15 build/albacore/albacore/config/nantconfig.rb
  20. +0 −15 build/albacore/albacore/config/nchurnconfig.rb
  21. +0 −15 build/albacore/albacore/config/ncoverconsoleconfig.rb
  22. +0 −15 build/albacore/albacore/config/ncoverreportconfig.rb
  23. +0 −15 build/albacore/albacore/config/ndependconfig.rb
  24. +0 −21 build/albacore/albacore/config/netversion.rb
  25. +0 −19 build/albacore/albacore/config/nugetpackconfig.rb
  26. +0 −14 build/albacore/albacore/config/nunittestrunnerconfig.rb
  27. +0 −24 build/albacore/albacore/config/specflowreportconfig.rb
  28. +0 −15 build/albacore/albacore/config/sqlcmdconfig.rb
  29. +0 −15 build/albacore/albacore/config/unzipconfig.rb
  30. +0 −15 build/albacore/albacore/config/xbuildconfig.rb
  31. +0 −15 build/albacore/albacore/config/xunittestrunnerconfig.rb
  32. +0 −15 build/albacore/albacore/config/zipdirectoryconfig.rb
  33. +0 −62 build/albacore/albacore/csc.rb
  34. +0 −41 build/albacore/albacore/docu.rb
  35. +0 −18 build/albacore/albacore/exec.rb
  36. +0 −46 build/albacore/albacore/fluentmigratorrunner.rb
  37. +0 −54 build/albacore/albacore/msbuild.rb
  38. +0 −50 build/albacore/albacore/mspectestrunner.rb
  39. +0 −38 build/albacore/albacore/nant.rb
  40. +0 −74 build/albacore/albacore/nchurn.rb
  41. +0 −68 build/albacore/albacore/ncoverconsole.rb
  42. +0 −62 build/albacore/albacore/ncoverreport.rb
  43. +0 −10 build/albacore/albacore/ncoverreports/assemblyfilter.rb
  44. +0 −10 build/albacore/albacore/ncoverreports/branchcoverage.rb
  45. +0 −9 build/albacore/albacore/ncoverreports/classfilter.rb
  46. +0 −25 build/albacore/albacore/ncoverreports/codecoveragebase.rb
  47. +0 −23 build/albacore/albacore/ncoverreports/cyclomaticcomplexity.rb
  48. +0 −9 build/albacore/albacore/ncoverreports/documentfilter.rb
  49. +0 −13 build/albacore/albacore/ncoverreports/fullcoveragereport.rb
  50. +0 −10 build/albacore/albacore/ncoverreports/methodcoverage.rb
  51. +0 −9 build/albacore/albacore/ncoverreports/methodfilter.rb
  52. +0 −9 build/albacore/albacore/ncoverreports/namespacefilter.rb
  53. +0 −26 build/albacore/albacore/ncoverreports/reportfilterbase.rb
  54. +0 −18 build/albacore/albacore/ncoverreports/summaryreport.rb
  55. +0 −9 build/albacore/albacore/ncoverreports/symbolcoverage.rb
  56. +0 −33 build/albacore/albacore/ndepend.rb
  57. +0 −41 build/albacore/albacore/nugetpack.rb
  58. +0 −41 build/albacore/albacore/nunittestrunner.rb
  59. +0 −108 build/albacore/albacore/nuspec.rb
  60. +0 −98 build/albacore/albacore/output.rb
  61. +0 −47 build/albacore/albacore/plink.rb
  62. +0 −62 build/albacore/albacore/specflowreport.rb
  63. +0 −78 build/albacore/albacore/sqlcmd.rb
  64. +0 −33 build/albacore/albacore/support/attrmethods.rb
  65. +0 −30 build/albacore/albacore/support/createtask.rb
  66. +0 −15 build/albacore/albacore/support/failure.rb
  67. +0 −38 build/albacore/albacore/support/logging.rb
  68. +0 −13 build/albacore/albacore/support/openstruct.rb
  69. +0 −45 build/albacore/albacore/support/runcommand.rb
  70. +0 −23 build/albacore/albacore/support/supportlinux.rb
  71. +0 −13 build/albacore/albacore/support/updateattributes.rb
  72. +0 −18 build/albacore/albacore/support/yamlconfig.rb
  73. +0 −28 build/albacore/albacore/unzip.rb
  74. +0 −54 build/albacore/albacore/xbuild.rb
  75. +0 −52 build/albacore/albacore/xunittestrunner.rb
  76. +0 −105 build/albacore/albacore/zipdirectory.rb
  77. +0 −33 build/install_albacore_dependencies.rb
  78. +0 −232 rakefile.rb
View
@@ -17,11 +17,11 @@ packages. Please refer to the specific files and/or packages for more
detailed information about the authors, copyright notices, and licenses.
-Albacore
+njake
-----------------
-Website: http://albacorebuild.net
-Copyright: Copyright (c) 2010 Derick Bailey. All Rights Reserved.
-License: MIT License
+Website: https://github.com/prabirshrestha/njake
+Copyright: N/A
+License: Apache 2.0 License
JSON.cs
View
@@ -1,19 +0,0 @@
-Copyright (c) 2010 Derick Bailey. All Rights Reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
View
@@ -1 +0,0 @@
-v0.2.4-0-g5dc498e
@@ -1,9 +0,0 @@
-albacore_root = File.expand_path(File.dirname(__FILE__))
-$: << albacore_root
-$: << File.join(albacore_root, "albacore")
-$: << File.join(albacore_root, "albacore", 'support')
-$: << File.join(albacore_root, "albacore", 'config')
-
-IS_IRONRUBY = (defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby")
-
-Dir.glob(File.join(albacore_root, 'albacore/*.rb')).each {|f| require f }
@@ -1,50 +0,0 @@
-require 'albacore/support/attrmethods'
-require 'albacore/support/failure'
-require 'albacore/support/logging'
-require 'albacore/support/yamlconfig'
-require 'albacore/support/runcommand'
-require 'albacore/support/updateattributes'
-require 'albacore/support/createtask'
-require 'albacore/config/config'
-
-module Albacore
- module Task
- include Failure
- include Logging
- include YAMLConfig
- include UpdateAttributes
-
- def self.included(mod)
- mod.extend AttrMethods
- self.create_rake_task mod
- self.include_config mod, caller[0]
- end
-
- def self.include_config(mod, calledby)
- dir = clean_dirname(calledby)
- configfile = File.expand_path(File.join(dir, "config", "#{mod.name.downcase}config.rb"))
- require configfile if File.exist?(configfile)
- end
-
- def self.clean_dirname(file)
- last = file.rindex "/"
- file[0..last]
- end
-
- def self.create_rake_task(mod)
- if mod.class == Class
- tasknames = Array.new
-
- if mod.const_defined?("TaskName")
- tasknames << eval("#{mod}::TaskName")
- else
- tasknames << mod.name.downcase
- end
-
- tasknames.flatten.each do |taskname|
- Albacore.create_task taskname, mod
- end
- end
- end
- end
-end
@@ -1,58 +0,0 @@
-require 'albacore/albacoretask'
-require 'albacore/config/aspnetcompilerconfig'
-require 'albacore/support/supportlinux'
-
-class AspNetCompiler
- include Albacore::Task
- include Albacore::RunCommand
- include Configuration::AspNetCompiler
- include SupportsLinuxEnvironment
-
- # http://msdn.microsoft.com/en-us/library/ms164291.aspx
-
- attr_accessor :clean, # Optional Boolean parameter. If this parameter is true, the precompiled application will be built clean. Any previously compiled components will be recompiled. The default value is false. This parameter corresponds to the -c switch on aspnet_compiler.exe.
- #:allow_partially_trusted_callers, # Optional Boolean parameter. If this parameter is true, the strong-name assembly will allow partially trusted callers.
- :debug, # Optional Boolean parameter. If this parameter is true, debug information (.PDB file) is emitted during compilation. The default value is false. This parameter corresponds to the -d switch on aspnet_compiler.exe.
- :delay_sign, # Optional Boolean parameter. If this parameter is true, the assembly is not fully signed when created.
- :fixed_names, # Optional Boolean parameter. If this parameter is true, the compiled assemblies will be given fixed names.
- :force, # Optional Boolean parameter. If this parameter is true, the task will overwrite the target directory if it already exists. Existing contents are lost. The default value is false. This parameter corresponds to the -f switch on aspnet_compiler.exe.
- #:key_container, # Optional String parameter. Specifies a strong name key container.
- #:key_file, # Optional String parameter. Specifies the physical path to the strong name key file..
- #:metabase_path, # Optional String parameter. Specifies the full IIS metabase path of the application. This parameter cannot be combined with the VirtualPath or PhysicalPath parameters. This parameter corresponds to the -m switch on aspnet_compiler.exe.
- :physical_path, # Optional String parameter. Specifies the physical path of the application to be compiled. If this parameter is missing, the IIS metabase is used to locate the application. This parameter corresponds to the -p switch on aspnet_compiler.exe.
- #:target_framework_moniker, # Optional String parameter. Specifies the TargetFrameworkMoniker indicating which .NET Framework version of aspnet_compiler.exe should be used. Only accepts .NET Framework monikers.
- :target_path, # Optional String parameter. Specifies the physical path to which the application is compiled. If not specified, the application is precompiled in-place.
- :updateable, # Optional Boolean parameter. If this parameter is true, the precompiled application will be updateable. The default value is false. This parameter corresponds to the -u switch on aspnet_compiler.exe.
- :virtual_path # Optional String parameter. The virtual path of the application to be compiled. If PhysicalPath specified, the physical path is used to locate the application. Otherwise, the IIS metabase is used, and the application is assumed to be in the default site. This parameter corresponds to the -v switch on aspnet_compiler.exe.
-
- def initialize
- @clean = false
- @debug = false
- @delay_sign = false
- @fixed_names = false
- @force = false
- @updateable = false
- @virtual_path = '/'
- super()
- update_attributes aspnetcompiler.to_hash
- end
-
- def execute
- params = []
- params << "-v #{@virtual_path}" unless @virtual_path.nil?
- params << "-p #{format_path(@physical_path)}" unless @physical_path.nil?
- params << "-c" if @clean
- params << "-delaysign" if @delay_sign
- params << "-fixednames" if @fixed_names
- params << "-d" if @debug
- params << "-u" if @updateable
- params << "-f" if @force
- params << format_path(@target_path) unless @target_path.nil?
-
- result = run_command "AspNetCompiler", params
-
- failure_message = 'AspNetCompiler Failed. See Build Log For Detail'
- fail_with_message failure_message if !result
- end
-
-end
@@ -1,140 +0,0 @@
-require 'albacore/albacoretask'
-require 'albacore/assemblyinfolanguages/csharpengine'
-require 'albacore/assemblyinfolanguages/vbnetengine'
-
-class AssemblyInfo
- include Albacore::Task
-
- attr_accessor :input_file, :output_file
- attr_accessor :version, :title, :description, :custom_attributes
- attr_accessor :copyright, :com_visible, :com_guid, :company_name, :product_name
- attr_accessor :file_version, :trademark, :lang_engine, :custom_data
-
- attr_array :namespaces
- attr_hash :custom_attributes
- attr_array :custom_data
-
- def initialize
- @namespaces = []
- super()
- update_attributes Albacore.configuration.assemblyinfo.to_hash
- end
-
- def use(file)
- @input_file = @output_file = file
- end
-
- def execute
- @lang_engine = CSharpEngine.new unless check_lang_engine
- write_assemblyinfo @output_file, @input_file
- end
-
- def write_assemblyinfo(assemblyinfo_file, input_file)
- valid = check_output_file assemblyinfo_file
- return if !valid
-
- input_data = read_input_file input_file
- asm_data = build_assembly_info_data input_data
-
- @logger.info "Generating Assembly Info File At: " + File.expand_path(assemblyinfo_file)
- File.open(assemblyinfo_file, 'w') do |f|
- asm_data.each do |line|
- f.puts line
- end
- end
- end
-
- def read_input_file(file)
- data = []
- return data if file.nil?
-
- File.open(file, 'r') do |file|
- file.each_line do |line|
- data << line.strip
- end
- end
-
- data
- end
-
- def check_output_file(file)
- return true if file
- fail_with_message 'output_file cannot be nil'
- return false
- end
-
- def check_lang_engine
- return !@lang_engine.nil?
- end
-
- def build_assembly_info_data(data)
- if data.empty?
- data = build_using_statements
- end
-
- build_attribute(data, "AssemblyTitle", @title) if @title != nil
- build_attribute(data, "AssemblyDescription", @description) if @description != nil
- build_attribute(data, "AssemblyCompany", @company_name) if @company_name != nil
- build_attribute(data, "AssemblyProduct", @product_name) if @product_name != nil
-
- build_attribute(data, "AssemblyCopyright", @copyright) if @copyright != nil
- build_attribute(data, "AssemblyTrademark", @trademark) if @trademark != nil
-
- build_attribute(data, "ComVisible", @com_visible) if @com_visible != nil
- build_attribute(data, "Guid", @com_guid) if @com_guid != nil
-
- build_attribute(data, "AssemblyVersion", @version) if @version != nil
- build_attribute(data, "AssemblyFileVersion", @file_version) if @file_version != nil
-
- data << ""
- if @custom_attributes != nil
- attributes = build_custom_attributes()
- data += attributes
- data << ""
- end
-
- if @custom_data != nil
- @custom_data.each do |cdata|
- data << cdata unless data.include? cdata
- end
- end
-
- data
- end
-
- def build_attribute(data, attr_name, attr_data)
- attr_value = @lang_engine.build_attribute(attr_name, attr_data)
- attr_re = @lang_engine.build_attribute_re(attr_name)
- result = nil
- @logger.debug "Build Assembly Info Attribute: " + attr_value
- data.each do |line|
- break unless result.nil?
- result = line.sub! attr_re, attr_value
- end
- data << attr_value if result.nil?
- end
-
- def build_using_statements
- @namespaces = [] if @namespaces.nil?
-
- @namespaces << "System.Reflection"
- @namespaces << "System.Runtime.InteropServices"
- @namespaces.uniq!
-
- ns = []
- @namespaces.each do |n|
- ns << @lang_engine.build_using_statement(n)
- end
-
- ns
- end
-
- def build_custom_attributes()
- attributes = []
- @custom_attributes.each do |key, value|
- attributes << @lang_engine.build_attribute(key, value)
- end
- attributes
- end
-
-end
@@ -1,18 +0,0 @@
-class CSharpEngine
-def build_attribute_re(attr_name)
- /^\[assembly: #{attr_name}(.+)/
- end
-
- def build_attribute(attr_name, attr_data)
- attribute = "[assembly: #{attr_name}("
- attribute << "#{attr_data.inspect}" if attr_data != nil
- attribute << ")]"
-
- attribute
- end
-
- def build_using_statement(namespace)
- "using #{namespace};"
- end
-
-end
@@ -1,18 +0,0 @@
-class VbNetEngine
- def build_attribute_re(attr_name)
- /^\<assembly: #{attr_name}(.+)/
- end
-
- def build_attribute(attr_name, attr_data)
- attribute = "<assembly: #{attr_name}("
- attribute << "#{attr_data.inspect}" if attr_data != nil
- attribute << ")>"
-
- attribute
- end
-
- def build_using_statement(namespace)
- "Imports #{namespace}"
- end
-
-end
@@ -1,29 +0,0 @@
-require 'ostruct'
-require 'albacore/config/netversion'
-require 'albacore/support/openstruct'
-
-module Configuration
- module AspNetCompiler
- include Configuration::NetVersion
- include Albacore::Configuration
-
- def self.aspnetcompilerconfig
- @config ||= OpenStruct.new.extend(OpenStructToHash).extend(AspNetCompiler)
- end
-
- def aspnetcompiler
- @config ||= AspNetCompiler.aspnetcompilerconfig
- yield(@config) if block_given?
- @config
- end
-
- def self.included(mod)
- self.aspnetcompilerconfig.use :net40
- end
-
- def use(netversion)
- netversion = :net20 if netversion == :net35 # since .net 3.5 doesn't have aspnet_compiler use .net 2.0
- self.command = File.join(get_net_version(netversion), "aspnet_compiler.exe")
- end
- end
-end
@@ -1,13 +0,0 @@
-require 'ostruct'
-require 'albacore/support/openstruct'
-
-module Configuration
- module AssemblyInfo
- include Albacore::Configuration
- def assemblyinfo
- @asmconfig ||= OpenStruct.new.extend(OpenStructToHash)
- yield(@asmconfig) if block_given?
- @asmconfig
- end
- end
-end
Oops, something went wrong.

0 comments on commit 120a4ad

Please sign in to comment.