Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322858 - Building Java code in packages fails if pathnames have spaces
Summary: Building Java code in packages fails if pathnames have spaces
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jon Rowlands CLA
QA Contact:
URL:
Whiteboard: target:3.21
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 21:57 EDT by Jon Rowlands CLA
Modified: 2011-06-20 14:05 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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