Sha256: aefe332c824f03f8e2027b98a36fc2bde6a5ab09035ceee8b22d30fcac50eca4
Contents?: true
Size: 1.34 KB
Versions: 5
Compression:
Stored size: 1.34 KB
Contents
#!/usr/bin/env ruby # # Created by Michael Jansen on 2009-8-31. # Copyright (c) 2009. All rights reserved. require 'pathname' require 'rubygems' require 'logging' # libs relative to the link target if File.symlink?(__FILE__) root_directory = File.dirname(File.readlink(__FILE__)) else root_directory = File.dirname(__FILE__) end root_directory = Pathname.new( root_directory ).join( '..' ) require File.expand_path( root_directory + "lib/build-tool") require 'mj/logging' # # CONFIGURE LOGGING # Logging.init :debug, :trace, :verbose, :info, :warn, :error include Logging.globally Logging.logger.root.level = :debug # Special case for the configurationParser. It is very verbose if active. Logging.logger['BuildTool::Cfg::Parser'].level = :info Logging.logger.root.appenders = Logging.appenders.stdout( :layout => MJ::Logging::BasicLayout.new(), :level => :info) # if the name we were called with is a symbolic link we have to search for our require "build-tool/application" require "build-tool/errors" begin app = BuildTool::Application.new( $0, root_directory ) rc = app.execute( ARGV ) rescue Interrupt => e logger.info "User interrupt!" rc = 0 rescue BuildTool::Error => e logger.error e.message logger.verbose e.backtrace.join("\n") rc = -1 rescue Exception => e logger.error e rc = -1 end exit rc
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
build-tool-0.1.4 | bin/build-tool |
build-tool-0.1.3 | bin/build-tool |
build-tool-0.1.2 | bin/build-tool |
build-tool-0.1.0 | bin/build-tool |
build-tool-0.1.1 | bin/build-tool |