forked from ashishtadose/gemfire-xd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
executable file
·66 lines (57 loc) · 1.76 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
@echo off
set scriptdir=%~dp0
set BASEDIR=%scriptdir:\buildfiles\=%
if exist "%BASEDIR%\build.xml" @goto baseok
echo Could not determine BASEDIR location
verify other 2>nul
goto done
:baseok
set GEMFIRE=
set CYGWIN=nodosfilewarning
if not defined GCMDIR (
set GCMDIR=J:\
)
if not exist %GCMDIR% (
echo ERROR: unable to locate GCMDIR %GCMDIR% maybe you forgot to map the J: network drive to //samba/gcm
verify other 2>nul
goto done
)
set LDAP_SERVER_FQDN=ldap.gemstone.com
rem if exist \\pike\pike1\users (
rem set LDAP_SERVER_FQDN=ldap.pune.gemstone.com
rem )
set MONODIR=%GCMDIR%\where\csharp\mono-2.6\x86_64.windows_NT
if not exist %MONODIR%\bin\xbuild.bat (
echo Unable to locate MONODIR %MONODIR%
set MONODIR=
)
set PATH=%MONODIR%\bin;c:\Program Files ^(x86^)\MonoDevelop\bin;c:\Program Files ^(x86^)\GtkSharp\2.12\bin;%PATH%
set XBUILD=%MONODIR%/bin/xbuild
set MONO=%MONODIR%/bin/mono
echo Using mono from: %MONODIR%
set JAVA_HOME=%GCMDIR%\where\jdk\1.7.0_72\x86.Windows_NT
if defined ALT_JAVA_HOME (
set JAVA_HOME=%ALT_JAVA_HOME%
)
set ANT_HOME=%GCMDIR%\where\java\ant\apache-ant-1.8.4
if defined ALT_ANT_HOME (
set ANT_HOME=%ALT_ANT_HOME%
)
set ANT_OPTS=-Xmx1024m -Dhttp.proxyHost=proxy.eng.vmware.com -Dhttp.proxyPort=3128
if defined ALT_ANT_OPTS (
set ANT_OPTS=%ALT_ANT_OPTS%
)
set ANT_ARGS=%ANT_ARGS% -lib %GCMDIR%\where\java\jcraft\jsch\jsch-0.1.44\jsch-0.1.44.jar
set PATHOLD=%PATH%
set PATH=%JAVA_HOME%\bin;%PATH%
echo JAVA_HOME = %JAVA_HOME%
echo ANT_HOME = %ANT_HOME%
echo CLASSPATH = %CLASSPATH%
echo %DATE% %TIME%
echo running %ANT_HOME%\bin\ant.bat with ANT_OPTS=%ANT_OPTS%
call %ANT_HOME%\bin\ant.bat %*
if not defined ERRORLEVEL set ERRORLEVEL=0
:done
echo %ERRORLEVEL% > .xbuildfailure
set ERRORLEVEL=
if defined PATHOLD set PATH=%PATHOLD%