Issue Details (XML | Word | Printable)

Key: CASTOR-2564
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Werner Guttmann
Reporter: Martin S. Weber
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
castor

Building with maven fails if source sits in a directory with spaces

Created: 04/Nov/08 02:10 PM   Updated: 24/Jan/09 11:12 AM   Resolved: 27/Nov/08 02:29 AM
Return to search
Component/s: General
Affects Version/s: 1.3 rc1
Fix Version/s: 1.3

Time Tracking:
Not Specified

File Attachments: 1. Text File patch.c2564.20081127.txt (13 kB)

Environment: Windows XP; maven 2.0.9; JDK 1.6 u10


 Description  « Hide

When building the castor on your own under windows with the directory hierarchy including directories with spaces in their names, building fails as some java code does not get generated. The error will look like 'Unknown protocol c' (in my case sources were lying under the Desktop, full path C:\Documents and Settings\mweber\Desktop\trunk) and finding the mapping file will fail – thus the generation of the java source code from the respective schemas does not work or not work as expected, leaving you with unresolvable symbols 'FieldMapping, 'ClassMapping' et al.

A workaround for this is to put the castor source code under a directory which does not contain spaces.



Werner Guttmann added a comment - 27/Nov/08 02:15 AM

Final patch for reference ....