You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2014/11/13 23:24:30 UTC
[3/3] buildr git commit: Prefer single quotes
Prefer single quotes
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/7eb0ea49
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/7eb0ea49
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/7eb0ea49
Branch: refs/heads/master
Commit: 7eb0ea49c5bbb3ceed7027c6a22a35af15bea440
Parents: 846fbc7
Author: Peter Donald <pe...@realityforge.org>
Authored: Fri Nov 14 09:24:02 2014 +1100
Committer: Peter Donald <pe...@realityforge.org>
Committed: Fri Nov 14 09:24:02 2014 +1100
----------------------------------------------------------------------
addon/buildr/gwt.rb | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/buildr/blob/7eb0ea49/addon/buildr/gwt.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/gwt.rb b/addon/buildr/gwt.rb
index 506706e..3e18794 100644
--- a/addon/buildr/gwt.rb
+++ b/addon/buildr/gwt.rb
@@ -44,41 +44,41 @@ module Buildr
def gwtc_main(modules, source_artifacts, output_dir, unit_cache_dir, options = {})
cp = Buildr.artifacts(self.dependencies(options[:version])).each(&:invoke).map(&:to_s) + Buildr.artifacts(source_artifacts).each(&:invoke).map(&:to_s)
- style = options[:style] || "OBFUSCATED," # "PRETTY", "DETAILED"
+ style = options[:style] || 'OBFUSCATED,' # 'PRETTY', 'DETAILED'
log_level = options[:log_level] # ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL
workers = options[:workers] || 2
args = []
if log_level
- args << "-logLevel"
+ args << '-logLevel'
args << log_level
end
- args << "-strict"
- args << "-style"
+ args << '-strict'
+ args << '-style'
args << style
- args << "-localWorkers"
+ args << '-localWorkers'
args << workers
- args << "-war"
+ args << '-war'
args << output_dir
if options[:compile_report_dir]
- args << "-compileReport"
- args << "-extra"
+ args << '-compileReport'
+ args << '-extra'
args << options[:compile_report_dir]
end
if options[:draft_compile]
- args << "-draftCompile"
+ args << '-draftCompile'
end
if options[:enable_closure_compiler].nil? || options[:enable_closure_compiler]
- args << "-XenableClosureCompiler"
+ args << '-XenableClosureCompiler'
end
args += modules
properties = options[:properties] ? options[:properties].dup : {}
- properties["gwt.persistentunitcache"] = "true"
- properties["gwt.persistentunitcachedir"] = unit_cache_dir
+ properties['gwt.persistentunitcache'] = 'true'
+ properties['gwt.persistentunitcachedir'] = unit_cache_dir
Java::Commands.java 'com.google.gwt.dev.Compiler', *(args + [{:classpath => cp, :properties => properties, :java_args => options[:java_args], :pathing_jar => false}])
end
@@ -92,10 +92,10 @@ module Buildr
cp = Buildr.artifacts(self.superdev_dependencies(options[:version])).each(&:invoke).map(&:to_s) + Buildr.artifacts(source_artifacts).each(&:invoke).map(&:to_s)
args = []
- args << "-port" << (options[:port] || 5050)
- args << "-workDir" << work_dir
+ args << '-port' << (options[:port] || 5050)
+ args << '-workDir' << work_dir
(options[:src] || []).each do |src|
- args << "-src" << src
+ args << '-src' << src
end
args << module_name
@@ -148,8 +148,8 @@ module Buildr
end
end
- desc "Run Superdev mode"
- project.task("superdev") do
+ desc 'Run Superdev mode'
+ project.task('superdev') do
work_dir = project._(:target, :gwt, :superdev)
mkdir_p work_dir
Buildr::GWT.gwt_superdev(module_name,