I use TeamCity to perform nightly JUnit tests on my project. The tests are run using an Ant script, which works fine when executed outside of TeamCity (e.g. from within my IntelliJ project). In TeamCity, however, tests that try to read files from disk fail with a FileNotFoundException ("Access is denied").
Files that are located inside my project tree (i.e. checked into CVS) and are accessed via a relative path do not exhibit this problem, only files that are located elsewhere on the disk or on network shares. The problematic files add up to over 100 GB, so putting them in CVS or copying them into the build directory every time is not an option.
Is there a configuration option somewhere that will fix this?