Author: djspiewak
Date: Tue Jun 23 00:02:18 2009
New Revision: 787463

URL: http://svn.apache.org/viewvc?rev=787463&view=rev
Log:
Separators are nice to have

Modified:
    buildr/trunk/lib/buildr/groovy/shell.rb
    buildr/trunk/lib/buildr/scala/shell.rb

Modified: buildr/trunk/lib/buildr/groovy/shell.rb
URL: 
http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/groovy/shell.rb?rev=787463&r1=787462&r2=787463&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/groovy/shell.rb (original)
+++ buildr/trunk/lib/buildr/groovy/shell.rb Tue Jun 23 00:02:18 2009
@@ -18,7 +18,8 @@
       def launch
         # TODO  make this more generic!!
         
-        cp = project.compile.dependencies.join(File::PATH_SEPARATOR) + 
project.path_to(:target, :classes)
+        cp = project.compile.dependencies.join(File::PATH_SEPARATOR) + 
+          File::PATH_SEPARATOR + project.path_to(:target, :classes)
         
         cmd_args = " -classpath '#{cp}'"
         

Modified: buildr/trunk/lib/buildr/scala/shell.rb
URL: 
http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/scala/shell.rb?rev=787463&r1=787462&r2=787463&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/scala/shell.rb (original)
+++ buildr/trunk/lib/buildr/scala/shell.rb Tue Jun 23 00:02:18 2009
@@ -19,12 +19,13 @@
         Scalac.scala_home or fail 'Are we forgetting something? SCALA_HOME not 
set.'
         
         cp = (project.compile.dependencies + 
Scalac.dependencies).join(File::PATH_SEPARATOR) +
-          project.path_to(:target, :classes)
+          File::PATH_SEPARATOR + project.path_to(:target, :classes)
         
         cmd_args = " -Denv.classpath='#{cp}'"
         cmd_args += ' -classpath'
         cmd_args += " '#{cp}'"
         
+        trace "scala #{cmd_args}"
         system(File.expand_path('bin/scala', Scalac.scala_home) + cmd_args)
       end
     end


Reply via email to