()
| 246 | } |
| 247 | |
| 248 | public static void setToolVersion() throws IOException { |
| 249 | InputStream propsStream = Tool.class.getClassLoader().getResourceAsStream("codebuff.properties"); |
| 250 | Properties prop = new Properties(); |
| 251 | prop.load(propsStream); |
| 252 | version = (String)prop.get("version"); |
| 253 | propsStream.close(); |
| 254 | } |
| 255 | |
| 256 | public static CodeBuffTokenStream tokenize(String doc, Class<? extends Lexer> lexerClass) |
| 257 | throws Exception { |