Examples of SerialScanner


Examples of org.sonatype.sisu.resource.scanner.scanners.SerialScanner

        // copy repository content to a temporary location
        final File content = getP2Content(configuration, repository);
        final File tempContent = new File(destinationP2Repository, content.getName());
        FileUtils.copyFile(content, tempContent);

        new SerialScanner().scan(scanPath, new ListenerSupport()
        {

          @Override
          public void onFile(final File file) {
            try {
View Full Code Here

Examples of org.sonatype.sisu.resource.scanner.scanners.SerialScanner

        "/is24-tomcat-mysql-jdbc-5.1.15-2.1082.noarch.rpm",
        null,
        true,
        false,
        listFileFactory(writeRpmListFile(rpmsDir(), NO_VERSION)),
        new RpmScanner(new SerialScanner())
    ).writeList();

    assertThat(rpmListFile, FileMatchers.containsOnly("is24-tomcat-mysql-jdbc-5.1.15-2.1082.noarch.rpm\n"));
  }
View Full Code Here

Examples of org.sonatype.sisu.resource.scanner.scanners.SerialScanner

        null,
        null,
        true,
        false,
        listFileFactory(writeRpmListFile(rpmsDir(), NO_VERSION)),
        new RpmScanner(new SerialScanner())
    ).writeList();
    assertThat(rpmListFile, FileMatchers.containsOnly(osIndependent(FILE_CONTENT)));
  }
View Full Code Here

Examples of org.sonatype.sisu.resource.scanner.scanners.SerialScanner

        osIndependent("conflict-artifact/2.2-1/conflict-artifact-2.2-1.noarch.rpm"),
        null,
        true,
        false,
        listFileFactory(writeRpmListFile(rpmsDir(), NO_VERSION)),
        new RpmScanner(new SerialScanner())
    ).writeList();
    assertThat(rpmListFile, FileMatchers.containsOnly(osIndependent(FILE_CONTENT)));
  }
View Full Code Here

Examples of org.sonatype.sisu.resource.scanner.scanners.SerialScanner

        NEW_RPM1 + pathSeparator + NEW_RPM2,
        null,
        false,
        false,
        listFileFactory(writeRpmListFile(rpmsDir(), NO_VERSION)),
        new RpmScanner(new SerialScanner())
    ).writeList();

    assertThat(rpmListFile, FileMatchers.contains(NEW_RPM1, NEW_RPM2));
    assertThat(rpmListFile, not(FileMatchers.contains(pathSeparator)));
  }
View Full Code Here

Examples of org.sonatype.sisu.resource.scanner.scanners.SerialScanner

        NO_ADDED_FILE,
        version,
        NO_SINGLE_RPM_PER_DIRECTORY,
        false,
        listFileFactory(rpmListFile),
        new RpmScanner(new SerialScanner())
    ).writeList();

    return rpmListFile;
  }
View Full Code Here

Examples of org.sonatype.sisu.resource.scanner.scanners.SerialScanner

      File scanPath = localStorage;
      if (resourceStorePath != null) {
        scanPath = new File(scanPath, resourceStorePath);
      }

      new SerialScanner().scan(scanPath, new ListenerSupport()
      {

        @Override
        public void onFile(final File file) {
          final String path = getRelativePath(localStorage, 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.