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

scala.build.internal.JniGetWinDirs Maven / Gradle / Ivy

package scala.build.internal;

import java.util.ArrayList;

import coursier.cache.shaded.dirs.GetWinDirs;
import coursier.jniutils.WindowsKnownFolders;

public class JniGetWinDirs implements GetWinDirs {
  @Override
  public String[] getWinDirs(String... guids) {
    ArrayList list = new ArrayList<>();
    for (int i = 0; i < guids.length; i++) {
      list.add(WindowsKnownFolders.knownFolderPath("{" + guids[i] + "}"));
    }
    return list.toArray(new String[list.size()]);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy