Examples of Updater


Examples of de.idos.updates.Updater

  }

  @Test(timeout = 1500)
  public void canInstallUpdatesEvenWhenTheActualVersionIsFixed() throws Exception {
    UpdateSystem updateSystem = ConfiguredUpdateSystem.loadProperties().create();
    Updater updater = getUpdaterThatHasRun(updateSystem);
    OngoingInstallation installation = updater.updateToLatestVersion();
    while(installation.isRunning()){
      //wait
    }
    Thread.sleep(500);
    assertThat(getUpdaterThatHasRun(updateSystem).hasUpdate(), is(UpdateAvailability.NotAvailable));
View Full Code Here

Examples of de.idos.updates.Updater

    String userHome = System.getProperty("user.home");
    return new File(userHome, ".updateunittest");
  }

  private Updater getUpdaterThatHasRun(UpdateSystem updateSystem) {
    Updater updater = updateSystem.checkForUpdates();
    updater.runCheck();
    return updater;
  }
View Full Code Here

Examples of de.idos.updates.Updater

  }

  @Test
  public void usesConfiguredHttpRepository() throws Exception {
    UpdateSystem updateSystem = ConfiguredUpdateSystem.loadProperties().create();
    Updater updater = getUpdaterThatHasRun(updateSystem);
    Version latestVersion = updater.getLatestVersion();
    assertThat(latestVersion, is(sameVersionAs(new NumericVersion(5, 0, 4))));
  }
View Full Code Here

Examples of de.idos.updates.Updater

    String userHome = System.getProperty("user.home");
    FileUtils.deleteQuietly(new File(userHome, ".updateunittest"));
  }

  private Updater getUpdaterThatHasRun(UpdateSystem updateSystem) {
    Updater updater = updateSystem.checkForUpdates();
    updater.runCheck();
    return updater;
  }
View Full Code Here

Examples of de.willuhn.sql.version.Updater

   */
  public void checkConsistency() throws RemoteException, ApplicationException
  {
    Logger.info("init update provider");
    UpdateProvider provider = new HBCIUpdateProvider(getConnection(),VersionUtil.getVersion(this,"db"));
    Updater updater = new Updater(provider,"iso-8859-1");
    updater.execute();
    Logger.info("updates finished");
  }
View Full Code Here

Examples of eu.curia.suivi2.datamanager.Updater

      ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(
          "applicationContext.xml");

      // Get bean
      final Reader reader = (Reader) ctx.getBean("readerThread");
      final Updater updater = (Updater) ctx.getBean("updaterThread");
      final UpdaterNoWait updaterNoWait = (UpdaterNoWait) ctx
          .getBean("updaterNoWaitThread");

      // Get thread
      Thread thReader = new Thread() {
        @SuppressWarnings("boxing")
        @Override
        public void run() {
          try {
            reader.action();
          } catch (DataAccessException dae) {
            // Check if there is a lock exception...
            if (dae instanceof TopLinkOptimisticLockingFailureException) {
              System.out
                  .printf(
                      "THREAD ID        : %s --> Version diff�rente !!!\n",
                      Thread.currentThread().getId());
            } else {
              System.out
                  .printf(
                      "THREAD ID        : %s --> Exception : %s !!!\n",
                      Thread.currentThread().getId(), dae
                          .getMessage());
            }
          } catch (Exception e) {
            e.printStackTrace();
          }
        }
      };

      Thread thUpdater = new Thread() {
        @SuppressWarnings("boxing")
        @Override
        public void run() {
          try {
            updater.action();
            System.out.printf(
                "THREAD ID        : %s --> Data updated !!!\n",
                Thread.currentThread().getId());
          } catch (DataAccessException dae) {
            // Check if there is a lock exception...
View Full Code Here

Examples of fitnesse.Updater

  */

  public static FitNesse launchFitNesse(Arguments arguments) throws Exception {
    loadPlugins();
    FitNesseContext context = loadContext(arguments);
    Updater updater = null;
    //if (!arguments.isOmittingUpdates())
      //updater = new UpdaterImplementation(context);
    PageVersionPruner.daysTillVersionsExpire = arguments
        .getDaysTillVersionsExpire();
    FitNesse fitnesse = new FitNesse(context, updater);
View Full Code Here

Examples of me.taylorkelly.bigbrother.griefcraft.util.Updater

    @Before
    public void setUp() throws Exception {
        BBSettings.initialize(new File("."));
        BBSettings.databaseSystem=DBMS.H2;
        BBSettings.mysqlPersistant=true;
        Updater updater = new Updater();
        updater.check();
        updater.update();
    }
View Full Code Here

Examples of me.taylorkelly.mywarp.griefcraft.Updater

    @Override
    public void onEnable() {
        name = this.getDescription().getName();
        version = this.getDescription().getVersion();

        updater = new Updater();
        try {
            updater.check();
            updater.update();
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of net.gravitydevelopment.updater.Updater

    if (config.getBoolean("Plugin.AutoUpdate", true)) {
      getServer().getScheduler().runTask(this, new Runnable() {
        @Override
        public void run() {
          Updater up = new Updater(getInstance(), 46631, getFile(),
              UpdateType.DEFAULT, true);
          if (!up.getResult().equals(UpdateResult.SUCCESS)) {
            if (up.getResult().equals(
                Updater.UpdateResult.FAIL_NOVERSION)) {
              log.info("Unable to connect to dev.bukkit.org.");
            } else {
              log.info("No Updates found on dev.bukkit.org.");
            }
          } else {
            log.info("Update "
                + up.getLatestName()
                + " found and downloaded please restart your server.");
          }
        }

      });
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.