blob: 368255b3d4734d5c4d448d9fa6ab8f9c8442273f [file] [log] [blame]
@echo off
:# executes a build of the whole project and all active tests
:# see: http://wiki.eclipse.org/SMILA/Documentation/HowTo/Howto_build_a_SMILA-Distribution
setlocal
:# set this to the location of your working copy of the SMILA source code
set SMILA_HOME=D:\Works\workspace\EclipseSMILA
:# set this to the location of a Eclipse Classic 4.4.2 SDK + matching delta pack
set ECLIPSE_HOME=D:\works\eclipse-4.4.2
:# make sure that the arch setting matches the used JDK
set ARCH=-Dos=win32 -Dws=win32 -Darch=x86
set JAVA_HOME=D:\Works\Java\jdk1.7.0_75
set ANT_HOME=D:\Works\Java\apache-ant-1.7.0
set ANT_OPTS=-Xmx512m
set BUILDLIB_DIR=D:\Works\3rd_party_sw\SMILA\build\lib
:# set to location of libraries needed for build
:# comment out, if your lib directory is in trunk
set libDir=-Dlib.dir=%BUILDLIB_DIR%
:# usually there is no need to change the following lines
set buildDir=-DbuildDirectory=%SMILA_HOME%\smila.build
set builder=-Dbuilder=%SMILA_HOME%\SMILA.builder
set eclipseHome=-Declipse.home="%ECLIPSE_HOME%"
set testJava=-Dtest.java.home="%JAVA_HOME%"
:# create a log file named according to this pattern: log.<this shell script name, i.e. make>
set logfile=log.%~n0
PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%PATH%
:# note: gdate and tee are GnuWin32 utils that need to be in the path
:# gdate | tee %logfile%
:# call ant -f make.xml %buildDir% %eclipseHome% %builder% %ARCH% %testJava% %buildOpts% %configHome% %libDir% %* | tee -a %logfile%
call ant -f make.xml %buildDir% %eclipseHome% %builder% %ARCH% %testJava% %buildOpts% %configHome% %libDir% %* > %logfile%
endlocal