Building Maqetta on windows using GitBash

185 views
Skip to first unread message

Bill Reed

unread,
Jul 27, 2012, 3:03:00 PM7/27/12
to maqett...@googlegroups.com
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.

 
Bill
Maqetta team

Salim Ansari

unread,
Jul 28, 2012, 4:59:38 AM7/28/12
to maqett...@googlegroups.com
Hi Bill,
I tried to build Maqetta as per your below instructions but could not succeed.
Attached is log file. Please help me to resolve this issue. 


Thanks,
Salim
errorLog.txt

Bill Reed

unread,
Jul 29, 2012, 1:51:55 PM7/29/12
to maqett...@googlegroups.com
What version of eclipse are you using?  I used indego J2EE version. 

Salim Ansari

unread,
Jul 30, 2012, 9:41:37 AM7/30/12
to maqett...@googlegroups.com
I am using helios J2EE version.

Bill Reed

unread,
Jul 30, 2012, 10:35:35 AM7/30/12
to maqett...@googlegroups.com
Try installing and using J2EE  indigo 

Thatraju

unread,
Jun 3, 2014, 4:26:37 PM6/3/14
to maqett...@googlegroups.com
Guys,

Can you please look into the following and see if something wrong with the lines? I have followed all the instructions and got the following.  I am using Juno J2EE edition.

$ build.sh
Using C:\works\MAQDEV\src\eclipse Eclipse for build...
./build.sh: line 215: unexpected EOF while looking for matching `"'
./build.sh: line 226: syntax error: unexpected end of file


Line # 215 is below:
launcher="`ls ${baseLocation}/plugins/org.eclipse.equinox.launcher_*.jar`"
java -Ddeployment-type=${MAQETTA_DEPLOYMENT} -DdojoBuild=${MAQETTA_DOJO_BUILD} -jar ${launcher} -application org.eclipse.ant.core.antRunner -buildfile ${relEngDir}/buildAll.xml -consoleLog

Line #226 is empty line
Reply all
Reply to author
Forward
0 new messages