title: "Required package rtl not found" when building with Hudson
body: <p>I am trying to get <a href="http://hudson-ci.org/">Hudson</a> to work with my Delphi project. I am using the following batch file to build my project (as suggested in this <a href="http://christerblog.wordpress.com/2010/04/25/using-hudson-to-build-delphi-projects/">blog post</a>):</p>
  
  <pre><code>call "C:\Program Files\Embarcadero\RAD Studio\8.0\bin\rsvars.bat"
  msbuild /p:Win32LibraryPath="$(BDS)\lib;$(BDS)\lib\win32\release;$(BDS)\lib\win32\debug;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDS)\include;" /t:build /p:config=Debug /verbosity:detailed "MyProject\src\MyProject.dproj"
  if errorlevel 1 exit 1
  </code></pre>
  
  <p>I always end up with the error</p>
  
  <pre><code>Embarcadero Delphi for Win32 compiler version 22.0
  Copyright (c) 1983,2010 Embarcadero Technologies, Inc.
  Fatal: E2202 Required package 'rtl' not found
  </code></pre>
  
  <p>I don't understand this as <code>rtl.dcp</code> is in "$(BDS)\lib\win32\release" which is on the library path. I am using runtime packages by the way.</p>
  
  <p>Any hints what I can do to solve this?</p>
  
  <p><strong>Edit</strong> It seems that the paths do not end up in the command line, which looks something like (after removing project-specific paths):</p>
  
  <pre><code>C:\Program Files\Embarcadero\RAD Studio\8.0\bin\dcc32.exe -$O- -$W+ --inline:off -$A4 -$R+ -$Q+ --doc --no-config -B -LUrtl;vcl;ReportingR;ComponentsR -Q -AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE -DDEBUG;CONSTRAINT_CHECKING;_VER6;EUREKALOG_VER6;EurekaLog -V -VN -GD --drc -W-SYMBOL_DEPRECATED -W-SYMBOL_PLATFORM -W-UNIT_PLATFORM -W-UNIT_DEPRECATED   Myproject.dpr   
  </code></pre>