buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toulm...@apache.org
Subject [3/5] buildr git commit: Move ecj dependencies late in the use of the compiler
Date Fri, 12 Aug 2016 06:43:43 GMT
Move ecj dependencies late in the use of the compiler


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/bdbedc4b
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/bdbedc4b
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/bdbedc4b

Branch: refs/heads/master
Commit: bdbedc4bad997a16c7c59919551ea84d3c359547
Parents: 3d9963d
Author: Antoine Toulme <antoine@lunar-ocean.com>
Authored: Wed Aug 10 20:51:17 2016 -0700
Committer: Antoine Toulme <antoine@lunar-ocean.com>
Committed: Wed Aug 10 20:51:17 2016 -0700

----------------------------------------------------------------------
 lib/buildr/java/ecj.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/bdbedc4b/lib/buildr/java/ecj.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/java/ecj.rb b/lib/buildr/java/ecj.rb
index ac08ae5..35128fc 100644
--- a/lib/buildr/java/ecj.rb
+++ b/lib/buildr/java/ecj.rb
@@ -42,6 +42,7 @@ module Buildr #:nodoc:
         cmd_args = []
         # tools.jar contains the Java compiler.
         dependencies << Java.tools_jar if Java.tools_jar
+        dependencies << Buildr::Compiler::Ecj.dependencies
         cmd_args << '-classpath' << ('"' + dependencies.join(File::PATH_SEPARATOR)
+ '"') unless dependencies.empty?
         source_paths = sources.select { |source| File.directory?(source) }
         cmd_args << '-sourcepath' << source_paths.join(File::PATH_SEPARATOR)
unless source_paths.empty?
@@ -78,5 +79,4 @@ module Buildr #:nodoc:
   end
 end
 
-Java.classpath <<  lambda { Buildr::Compiler::Ecj.dependencies }
 Buildr::Compiler.compilers << Buildr::Compiler::Ecj


Mime
View raw message