01: /*
02: * File: VersionInfo.java
03: * Project: AraIUBase, com.aranova.java.jmos
04: * Revision: 0.9.1
05: * Date: 18-ene-2006 13:40:29
06: *
07: * Copyright (C) Aragón Innovación Tecnológica S.L.L.
08: * All rights reserved.
09: *
10: * This software is distributed under the terms of the Aranova License version 1.0.
11: * See the terms of the Aranova License in the documentation provided with this software.
12: */
13:
14: package com.aranova.java.jmos;
15:
16: import java.io.IOException;
17: import java.util.Properties;
18:
19: /**
20: * Clase de información de la versión del paquete.
21: *
22: * @author <a href="http://www.aranova.net/contactar/">Daniel Sánchez</a>
23: * @version 0.9.1
24: * @since 0.9.1
25: */
26: public final class VersionInfo {
27:
28: private VersionInfo() {
29: super ();
30: }
31:
32: /**
33: * Punto de entrada de la aplicación.
34: * @param arg
35: * @throws IOException
36: */
37: public static void main(final String[] arg) throws IOException {
38: ClassLoader cl = VersionInfo.class.getClassLoader();
39: Properties props = new Properties();
40: props.load(cl.getResourceAsStream("jar.properties"));
41:
42: System.out.println(props.get("title") + " - Version "
43: + props.get("version"));
44: }
45: }
|