Source of sun.nio.cs.StandardCharsets.java - Please help!
Ulf Zibis
Ulf.Zibis at gmx.de
Tue Apr 14 16:54:58 UTC 2009
Am 14.04.2009 00:16, Xueming Shen schrieb:
> I'm still using MKS ksh, but it should not matter. For that particular
> script, you can copy/paste the command from the the
> makefile, so it should look like
>
> sh -e genCharsetprovider.sh {TheDirOf}/standard-charsets {DestinateDir}
>
> before that you should also
> (1)copy Mark's Hasher to current dir and compile it
> (2)do something to the addNotices.sh script, it would be easy to
> simply remove it from the script for now
> (3)add "HASHER='java Hasher' at the beginning of the script
> (4)add "NAWK=awk" at the beginning.
>
> Then start your awk hack.
Now I have it (see attachment).
It took me 4 hours to find out reason of following:
- variable PKG was not recognized proper.
- running my .bat file, I got following error:
C:\Projects\OpenJDK7\jdk\make\java\nio\charset>sh -e genCharsetprovider_simple.sh
../../../../src/share/classes/sun/nio/cs/standard-charsets ../../../../build/temp
--> ../../../../build/temp/StandardCharsets.java
genCharsetprovider_simple.sh: line 112: "java: command not found
Solution:
set HASHER=java -cp .;..\..\..\..\build build.tools.hasher.Hasher
set PKG=sun.nio.cs
instead of:
set HASHER="java -cp .;..\..\..\..\build build.tools.hasher.Hasher"
set PKG="sun.nio.cs"
Should I be ashamed ? :-(
>
> I would be happy to do the following for you, but I'm still not quite
> sure about (2), it might be easy if you just send me the
> result you would like to see.
See "customized" version from attachment.
It's just omitting the aliases for the classes, which class name, read from standard-charsets, start
with '%'.
-Ulf
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: genCharsetProvider_simple.sh
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20090414/ff75ba33/genCharsetProvider_simple.sh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: genCharsetProvider.bat
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20090414/ff75ba33/genCharsetProvider.bat>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StandardCharsets.java
Type: java/*
Size: 26615 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20090414/ff75ba33/StandardCharsets.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StandardCharsets_customized.java
Type: java/*
Size: 18584 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20090414/ff75ba33/StandardCharsets_customized.java>
More information about the core-libs-dev
mailing list