| 3 |
|
import java.util.HashMap; |
| 4 |
|
import java.util.HashSet; |
| 5 |
|
|
| 6 |
– |
import net.oni2.aeinstaller.backend.depot.DepotCacheUpdateProgressListener; |
| 6 |
|
import net.oni2.aeinstaller.backend.depot.DepotConfig; |
| 7 |
|
import net.oni2.aeinstaller.backend.depot.DepotManager; |
| 8 |
|
import net.oni2.aeinstaller.backend.depot.model.Node; |
| 19 |
|
*/ |
| 20 |
|
public static void main(String[] args) { |
| 21 |
|
System.out.println("Reading Depot data:"); |
| 22 |
< |
DepotManager.getInstance().updateInformation(false, |
| 24 |
< |
new DepotCacheUpdateProgressListener() { |
| 25 |
< |
|
| 26 |
< |
@Override |
| 27 |
< |
public void cacheUpdateProgress(String stepName, |
| 28 |
< |
int current, int total) { |
| 29 |
< |
System.out.format("%50s", ""); |
| 30 |
< |
System.out.format("\rStep %2d / %2d - %s", current, |
| 31 |
< |
total, stepName); |
| 32 |
< |
} |
| 33 |
< |
}); |
| 22 |
> |
DepotManager.getInstance().updateInformation(false); |
| 23 |
|
System.out.println("\nReading done"); |
| 24 |
|
System.out.println(); |
| 25 |
|
DepotManager.getInstance().printStats(); |