Class: Build

Inherits:
Array show all
Defined in:
lib/tasks/build.rb

Instance Method Summary collapse

Methods inherited from Array

#add, #execute, #to_html

Instance Method Details

#updateObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/tasks/build.rb', line 9

def update

  changed = true
       if(changed)
    Dir.glob('*.gemspec'){|gemspec|
        add "gem build #{gemspec}" if !File.exist?(Gemspec.gemfile gemspec)
      }
      
      SLN_FILES.each{|sln_file|

        build_commands = MSBuild.get_build_commands sln_file
        if(!build_commands.nil?)
          build_commands.each{|c|
            self.add c
          }
        end
        #vs_version=MSBuild.get_vs_version(sln_file)

      #if(MSBuild.has_version?(vs_version))

      #  MSBuild.get_configurations(sln_file).each{ |configuration|

         #   MSBuild.get_platforms(sln_file).each{|platform|

        #     #Console.debug "configuration='#{configuration}', platform='#{platform}'"

          #      self.add "\"#{MSBuild.get_version(vs_version)}\" \"#{sln_file}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"#{platform}\""

         #   }

       # }

            #else

            #    puts "version #{vs_version} not found for MsBuild"

            #    puts "MSBUILD[:#{vs_version}]='PATH_TO_MSBUILD' may be used to specify msbuild path."

      #end

      }
    end
end