Bugs: Browse | Submit New | Admin

[#6563] javac tasks fails if classpath etnries contain space character

Date:
2006-11-08 11:11
Priority:
3
Submitted By:
Gabor Kolok (gkolok)
Assigned To:
Matthieu Riou (mriou)
Category:
Raven Core
State:
Closed
Summary:
javac tasks fails if classpath etnries contain space character

Detailed description
My default Raven repository sits in my default folder which is on windows "C:\Documents and Settings\<user>".
So Raven generates classpath entries containing spaces for dependencies. javac tasks fails in that case.

I could work around the problem adding the following line to java_tasks.rb before line 69. :

classpath.collect! { |path| path.include?(' ') ? '"' + path + '"' : path }

I did not tested on other platforms.

versions:

jdk 1.4.2
ruby 1.8.4 (2005-12-24) [i386-mswin32]
gem 0.9.0
rake 0.7.1
raven unknown

Add A Comment: Notepad

Please login


Followup

Message
Date: 2006-11-08 15:14
Sender: Matthieu Riou

Another good fix! The " trick also works on Linux so I'm
going to add this into the trunk as well. Thanks!

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
close_date2007-02-08 03:302007-02-08 03:30mfoemmel
category_idNone2007-02-08 03:22mfoemmel
close_date2007-02-08 03:222007-02-08 03:22mfoemmel
close_date2007-02-08 03:132007-02-08 03:13mfoemmel
artifact_group_idNone2007-02-08 03:13mfoemmel
close_date2006-11-08 15:142006-11-08 15:14mriou
status_idOpen2006-11-08 15:14mriou
assigned_tonone2006-11-08 11:11gkolok