Package de.idos.updates.repository

Examples of de.idos.updates.repository.Repository


  @Before
  public void initializeVersionRepository() throws Throwable {
    folder.create();
    this.repositoryFolder = folder.newFolder("repository");
    this.versionStoreFolder = folder.newFolder("versions");
    Repository repository = new FilesystemRepository(repositoryFolder);
    versionStore = new FilesystemVersionStore(versionStoreFolder,
            new ZipInstallationStarter(new FilesystemInstallationStarter()));
    updateSystemBuilder.useStore(versionStore);
    updateSystemBuilder.useRepository(repository);
    Installation installation = versionStore.beginInstallation(currentVersion);
View Full Code Here


    fileServer.start();
  }

  @Given("^a repository for that server$")
  public void an_HTTP_Repository_for_that_server() throws Throwable {
    Repository repository = new HttpRepository("http://localhost:8080/updates/");
    updateSystemBuilder.useRepository(repository);
  }
View Full Code Here

  private Version installedVersionFallback;

  private ConfiguredUpdateSystem() {
    Properties properties = new PropertiesLoader("update.properties").load();
    this.configuration = new UpdateConfiguration(properties);
    Repository repository = createRepository();
    this.store = createVersionStore();
    this.availableDiscovery = repository;
    this.transfer = repository;
  }
View Full Code Here

TOP

Related Classes of de.idos.updates.repository.Repository

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.