root/main/trunk/release-kits/bin/rk.bat @ 29395

Revision 29395, 0.8 KB (checked in by sjm84, 5 years ago)

Minor additional changes

Line 
1@echo off
2set RELEASE_DIR=%CD%
3echo RELEASE_DIR:%RELEASE_DIR%
4pushd "%CD%"
5CD /D "%~dp0\.."
6
7:: Generally, an ant property can be true|on|yes vs false|off|no (or left unset)
8:: see https://ant.apache.org/manual/properties.html#if+unless
9:: However, the release-kit code requires envvar KEEP_SRC to be "true" in order to stop it deleting source code
10:: set KEEP_SRC envvar here or in envi/etc/tasks/snapshot/environment.pl
11::set KEEP_SRC=true
12set debug=
13if not "%KEEP_SRC%" == "" set debug="-Dkeep.src=%KEEP_SRC%"
14
15@echo on
16cmd.exe /c ant -f "%CD%\kits\%RK_NAME%\ant-scripts\build.xml" "-Drk.home=%CD%" "-Drk.name=%RK_NAME%" %debug% "-Dbasedir=%RELEASE_DIR%" -lib "%RELEASE_DIR%/installer/classes" %* | "%CD%\shared\windows\utils\tee.exe" "%RELEASE_DIR%\%RK_NAME%.out"
17
18:end
19set debug=
20
21popd
Note: See TracBrowser for help on using the browser.