Created
April 28, 2013 15:49
-
-
Save takawitter/5477296 to your computer and use it in GitHub Desktop.
libディレクトリの全jarファイルをクラスパスとして連結。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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