Skip to content

Commit

Permalink
Escape spaces in the build mogen path, fixes #151
Browse files Browse the repository at this point in the history
  • Loading branch information
danielctull committed Mar 16, 2013
1 parent 72c98ed commit eb5a2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mogenPath = "#{built_products_dir}/mogenerator"
def gen_and_compile(desc, mogenPath, extra_mogen_args, extra_gcc_args)
puts "*** Testing #{desc}"
ENV['MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS'] = '1'
run_or_die "#{mogenPath} --model test.xcdatamodel --output MOs --baseClass MyBaseClass #{extra_mogen_args}"
run_or_die "#{mogenPath.gsub(/ /, '\\ ')} --model test.xcdatamodel --output MOs --baseClass MyBaseClass #{extra_mogen_args}"
run_or_die 'cp HumanMO.h HumanMO.m MyProtocol.h TestProtocol.m MOs'
run_or_die "clang -o testbin test.m MyBaseClass.m MOs/*.m -I#{Dir.pwd} -framework Foundation -framework Cocoa -framework CoreData #{extra_gcc_args}"
run_or_die "xcrun momc -MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS test.xcdatamodel #{Dir.pwd}/test.mom"
Expand Down

0 comments on commit eb5a2cb

Please sign in to comment.