OpenGamma/OG-Platform — pull request #1 by thetaris (2012-11-08 17:21:20+00:00)
Title: fix example batch scripts failing on 64-bit Windows machines

Fix example batch scripts failing on 64-bit Windows machines if JAVA_HOME path contains parentheses (which is the case for 32-bit Java default installations below C:\Program Files (x86)\...)

The parentheses cause parser hickups inside IF-ELSE blocks.
There are two ways to work around this:
1) quote the set statement: SET "JAVACMD=%JAVA_HOME%\bin\java.exe"
2) use delayed expansion: SET JAVACMD=!JAVA_HOME!\bin\java.exe

Since delayed expansion is used anyway further down in the scripts, I opted for fix 2) and moved the line enabling delayed expansion to the top of the script.