Skip to content

Instantly share code, notes, and snippets.

@takawitter
Created April 28, 2013 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takawitter/5477296 to your computer and use it in GitHub Desktop.
Save takawitter/5477296 to your computer and use it in GitHub Desktop.
libディレクトリの全jarファイルをクラスパスとして連結。
Arrays.stream(new File("lib").listFiles(f -> f.getName().endsWith(".jar")))
.map(f -> f.getAbsolutePath())
.reduce(".", (l, r) -> l + File.pathSeparator + r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment