All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.devonfw.cobigen.cli.utils.ProgressBar Maven / Gradle / Ivy

The newest version!
package com.devonfw.cobigen.cli.utils;

/**
 * This class is implementing process bar for when user first time running the CobiGen CLI because first time
 * downloading the dependency it is taking time .
 */

public class ProgressBar implements Runnable {

  private static void printProgress() {

    System.out.print(".");
  }

  @Override
  public void run() {

    System.out.println("");
    while (!Thread.interrupted()) {
      try {
        Thread.sleep(500);
      } catch (InterruptedException e) {
        System.out.println("");
        return;
      }
      printProgress();
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy