Search in sources :

Example 1 with ProjectStamps

use of org.jetbrains.jps.incremental.storage.ProjectStamps in project intellij-elixir by KronicDeth.

the class JpsBuildTestCase method createProjectDescriptor.

protected ProjectDescriptor createProjectDescriptor(BuildLoggingManager buildLoggingManager) {
    try {
        BuildTargetRegistryImpl targetRegistry = new BuildTargetRegistryImpl(myModel);
        ModuleExcludeIndex index = new ModuleExcludeIndexImpl(myModel);
        IgnoredFileIndexImpl ignoredFileIndex = new IgnoredFileIndexImpl(myModel);
        BuildDataPaths dataPaths = new BuildDataPathsImpl(myDataStorageRoot);
        BuildRootIndexImpl buildRootIndex = new BuildRootIndexImpl(targetRegistry, myModel, index, dataPaths, ignoredFileIndex);
        BuildTargetIndexImpl targetIndex = new BuildTargetIndexImpl(targetRegistry, buildRootIndex);
        BuildTargetsState targetsState = new BuildTargetsState(dataPaths, myModel, buildRootIndex);
        PathRelativizerService relativizer = new PathRelativizerService(myModel.getProject());
        ProjectStamps timestamps = new ProjectStamps(myDataStorageRoot, targetsState, relativizer);
        BuildDataManager dataManager = new BuildDataManager(dataPaths, targetsState, relativizer);
        return new ProjectDescriptor(myModel, new BuildFSState(true), timestamps, dataManager, buildLoggingManager, index, targetsState, targetIndex, buildRootIndex, ignoredFileIndex);
    } catch (IOException e) {
        throw new RuntimeException(e);
    }
}
Also used : BuildTargetRegistryImpl(org.jetbrains.jps.builders.impl.BuildTargetRegistryImpl) BuildRootIndexImpl(org.jetbrains.jps.builders.impl.BuildRootIndexImpl) PathRelativizerService(org.jetbrains.jps.incremental.relativizer.PathRelativizerService) IgnoredFileIndexImpl(org.jetbrains.jps.indices.impl.IgnoredFileIndexImpl) BuildTargetIndexImpl(org.jetbrains.jps.builders.impl.BuildTargetIndexImpl) IOException(java.io.IOException) BuildTargetsState(org.jetbrains.jps.incremental.storage.BuildTargetsState) ProjectStamps(org.jetbrains.jps.incremental.storage.ProjectStamps) BuildFSState(org.jetbrains.jps.incremental.fs.BuildFSState) BuildDataPaths(org.jetbrains.jps.builders.storage.BuildDataPaths) ModuleExcludeIndex(org.jetbrains.jps.indices.ModuleExcludeIndex) ProjectDescriptor(org.jetbrains.jps.cmdline.ProjectDescriptor) ModuleExcludeIndexImpl(org.jetbrains.jps.indices.impl.ModuleExcludeIndexImpl) BuildDataPathsImpl(org.jetbrains.jps.builders.impl.BuildDataPathsImpl) BuildDataManager(org.jetbrains.jps.incremental.storage.BuildDataManager)

Aggregations

IOException (java.io.IOException)1 BuildDataPathsImpl (org.jetbrains.jps.builders.impl.BuildDataPathsImpl)1 BuildRootIndexImpl (org.jetbrains.jps.builders.impl.BuildRootIndexImpl)1 BuildTargetIndexImpl (org.jetbrains.jps.builders.impl.BuildTargetIndexImpl)1 BuildTargetRegistryImpl (org.jetbrains.jps.builders.impl.BuildTargetRegistryImpl)1 BuildDataPaths (org.jetbrains.jps.builders.storage.BuildDataPaths)1 ProjectDescriptor (org.jetbrains.jps.cmdline.ProjectDescriptor)1 BuildFSState (org.jetbrains.jps.incremental.fs.BuildFSState)1 PathRelativizerService (org.jetbrains.jps.incremental.relativizer.PathRelativizerService)1 BuildDataManager (org.jetbrains.jps.incremental.storage.BuildDataManager)1 BuildTargetsState (org.jetbrains.jps.incremental.storage.BuildTargetsState)1 ProjectStamps (org.jetbrains.jps.incremental.storage.ProjectStamps)1 ModuleExcludeIndex (org.jetbrains.jps.indices.ModuleExcludeIndex)1 IgnoredFileIndexImpl (org.jetbrains.jps.indices.impl.IgnoredFileIndexImpl)1 ModuleExcludeIndexImpl (org.jetbrains.jps.indices.impl.ModuleExcludeIndexImpl)1