United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6916986 handle spaces in langtools launcher path
JDK-6916986 : handle spaces in langtools launcher path

Details
Type:
Bug
Submit Date:
2010-01-14
Status:
Resolved
Updated Date:
2010-04-30
Project Name:
JDK
Resolved Date:
2010-01-23
Component:
infrastructure
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
The developer launcher will fail if user's library has spaces in the path.

                                    

Comments
SUGGESTED FIX

--- a/src/share/bin/launcher.sh-template
+++ b/src/share/bin/launcher.sh-template
@@ -38,7 +38,7 @@
 # dependent jar files for additional dependencies.
 
 if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then
-   cp=`unzip -c $mylib/#PROGRAM#.jar META-INF/MANIFEST.MF |
+   cp=`unzip -c "$mylib/#PROGRAM#.jar" META-INF/MANIFEST.MF |
        grep "Class-Path:" |
        sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1:|g'`
    bcp="$mylib/#PROGRAM#.jar":$cp
                                     
2010-01-14
EVALUATION

Yes.
                                     
2010-01-14



Hardware and Software, Engineered to Work Together