6979564: ":" for path separator in dist/bin/javac does not work on Windows
authorjjg
Wed, 25 Aug 2010 11:24:30 -0700
changeset 6574 7729fe9665a2
parent 6573 6bad8be140fc
child 6575 ae1798028008
6979564: ":" for path separator in dist/bin/javac does not work on Windows Reviewed-by: jjh
langtools/make/build.xml
langtools/src/share/bin/launcher.sh-template
--- a/langtools/make/build.xml	Tue Aug 24 15:09:21 2010 -0700
+++ b/langtools/make/build.xml	Wed Aug 25 11:24:30 2010 -0700
@@ -673,6 +673,7 @@
                     <filterset begintoken="#" endtoken="#">
                         <filter token="PROGRAM" value="@{name}"/>
                         <filter token="TARGET_JAVA" value="@{java}"/>
+                        <filter token="PS" value="${path.separator}"/>
                     </filterset>
                 </copy>
                 <chmod file="@{bin.dir}/@{name}" perm="ugo+rx"/>
--- a/langtools/src/share/bin/launcher.sh-template	Tue Aug 24 15:09:21 2010 -0700
+++ b/langtools/src/share/bin/launcher.sh-template	Wed Aug 25 11:24:30 2010 -0700
@@ -40,8 +40,8 @@
 if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then
    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 
+       sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1#PS#|g'`
+   bcp="$mylib/#PROGRAM#.jar#PS#$cp"
 fi
 
 # tools currently assumes that assertions are enabled in the launcher