Bug 58946 - Standalone compiler help text is incorrect on Unix
Summary: Standalone compiler help text is incorrect on Unix
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-16 18:10 EDT by Peter Burka CLA
Modified: 2004-05-18 11:16 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Burka CLA 2004-04-16 18:10:50 EDT
The help text for the stand along Java compiler is incorrect on Unix platforms.

Eclipse Java Compiler 0.418, Copyright IBM Corp 2000, 2004. All rights 
reserved.
. . .
 Classpath options:
    -cp -classpath <directories and zip/jar files separated by ;>
                       specify location for application classes and sources
    -bootclasspath <directories and zip/jar files separated by ;>
                       specify location for system classes
. . .

On Linux and other Unix-like platforms, the list of directories should be 
separated by ':', rather than ';'.

Note that the compiler does actually use ':' on Unix-like platforms, it just 
doesn't display it correctly in the help text.
Comment 1 Olivier Thomann CLA 2004-04-21 14:37:12 EDT
Would this be better?
-cp -classpath <directories and zip/jar files separated by the platform path
separator>
                       specify location for application classes and sources
-bootclasspath <directories and zip/jar files separated by the platform path
separator>
                       specify location for system classes

I am not sure that bugzilla will preserve the layout.
Comment 2 Peter Burka CLA 2004-04-21 18:04:16 EDT
Why not substitute in the correct platform separator?

On Windows:
<directories and zip/jar files separated by ;>

On Linux:
<directories and zip/jar files separated by :>

This should be as simple as 

Message.format(
  "<directories and zip/jar files separated by {0}>",
  new Object[] { System.getProperty("path.separator", ";"}
);


Comment 3 Philipe Mulet CLA 2004-04-22 06:00:35 EDT
Olivier - we also need to check our support for tokenizing the command line 
(when calling #compile(String)). It needs to decode the classpath using the 
proper separator.
Comment 4 Olivier Thomann CLA 2004-04-23 10:24:47 EDT
Fixed and released in HEAD.
Comment 5 David Audel CLA 2004-05-18 11:16:11 EDT
Verified for 3.0M9