Examples of VersionedFile


Examples of com.atomikos.util.VersionedFile

    private VersionedFile file_;
   
    public FileLogStream ( String baseDir , String baseName , Console console )
            throws IOException
    {
        file_ = new VersionedFile ( baseDir , baseName , ".log" );
        simulateCrash_ = false;
        console_ = console;
        corrupt_ = false;
    }
View Full Code Here

Examples of com.atomikos.util.VersionedFile

  protected boolean simulateCrash_;
  protected boolean corrupt_;
  protected VersionedFile file_;

  public AbstractLogStream(String baseDir, String baseName) {
    file_ = new VersionedFile(baseDir, baseName, ".log");
    simulateCrash_ = false;

    corrupt_ = false;

  }
View Full Code Here

Examples of com.atomikos.util.VersionedFile

    private VersionedFile file_;
   
    public FileLogStream ( String baseDir , String baseName , Console console )
            throws IOException
    {
        file_ = new VersionedFile ( baseDir , baseName , ".log" );
        simulateCrash_ = false;
        console_ = console;
        corrupt_ = false;
    }
View Full Code Here

Examples of com.atomikos.util.VersionedFile

    private VersionedFile file_;

    public FileLogStream ( String baseDir , String baseName  )
            throws IOException
    {
        file_ = new VersionedFile ( baseDir , baseName , ".log" );
        simulateCrash_ = false;

        corrupt_ = false;
    }
View Full Code Here

Examples of com.softsizo.data.VersionedFile

        int i = 0;
        for (String filename : finalFilenames) {
            logger.info("Exploring file " + (++i) + " of " +
                    finalFilenames.size() + " @ rev "+ revision + " - " +
                    filename);
            VersionedFile versionedFile = data.getFileByFilename(filename);
            exploreFinalRevisionFile(data, versionedFile);
        }
    }
View Full Code Here

Examples of com.softsizo.data.VersionedFile

        for (String filename : initialFilenames) {
            ++i;
            logger.info("Exploring file " + (i) + " of " +
                    initialFilenames.size() + " @ rev " + revision + " - " +
                    filename);
            VersionedFile versionedFile = data.getFileByFilename(filename);
            exploreInitialRevisionFile(data, versionedFile);
        }
    }
View Full Code Here

Examples of com.softsizo.data.VersionedFile

  public void testRenderLocByAuthor() throws IOException {
    ExtractedData data = new ExtractedData();
    RevisionRange revisionRange = new RevisionRange(11, 101);
    data.setRevisionRange(revisionRange);
    ChartBuilder chartBuilder = new ChartBuilder(data);
    VersionedFile versionedFile = new VersionedFile("test");
    versionedFile.setCurrentLoc(new Author("sergio"), 22);
    versionedFile.setCurrentLoc(new Author("ivan"), 38);
    versionedFile.setCurrentLoc(new Author("dummy"), 40);
    File outputFile = new File("chart-test.png");
    outputFile.delete();
    assertFalse(outputFile.exists());
    chartBuilder.renderCurrentLocByAuthor(versionedFile, new File("chart-test.png"));
    assertTrue(outputFile.exists());
View Full Code Here

Examples of com.softsizo.data.VersionedFile

        Repository repository = new Repository()
            .setRoot("http://svn.test.com")
            .setUrl("http://svn.test.com/trunk")
            .setUuid("1234567890");
        data = new ExtractedData();
        VersionedFile file1 = data.getFileByFilename("/trunk/dir1/file1")
            .setInitialLoc(author1, 1)
            .setCurrentLoc(author1, 8)
            .setCurrentLoc(author2, 1);
        VersionedFile file2 = data.getFileByFilename("/trunk/dir2/file2")
            .setInitialLoc(author1, 10)
            .setCurrentLoc(author1, 94)
            .setCurrentLoc(author2, 8);
        data.addChangeSet(buildChangeSet(1, author1, file1, new LineCount(2, 0)))
          .addChangeSet(buildChangeSet(2, author2, file1, new LineCount(6, 3)))
View Full Code Here

Examples of com.softsizo.data.VersionedFile

  @Test
    public void testRenderAuthorsByFileReport() throws Exception {
        HtmlReportBuilder reportBuilder = new HtmlReportBuilder();
        reportBuilder.setExtractedData(new ExtractedData());
        VersionedFile file = new VersionedFile("/trunk/dir1/file1");
        Author author1 = new Author("sergio");
        Author author2 = new Author("ivan");
        file.setInitialLoc(author1, 33);
        file.setInitialLoc(author2, 22);
        file.setCurrentLoc(author1, 47);
        file.setCurrentLoc(author2, 98);
        buildChangeSet(1, author1, file, new LineCount(10, 0));
        buildChangeSet(2, author2, file, new LineCount(100, 5));
        buildChangeSet(3, author1, file, new LineCount(10, 25));
        String authorsByFileReport = reportBuilder
                .renderAuthorsByFileReport(file);
View Full Code Here

Examples of org.evolizer.versioncontrol.cvs.model.entities.VersionedFile

     * @param path
     *            the Path of the file to create
     * @return the {@link VersionedFile} created
     */
    private VersionedFile createFile(String path) {
        VersionedFile file = fFiles.get(path);
        if (file == null) {
            file = new VersionedFile(path, null);
            String parentPath = this.getParentDirectoryPath(path);
            if (parentPath != null) {
                Directory parent = fDirectories.get(parentPath);
                if (parent == null) {
                    parent = this.createDirectory(parentPath);
                }
                file.setParentDirectory(parent);
                parent.add(file);
            }
            fFiles.put(path, file);
            LOGGER.debug("Created File [" + file + "]");
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.