//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 );
}
KieProject 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 KieProject( projectRootPath,
projectRootPath,
projectRootPath,
projectRootPath,
"" );
}