Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322858

Summary: Building Java code in packages fails if pathnames have spaces
Product: [Technology] RTSC Reporter: Jon Rowlands <rowlands>
Component: CoreAssignee: Jon Rowlands <rowlands>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sascha
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: target:3.21

Description Jon Rowlands CLA 2010-08-16 21:57:51 EDT
Building a RTSC package that contains Java source code fails on Windows
if any of the following directories contain spaces:
 - the JDK home
 - the current repository
 - package path repositories

The JDK and current repository failures are easy to reproduce.

Spaces in package path repository names prevent javac from discovering
java/package.jar files via the package.xdc "requires" statements. To
reproduce, you need a second package containing a referenced .jar file
that you can put in a separate repository with spaces.

Workaround for all of these is to use the 8.3 pathname instead.
Comment 1 Jon Rowlands CLA 2010-09-21 20:53:12 EDT
Fixed in xdc-w08.

Fixed xdc/bld/xdc_java.mak to quote path to Java compiler, and also paths
to repositories when constructing Java build classpath from package path.
Comment 2 Sasha Slijepcevic CLA 2010-11-01 19:26:04 EDT
I replicated all three failures with 3.21.00.10 (built using xdc-w05). After switching to 3.21.00.22, all three failures were fixed.
Comment 3 Dave Russo CLA 2011-06-20 14:03:00 EDT
Shipped in XDCtools 3.21.
Comment 4 Dave Russo CLA 2011-06-20 14:05:05 EDT
Shipped in XDCtools 3.21