Created
November 28, 2014 14:39
-
-
Save oehme/84f56a72cf9d3413aee0 to your computer and use it in GitHub Desktop.
Loading the ResourceBundle in the Compiler
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
val propertyFile = cls.compilationUnit.filePath.parent.append(cls.simpleName + ".properties") | |
if (!propertyFile.exists) { | |
cls.addError('''Property file «propertyFile» does not exist''') | |
return | |
} | |
val resourceBundle = new PropertyResourceBundle(propertyFile.contentsAsStream) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment