File parent = new File(getInstanceEnv().getApplicationRepositoryPath());
appDirectory = new File(parent, getAppName());
appDirectory.mkdirs();
}
else if(isDirectory()) {
FileSource fileSource = request.getFileSource();
if(!fileSource.exists()) {
String msg = localStrings.getString(
"enterprise.deployment.backend.file_source_does_not_exist",
fileSource.toString() );
throw new IASDeploymentException( msg );
}
assert fileSource.isDirectory();
appDirectory = fileSource.getFile();
}
else {
String msg = localStrings.getString(
"enterprise.deployment.backend.deployment_not_dir_or_archive");
throw new IASDeploymentException( msg );