Sha256: 5a135a73cf437eda236b81c45cc6250eafdf421468a76ef25d7979f91373594b

Contents?: true

Size: 871 Bytes

Versions: 12

Compression:

Stored size: 871 Bytes

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')

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
	    	}
	    end
	end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dev-2.0.172 lib/tasks/build.rb
dev-2.0.171 lib/tasks/build.rb
dev-2.0.170 lib/tasks/build.rb
dev-2.0.169 lib/tasks/build.rb
dev-2.0.168 lib/tasks/build.rb
dev-2.0.167 lib/tasks/build.rb
dev-2.0.166 lib/tasks/build.rb
dev-2.0.165 lib/tasks/build.rb
dev-2.0.164 lib/tasks/build.rb
dev-2.0.163 lib/tasks/build.rb
dev-2.0.162 lib/tasks/build.rb
dev-2.0.161 lib/tasks/build.rb