1402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll@ echo off
2402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
3402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM script which executes build
4402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
5402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM tag to use when checking out .map file project
6402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollset mapVersionTag=HEAD
7402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
8402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM default setting for buildType
9402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollset buildType=
10402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
11402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM default setting for buildID
12402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollset buildID=
13402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
14402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM default bootclasspath
15402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollset bootclasspath=
16402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
17402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM vm used to run the build.  Defaults to java on system path
18402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollset vm=java
19402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
20402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM target used if not default (to allow run just a portion of buildAll)
21402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollset target=
22402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
23402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM FTP user/password, required for Windows to ftp. Without it, no push.
24402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollset ftpUser=
25402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollset ftpPassword=
26402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
27402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif x%1==x goto usage
28402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
29402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll:processcmdlineargs
30402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
31402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM ****************************************************************
32402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM
33402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM Process command line arguments
34402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM
35402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM ****************************************************************
36402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif x%1==x goto run
37402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif x%1==x-mapVersionTag set mapVersionTag=%2 && shift && shift && goto processcmdlineargs
38402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif x%1==x-vm set vm=%2 && shift && shift && goto processcmdlineargs
39402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif x%1==x-bc set bootclasspath=-Dbootclasspath=%2 && shift && shift && goto processcmdlineargs
40402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif x%1==x-target set target=%2 && shift && shift && goto processcmdlineargs
41402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif x%1==x-buildID set buildID=-DbuildId=%2 && shift && shift && goto processcmdlineargs
42402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif x%1==x-ftp set ftpUser=-DftpUser=%2 && set ftpPassword=-DftpPassword=%3 && shift && shift && shift && goto processcmdlineargs
43402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollset buildType=%1 && shift && goto processcmdlineargs
44402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
45402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll:run
46402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif x%buildType%==x goto usage
47402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
48402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll%vm% -cp ..\org.eclipse.releng.basebuilder\startup.jar org.eclipse.core.launcher.Main -application org.eclipse.ant.core.antRunner -f buildAll.xml %target% %bootclasspath% -DmapVersionTag=%mapVersionTag% -DbuildType=%buildType% %buildID% %ftpUser% %ftpPassword%
49402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollgoto end
50402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
51402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll:usage
52402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollecho "usage: buildAll [-mapVersionTag HEAD|<branch name>] [-vm <url to java executable to run build>] [-bc <bootclasspath>] [-target <buildall target to execute>] [-buildID <buildID, e.g. 2.1.2>]  [-ftp <userid> <password>] I|M"
53402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
54402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll:end