anchor.diff:  	"C:\Program Files\Java\jre"
   	"C:\Program Files (x86)\Java\jre"
   ) do if not defined JAVA_HOME for /d %%p in ( "%%~d*" ) do set "JAVA_HOME=%%p"
  +
   if defined JAVA_HOME set "PATH=%PATH%;%JAVA_HOME%\bin"
   
   :: ========================================================================
  
positive.code: :: 7-zip path
  set "SEVENZIP_HOME=%TEA_HOME%\vendors\7za"
  if exist "%SEVENZIP_HOME%" set "PATH=%PATH%;%SEVENZIP_HOME%"
  
  :: ========================================================================
  ::
  :: SVN
  ::
  :: ========================================================================
  
  set "SVN_HOME=%TEA_HOME%\opt\svn-1.8.5"
  if exist "%SVN_HOME%" set "PATH=%PATH%;%SVN_HOME%\bin"
  
  :: ========================================================================
  ::
  :: Git
  :: (prepend in PATH for using unix tools "find" and "sort")
  ::
  :: ========================================================================
  
  :: set "GIT_HOME=C:\Program Files (x86)\Git"
  set "GIT_HOME=%TEA_HOME%\vendors\msysgit"
  :: if exist "%GIT_HOME%" set "PATH=%PATH%;%GIT_HOME%\cmd"
  if exist "%GIT_HOME%" set "PATH=%GIT_HOME%\bin;%GIT_HOME%\mingw\bin;%GIT_HOME%\cmd;%GIT_HOME%\share\vim\vim74;%PATH%"
  
  :: ========================================================================
  ::
  :: Perl
  :: (prepend in PATH for covering old Perl version in msysgit)
  ::
  :: ========================================================================
  
  :: set "PERL_HOME=%TEA_HOME%\vendors\strawberryPerl-5.8.8.3"
  set "PERL_HOME=%TEA_HOME%\vendors\StrawberryPerl-5.16.2"
  if exist "%PERL_HOME%" set "PATH=%PERL_HOME%\perl\site\bin;%PERL_HOME%\perl\bin;%PERL_HOME%\c\bin;%PATH%"
  
  :: ========================================================================
  ::
  
negative.code: :: ========================================================================
  
  if exist "C:\Program Files\Oracle\VirtualBox" set "PATH=%PATH%;C:\Program Files\Oracle\VirtualBox"
  
  :: ========================================================================
  ::
  :: SVN
  ::
  :: ========================================================================
  
  set "SVN_HOME=%TEA_HOME%\opt\svn-1.8.5"
  if exist "%SVN_HOME%" set "PATH=%PATH%;%SVN_HOME%\bin"
  
  :: ========================================================================
  ::
  :: Git
  ::
  :: ========================================================================
  
  :: set "GIT_HOME=C:\Program Files (x86)\Git"
  set "GIT_HOME=%TEA_HOME%\vendors\msysgit"
  
  :: if exist "%GIT_HOME%" set "PATH=%PATH%;%GIT_HOME%\cmd"
  if exist "%GIT_HOME%" set "PATH=%GIT_HOME%\bin;%GIT_HOME%\mingw\bin;%GIT_HOME%\cmd;%GIT_HOME%\share\vim\vim74;%PATH%"
  
  :: ========================================================================
  ::
  :: Unix tools (Cygwin, GoW, GnuWin32, MSysGit, UnixUtils, Win-Bash etc)
  ::
  :: ========================================================================
  
  :: Set the location for unix tools as you want
  :: set "UNIX_HOME=%TEA_HOME%\vendors\x-cygwin"
  :: set "UNIX_HOME=%TEA_HOME%\vendors\x-gnuwin32"
  set "UNIX_HOME=%TEA_HOME%\vendors\x-gow-git"
  :: set "UNIX_HOME=%TEA_HOME%\vendors\x-msysgit"
  :: set "UNIX_HOME=%TEA_HOME%\vendors\x-unxutils"
  :: set "UNIX_HOME=%TEA_HOME%\vendors\x-win-bash"
  
  if defined UNIX_HOME set "PATH=%UNIX_HOME%\bin;%PATH%"
  
  :: What is the HOME directory?
  :: http://gnuwin32.sourceforge.net/faq.html
  set "HOME=%TEA_HOME%"
  
  :: The program aborts with the message: cannot create file /tmp/...
  :: http://gnuwin32.sourceforge.net/faq.html
  set "TMPDIR=%TEMP%"
  set "TMP=%TEMP%"
  
  :: How can I disable native language support?
  :: http://gnuwin32.sourceforge.net/faq.html
  set "LANG=en"
  set "LANGUAGE=en"
  
  :: ========================================================================
  ::
  :: Perl
  :: (prepend in PATH to overrride other Perls from other places)
  ::
  :: ========================================================================
  
  :: set "PERL_HOME=%TEA_HOME%\vendors\strawberryPerl-5.8.8.3"
  set "PERL_HOME=%TEA_HOME%\vendors\StrawberryPerl-5.16.2"
  
  :: if defined PERL_HOME set "PATH=%PATH%;%PERL_HOME%\perl\site\bin;%PERL_HOME%\perl\bin;%PERL_HOME%\c\bin"
  if defined PERL_HOME set "PATH=%PERL_HOME%\perl\site\bin;%PERL_HOME%\perl\bin;%PERL_HOME%\c\bin;%PATH%"
  
  :: ========================================================================
  ::
  