if (!AssetFormats.DRL_MODEL.equals(jcrAssetItem.getFormat())) {
throw new IllegalArgumentException("The jcrAsset (" + jcrAssetItem.getName()
+ ") has the wrong format (" + jcrAssetItem.getFormat() + ").");
}
Path path = migrationPathManager.generatePathForAsset(jcrModule, jcrAssetItem);
//The asset was renamed in this version. We move this asset first.
if(previousVersionPath != null && !previousVersionPath.equals(path)) {
ioService.move(Paths.convert( previousVersionPath ), Paths.convert( path ), StandardCopyOption.REPLACE_EXISTING);
}
Project project = projectService.resolveProject(path);
initBasePropertyTypes();
initAnnotationDefinitions();
if(project == null) {
Path projectRootPath = migrationPathManager.generatePathForModule(jcrModule.getName());
//Quick hack to pass mock values for pomPath etc, to make Project constructor happy. We only use projectRootPath anyway
project = new Project( projectRootPath,
projectRootPath,
projectRootPath,
projectRootPath,