/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

  1. package org.ooc.frontend;
  2. /**
  3. * Contain versioning information about the compiler.
  4. *
  5. * @author Amos Wenger
  6. */
  7. public class CompilerVersion {
  8. /**
  9. * Print a line of information about the compiler
  10. */
  11. public static void printVersion() {
  12. Object prop = System.getProperty("ooc.version");
  13. if(prop == null) {
  14. prop = CompilerVersion.class.getPackage().getImplementationVersion();
  15. }
  16. System.out.println("ooc v"+prop);
  17. }
  18. }