h1. Building on Windows
Get the sources and patches just like on any other platform:
{noformat:title=pull sources and patches}
mkdir davinci
cd davinci
hg fclone http://hg.openjdk.java.net/jdk7/jdk7 sources
hg fclone http://hg.openjdk.java.net/mlvm/mlvm patches
{noformat}
The [Junction|http://www.microsoft.com/technet/sysinternals/fileanddisk/junction.mspx] tool can be used to create the filesystem links for the {{patches}} directories.
{noformat:title=link patch repos into source repos}
junction sources\hotspot\.hg\patches patches\hotspot
junction sources\jdk\.hg\patches patches\jdk
{noformat}
The patches in the patch repository are guarded so that only patches that satisfy certain conditions are applied. One of the guards is the most recent release tag from the source repository, it is the last entry in {{sources\.hgtags}}.
{noformat:title=select patch guards}
cd sources\jdk
hg qselect --reapply buildable testable jdk7-b25
cd ..\hotspot
hg qselect --reapply buildable testable jdk7-b25
{noformat}
You can look at the {{series}} files in the {{patches}} directories to see which guards are available.
After this is done patches can be applied like this:
{noformat}
cd sources\jdk
hg qpush
{noformat}
{{hg qpush -a}} can be used to apply all available patches.
Get the sources and patches just like on any other platform:
{noformat:title=pull sources and patches}
mkdir davinci
cd davinci
hg fclone http://hg.openjdk.java.net/jdk7/jdk7 sources
hg fclone http://hg.openjdk.java.net/mlvm/mlvm patches
{noformat}
The [Junction|http://www.microsoft.com/technet/sysinternals/fileanddisk/junction.mspx] tool can be used to create the filesystem links for the {{patches}} directories.
{noformat:title=link patch repos into source repos}
junction sources\hotspot\.hg\patches patches\hotspot
junction sources\jdk\.hg\patches patches\jdk
{noformat}
The patches in the patch repository are guarded so that only patches that satisfy certain conditions are applied. One of the guards is the most recent release tag from the source repository, it is the last entry in {{sources\.hgtags}}.
{noformat:title=select patch guards}
cd sources\jdk
hg qselect --reapply buildable testable jdk7-b25
cd ..\hotspot
hg qselect --reapply buildable testable jdk7-b25
{noformat}
You can look at the {{series}} files in the {{patches}} directories to see which guards are available.
After this is done patches can be applied like this:
{noformat}
cd sources\jdk
hg qpush
{noformat}
{{hg qpush -a}} can be used to apply all available patches.