lib/clementine/clojurescript_engine/mri.rb in clementine-0.0.2 vs lib/clementine/clojurescript_engine/mri.rb in clementine-0.0.3
- old
+ new
@@ -13,10 +13,10 @@
@options = options
@classpath = CLASSPATH
end
def compile
- @options = Clementine.options if @options.empty?
+ @options = default_opts.merge(Clementine.options) if Clementine.options
begin
cmd = %Q{#{command} #{@file} '#{convert_options(@options)}' 2>&1}
result = `#{cmd}`
rescue Exception
raise Error, "compression failed: #{result || $!}"