PageRenderTime 13ms CodeModel.GetById 8ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/org/ooc/frontend/CompilerVersion.java

http://github.com/nddrylliog/ooc
Java | 25 lines | 10 code | 7 blank | 8 comment | 2 complexity | 657ed6a49c8339cbed5abc3d67e4b2e8 MD5 | raw file
 1package org.ooc.frontend;
 2
 3
 4/**
 5 * Contain versioning information about the compiler.
 6 * 
 7 * @author Amos Wenger
 8 */
 9public class CompilerVersion {
10
11	/**
12     * Print a line of information about the compiler
13     */
14	public static void printVersion() {
15
16		Object prop = System.getProperty("ooc.version");
17		if(prop == null) {
18			prop = CompilerVersion.class.getPackage().getImplementationVersion();
19		}
20		
21		System.out.println("ooc v"+prop);
22		
23	}
24	
25}