java lint: validate language and source code when running Java lint.
- the language may not be Java any longer as lint is run in background and could
have been changed meanwhile.
- do not run the compiler at all if code is empty
@REM -------
@REM make using Microsoft Visual C compiler
@REM type vcmake, and wait...
@REM do not edit - automatically generated from ProjectDefinition
@REM -------
@if not defined VSINSTALLDIR (
pushd ..\rules
call vcsetup.bat
popd
)
@SET DEFINES=
@REM Kludge got Mercurial, cannot be implemented in Borland make
@FOR /F "tokens=*" %%i in ('hg root') do SET HGROOT=%%i
@IF "%HGROOT%" NEQ "" SET DEFINES=%DEFINES% "-DHGROOT=%HGROOT%"
make.exe -N -f bc.mak -DUSEVC=1 %DEFINES% %*
@echo "***********************************"
@echo "Buildung stx/libjava/experiments
@echo "***********************************"
@pushd experiments
@call vcmake %1 %2 || exit /b "%errorlevel%"
@popd
@echo "***********************************"
@echo "Buildung stx/libjava/tools
@echo "***********************************"
@pushd tools
@call vcmake %1 %2 || exit /b "%errorlevel%"
@popd