Sha256: 307f5f930cfcfa65c0dd07ded5c17e705dd1dfb75adac19c916d8e5dec49052e

Contents?: true

Size: 1.44 KB

Versions: 87

Compression:

Stored size: 1.44 KB

Contents

puts __FILE__ if defined?(DEBUG)

desc 'performs build commands'
task :build do Tasks.execute_task :build;end

SLN_FILES=FileList.new('*.sln','*/*.sln','*/*/*.sln')
NUGET_FILES=FileList.new('**/*.nuspec')
WXS_FILES=FileList.new('**/*.wxs')

class Build < Array
	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
	    	}

	    	NUGET_FILES.each{|nuget_file|
	    		build_commands = Nuget.get_build_commands nuget_file
	    		if(!build_commands.nil?)
	    			build_commands.each{|c|
	    				self.add c
	    			}
	    		end
	    	}

	    	WXS_FILES.each{|wxs_file|
	    		if(IO.read(wxs_file).include?('<Product'))
	    		  build_commands = Wix.get_build_commands wxs_file
	    		  if(!build_commands.nil?)
	    			build_commands.each{|c|
	    				self.add c
	    			}
	    		  end
	    	    end
	    	}
	    	WXS_FILES.each{|wxs_file|
	    		if(IO.read(wxs_file).include?('<Bundle'))
	    		  build_commands = Wix.get_build_commands wxs_file
	    		  if(!build_commands.nil?)
	    			build_commands.each{|c|
	    				self.add c
	    			}
	    		  end
	    	    end
	    	}
	    end
	end
end

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
dev-2.0.268 lib/tasks/build.rb
dev-2.0.267 lib/tasks/build.rb
dev-2.0.266 lib/tasks/build.rb
dev-2.0.265 lib/tasks/build.rb
dev-2.0.264 lib/tasks/build.rb
dev-2.0.263 lib/tasks/build.rb
dev-2.0.262 lib/tasks/build.rb
dev-2.0.261 lib/tasks/build.rb
dev-2.0.260 lib/tasks/build.rb
dev-2.0.259 lib/tasks/build.rb
dev-2.0.258 lib/tasks/build.rb
dev-2.0.257 lib/tasks/build.rb
dev-2.0.256 lib/tasks/build.rb
dev-2.0.255 lib/tasks/build.rb
dev-2.0.254 lib/tasks/build.rb
dev-2.0.253 lib/tasks/build.rb
dev-2.0.252 lib/tasks/build.rb
dev-2.0.251 lib/tasks/build.rb
dev-2.0.250 lib/tasks/build.rb
dev-2.0.249 lib/tasks/build.rb