buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1034954 - in /buildr/trunk: CHANGELOG lib/buildr/java/ecj.rb
Date Sun, 14 Nov 2010 08:11:07 GMT
Author: donaldp
Date: Sun Nov 14 08:11:07 2010
New Revision: 1034954

URL: http://svn.apache.org/viewvc?rev=1034954&view=rev
Log:
BUILDR-547 - Ensure ECJ compiler works when there is a space in the path of dependencies

Modified:
    buildr/trunk/CHANGELOG
    buildr/trunk/lib/buildr/java/ecj.rb

Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=1034954&r1=1034953&r2=1034954&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Sun Nov 14 08:11:07 2010
@@ -12,6 +12,8 @@
           succeeds/fails.
 * Change: BUILDR-545 Add the ability to specify the description element in in
           application.xml contained within an ear.
+* Fixed:  BUILDR-547 - Ensure ECJ compiler works when there is a space in the
+          path of dependencies.
 
 1.4.3 (2010-10-15)
 * Added:  BUILDR-514 New 'run' local task. http://buildr.apache.org/more_stuff.html#run

Modified: buildr/trunk/lib/buildr/java/ecj.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/java/ecj.rb?rev=1034954&r1=1034953&r2=1034954&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/java/ecj.rb (original)
+++ buildr/trunk/lib/buildr/java/ecj.rb Sun Nov 14 08:11:07 2010
@@ -28,7 +28,7 @@ module Buildr
         cmd_args = []
         # tools.jar contains the Java compiler.
         dependencies << Java.tools_jar if Java.tools_jar
-        cmd_args << '-classpath' << dependencies.join(File::PATH_SEPARATOR) unless
dependencies.empty?
+        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?
         cmd_args << '-d' << File.expand_path(target)



Mime
View raw message