Package org.sonar.batch.scan.filesystem

Examples of org.sonar.batch.scan.filesystem.InputPathCache


    when(mode.isPreview()).thenReturn(true);
    userFinder = mock(UserFinder.class);
    DefaultInputDir inputDir = new DefaultInputDir("struts", "src/main/java/org/apache/struts");
    DeprecatedDefaultInputFile inputFile = new DeprecatedDefaultInputFile("struts", "src/main/java/org/apache/struts/Action.java");
    inputFile.setStatus(InputFile.Status.CHANGED);
    InputPathCache fileCache = mock(InputPathCache.class);
    when(fileCache.all()).thenReturn(Arrays.<InputPath>asList(inputDir, inputFile));
    Project rootModule = new Project("struts");
    Project moduleA = new Project("struts-core");
    moduleA.setParent(rootModule).setPath("core");
    Project moduleB = new Project("struts-ui");
    moduleB.setParent(rootModule).setPath("ui");
View Full Code Here


        }
      }
    }

    private void storeFs(ProjectScanContainer container) {
      InputPathCache inputFileCache = container.getComponentByType(InputPathCache.class);
      for (InputPath inputPath : inputFileCache.all()) {
        if (inputPath instanceof InputFile) {
          inputFiles.put(inputPath.relativePath(), (InputFile) inputPath);
        } else {
          inputDirs.put(inputPath.relativePath(), (InputDir) inputPath);
        }
View Full Code Here

TOP

Related Classes of org.sonar.batch.scan.filesystem.InputPathCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.