bake-toolkit 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/bakery CHANGED
@@ -5,9 +5,10 @@ $timeStart = Time.now
5
5
  $:.unshift(File.dirname(__FILE__)+"/../lib")
6
6
  require 'bake/version'
7
7
 
8
- $:.unshift(File.dirname(__FILE__)+"/../../cxxproject_master.git/lib")
8
+ $:.unshift(File.dirname(__FILE__)+"/../../cxxproject.git/lib")
9
9
 
10
10
  require "cxxproject/version"
11
+ require 'cxxproject/utils/utils'
11
12
 
12
13
  puts "-- bakery #{Cxxproject::Version.bake}, ruby #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}, platform #{RUBY_PLATFORM} --"
13
14
 
@@ -95,15 +96,15 @@ module Cxxproject
95
96
  @toBuild.each do |bp|
96
97
  currentRun += 1
97
98
  p = File.dirname(bp.proj)
98
- cmd = (["-m #{p} -b #{bp.conf}"] + passedParams).join(" ")
99
- cmdWithNum = "* bakery #{currentRun} of #{maxRuns}: bake " + cmd + " *"
99
+ cmd = (["-m", p, "-b", bp.conf] + passedParams)
100
+ cmdWithNum = "* bakery #{currentRun} of #{maxRuns}: bake " + cmd.join(" ") + " *"
100
101
  print "\n"; cmdWithNum.length.times { print "*" }; print "\n";
101
102
  Printer.printInfo cmdWithNum
102
103
  cmdWithNum.length.times { print "*" }; print "\n";
103
104
 
104
105
  runOk = true
105
106
  begin
106
- bakeOptions = Options.new(cmd.split(" "))
107
+ bakeOptions = Options.new(cmd)
107
108
  bakeOptions.parse_options
108
109
  tocxx = ToCxx.new(bakeOptions)
109
110
  if tocxx.doit()
@@ -111,7 +112,8 @@ module Cxxproject
111
112
  else
112
113
  runOk = false
113
114
  end
114
- rescue
115
+ rescue Exception => e
116
+ puts e.message
115
117
  runOk = false
116
118
  end
117
119
 
data/lib/bake/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Cxxproject
2
2
  class Version
3
3
  def self.bake
4
- "1.0.13"
4
+ "1.0.14"
5
5
  end
6
6
  end
7
7
 
data/lib/option/parser.rb CHANGED
@@ -61,7 +61,7 @@ class Parser
61
61
  rescue SystemExit => e
62
62
  raise
63
63
  rescue Exception => e
64
- Printer.printError e.message
64
+ Printer.printError unless e.message.include?("Cxxproject::ExitHelperException")
65
65
  ExitHelper.exit(1)
66
66
  end
67
67
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bake-toolkit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.13
5
+ version: 1.0.14
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alexander Schaal