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:49:55 UTC
[2/3] buildr git commit: Extract another variable to improve
readability
Extract another variable to improve readability
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/4f800dd6
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/4f800dd6
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/4f800dd6
Branch: refs/heads/master
Commit: 4f800dd61d8fad4ceb35c93f34f1e76ac4b37b9f
Parents: acb90c4
Author: Peter Donald <pe...@realityforge.org>
Authored: Fri Nov 14 09:49:04 2014 +1100
Committer: Peter Donald <pe...@realityforge.org>
Committed: Fri Nov 14 09:49:04 2014 +1100
----------------------------------------------------------------------
addon/buildr/gwt.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/buildr/blob/4f800dd6/addon/buildr/gwt.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/gwt.rb b/addon/buildr/gwt.rb
index 7bd1d28..8d01daf 100644
--- a/addon/buildr/gwt.rb
+++ b/addon/buildr/gwt.rb
@@ -123,12 +123,14 @@ module Buildr
unit_cache_dir = project._(:target, :gwt, :unit_cache_dir, output_key)
+ version = gwt_detect_version(dependencies) || Buildr::GWT.version
+
task = project.file(output_dir) do
Buildr::GWT.gwtc_main(module_names,
(dependencies + artifacts).flatten.compact,
output_dir,
unit_cache_dir,
- {:version => gwt_detect_version(dependencies)}.merge(options))
+ {:version => version}.merge(options))
end
task.enhance(dependencies)
task.enhance([project.compile])