Created
March 15, 2018 07:08
-
-
Save Exerosis/032117b980bb2efa38b92735e15d92ec to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| createDirectories(path.getParent()); | |
| if (!exists(path)) { | |
| if (resource != null) { | |
| InputStream stream = getSystemResourceAsStream(this.resource.toString()); | |
| if (stream == null) | |
| throw new IllegalStateException("Could not find a resource at: " + resource); | |
| copy(stream, path); | |
| } else | |
| createFile(path); | |
| } | |
| config = loadConfiguration(newBufferedReader(path)); | |
| return config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment