Package de.idos.updates

Examples of de.idos.updates.VersionStore


    }
    return new DefaultUpdateSystem(installedDiscovery, store, availableDiscovery, transfer);
  }

  private VersionStore createVersionStore() {
    VersionStore versionStore = VersionStoreBuilder.inUserHomeForApplication(configuration.getApplicationName()).create();
    if (configuration.getStrategy() == UpdateStrategy.LatestVersion) {
      return versionStore;
    } else {
      return new FixedVersionStore(new File(configuration.getLocationForFixedVersion()), versionStore);
    }
View Full Code Here


    }

    @Test
    public void createsFoldersInUserHome() throws Exception {
        System.setProperty("user.home", folder.getRoot().getAbsolutePath());
        VersionStore store = VersionStoreBuilder.inUserHomeForApplication("Demo").create();
        store.beginInstallation(new NumericVersion(1, 1, 1));
        File file = new File(folder.getRoot(), ".Demo/versions/1.1.1");
        System.out.println(file);
        assertThat(file.exists(), is(true));
    }
View Full Code Here

TOP

Related Classes of de.idos.updates.VersionStore

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.