Home | History | Annotate | Download | only in builderTemplate
      1 @ echo off
      2 
      3 REM script which executes build
      4 
      5 REM tag to use when checking out .map file project
      6 set mapVersionTag=HEAD
      7 
      8 REM default setting for buildType
      9 set buildType=
     10 
     11 REM default setting for buildID
     12 set buildID=
     13 
     14 REM default bootclasspath
     15 set bootclasspath=
     16 
     17 REM vm used to run the build.  Defaults to java on system path
     18 set vm=java
     19 
     20 REM target used if not default (to allow run just a portion of buildAll)
     21 set target=
     22 
     23 REM FTP user/password, required for Windows to ftp. Without it, no push.
     24 set ftpUser=
     25 set ftpPassword=
     26 
     27 if x%1==x goto usage
     28 
     29 :processcmdlineargs
     30 
     31 REM ****************************************************************
     32 REM
     33 REM Process command line arguments
     34 REM
     35 REM ****************************************************************
     36 if x%1==x goto run
     37 if x%1==x-mapVersionTag set mapVersionTag=%2 && shift && shift && goto processcmdlineargs
     38 if x%1==x-vm set vm=%2 && shift && shift && goto processcmdlineargs
     39 if x%1==x-bc set bootclasspath=-Dbootclasspath=%2 && shift && shift && goto processcmdlineargs
     40 if x%1==x-target set target=%2 && shift && shift && goto processcmdlineargs
     41 if x%1==x-buildID set buildID=-DbuildId=%2 && shift && shift && goto processcmdlineargs
     42 if x%1==x-ftp set ftpUser=-DftpUser=%2 && set ftpPassword=-DftpPassword=%3 && shift && shift && shift && goto processcmdlineargs
     43 set buildType=%1 && shift && goto processcmdlineargs
     44 
     45 :run
     46 if x%buildType%==x goto usage
     47 
     48 %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%
     49 goto end
     50 
     51 :usage
     52 echo "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"
     53 
     54 :end