The build.bat for building on windows is not current an you will not be able to build successfully on windows. On the other hand the build.sh file is used daily for the maqetta nightly builds so it is keep current.
So the best option for building on Windows is to use the build.sh file and GitBash on windows.
In order to build Maqetta on windows you must install eclipse and git, once you have installed git you will notice that you have GitBash. A note here if you have CgyWin installed on your windows machine ensure that the path to Git/bin appears before cgywin/bin in your path or the wrong ssh will be used.
I will describe the steps I used to build Maqetta on windows using GitBash:
1) Create a build folder I used c:\build-out
2) copy the file maqetta\releng\davinci.releng/build.sh to the build folder c:/build-out
3) Edit c:\build-out\build.sh and change the following:
- export baseLocation="/path/to/eclipse" to export baseLocation="/c/eclipse-indigo"
- export MAQETTA_BUILD_DIR="/tmp" to export MAQETTA_BUILD_DIR="/c/build-out"
- export myWS=${MAQETTA_WS:=cocoa} to export myWS=${MAQETTA_WS:=win32}
- export myOS=${MAQETTA_OS:=macosx} to export myOS=${MAQETTA_OS:=win32}
4) Open a GitBash window, In my case I double clicked on the icon on my desktop
5) In the GitBash window cd to your build folder (ie. cd /c/build-out)
6) start the build ./build.sh
about 40 minutes or so later you should see
BUILD SUCCESSFUL
Total time: 33 minutes 54 seconds
the built files will be in c:\build-out\result you will have a zip, a war and an ear file along with other files.