title: Delphi XE3 build batch failed to run msbuild using Hudson or Jenkins
body: <p>I try to configure Hudson (3.1.0) to build Delphi XE3 project (MSBuild).</p>
  
  <p>Batch for build:</p>
  
  <pre><code>call "C:\Program Files (x86)\Embarcadero\RAD Studio\10.0\bin\rsvars.bat"
  msbuild "X:\Tests\DelphiTest\Project1Test.dproj" /t:Build /v:minimal /p:config="Debug"
  </code></pre>
  
  <p>Run this batch in command line (cmd.exe) - build correct.</p>
  
  <p>When I put this batch into Hudson build step faild with errors from delphi compiler:</p>
  
  <p>[..]</p>
  
  <pre><code>C:\Program Files (x86)\Embarcadero\RAD Studio\10.0\bin\CodeGear.Common.Targets : warning : Expected configuration file missing - C:\Windows\system32\config\systemprofile\AppData\Roaming\Embarcadero\BDS\10.0\EnvOptions.proj
  _PasCoreCompile:
      Embarcadero Delphi for Win32 compiler version 24.0
      Copyright (c) 1983,2012 Embarcadero Technologies, Inc.
  C:\Program Files (x86)\Embarcadero\RAD Studio\10.0\Bin\CodeGear.Delphi.Targets(172,5): error E1026: File not found: 'Controls.res'
  </code></pre>
  
  <p>[..]</p>
  
  <p>In fact I don't have missing file in this location. But I've found it in<br>
  <code>C:\Users\&lt;username&gt;\AppData\Roaming\Embarcadero\BDS\10.0</code></p>
  
  <p>So I try do dummy think like copy existing dir to missing location but it doesn't work. </p>
  
  <p>I'm using: Delphi XE3 Enterprise, Win 7 Ultimate (x64)</p>
  
  <p>Thanks for help.</p>