check that external project directory exists before trying to load it

This commit is contained in:
Mark Harrah 2010-09-23 11:45:19 -04:00
parent f3de1d728c
commit 0f0e89af85
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ object MultiProject
// externals must not be evaluated until after _all_ projects have been loaded
def load(configuration: AppConfiguration, log: Logger, externals: ExternalProjects)(base: File): Project =
{
if(!base.isDirectory) throw new build.BuildException(base + " is not a project directory")
val projectDir = selectProjectDir(base)
val buildDir = projectDir / "build"
val srcMain = buildDir / "src" / "main"