Module: BuildTool
- Defined in:
- lib/build-tool.rb,
lib/build-tool/errors.rb,
lib/build-tool/module.rb,
lib/build-tool/recipe.rb,
lib/build-tool/server.rb,
lib/build-tool/sshkey.rb,
lib/build-tool/feature.rb,
lib/build-tool/history.rb,
lib/build-tool/vcs/git.rb,
lib/build-tool/vcs/svn.rb,
lib/build-tool/cfg/node.rb,
lib/build-tool/commands.rb,
lib/build-tool/vcs/base.rb,
lib/build-tool/singleton.rb,
lib/build-tool/cfg/parser.rb,
lib/build-tool/repository.rb,
lib/build-tool/application.rb,
lib/build-tool/cfg/visitor.rb,
lib/build-tool/commands/gc.rb,
lib/build-tool/environment.rb,
lib/build-tool/vcs/archive.rb,
lib/build-tool/vcs/git-svn.rb,
lib/build-tool/commands/help.rb,
lib/build-tool/commands/info.rb,
lib/build-tool/configuration.rb,
lib/build-tool/vcs/mercurial.rb,
lib/build-tool/cfg/lexer_base.rb,
lib/build-tool/commands/build.rb,
lib/build-tool/commands/ctags.rb,
lib/build-tool/commands/fetch.rb,
lib/build-tool/commands/files.rb,
lib/build-tool/build-system/qt.rb,
lib/build-tool/command_actions.rb,
lib/build-tool/commands/rebase.rb,
lib/build-tool/commands/history.rb,
lib/build-tool/commands/install.rb,
lib/build-tool/commands/modules.rb,
lib/build-tool/commands/recipes.rb,
lib/build-tool/build-system/base.rb,
lib/build-tool/build-system/none.rb,
lib/build-tool/build-system/cmake.rb,
lib/build-tool/build-system/qmake.rb,
lib/build-tool/commands/configure.rb,
lib/build-tool/build-system/custom.rb,
lib/build-tool/commands/lsfeatures.rb,
lib/build-tool/build-system/kdel10n.rb,
lib/build-tool/commands/recipes/add.rb,
lib/build-tool/build-system/autoconf.rb,
lib/build-tool/commands/environments.rb,
lib/build-tool/commands/modules/info.rb,
lib/build-tool/commands/modules/list.rb,
lib/build-tool/commands/recipes/info.rb,
lib/build-tool/commands/recipes/list.rb,
lib/build-tool/commands/modules/shell.rb,
lib/build-tool/commands/recipes/install.rb,
lib/build-tool/commands/environments/set.rb,
lib/build-tool/commands/recipes/incoming.rb,
lib/build-tool/commands/environments/list.rb
Defined Under Namespace
Modules: BuildSystem, Cfg, Commands, History, ModuleActions, VCS Classes: Application, Configuration, ConfigurationError, Environment, Error, Feature, Module, Progressbar, Recipe, Repository, Server, Singleton, SshKey
Constant Summary collapse
- VERSION =
'0.5.2'
Class Method Summary collapse
Class Method Details
.main(name, args, root_directory) ⇒ Object
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/build-tool/application.rb', line 134 def BuildTool.main(name, args, root_directory) begin # Setup logging 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['MJ::Logging::LoggerAdapter'].level = :warn Logging.logger['root'].appenders = Logging.appenders.stdout( :layout => MJ::Logging::BasicLayout.new(), :level => :info) # Create the application app = BuildTool::Application.new( name, root_directory ) # Execute the application return app.main( args ) rescue Interrupt => e logger.info "User interrupt!" return 0 rescue BuildTool::Error => e logger.error e. logger.verbose e.backtrace.join("\n") return -1 rescue Exception => e logger.error e return -1 end end |