01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.desktop.deployment;
07:
08: import java.util.ResourceBundle;
09: import java.util.PropertyResourceBundle;
10:
11: class CmdVersion {
12:
13: public static final String COMMANDNAME = "par";
14: public static final String COMMANDVERSION = "1.1";
15:
16: static public void main(String[] args) {
17: printVersion();
18: System.exit(0);
19: }
20:
21: static void printVersion() {
22: System.out.println(getVersionInfo());
23: }
24:
25: public static String getVersionInfo() {
26: ResourceBundle prodRB = PropertyResourceBundle
27: .getBundle("PSversion");
28: StringBuffer vinfo = new StringBuffer();
29: vinfo.append(COMMANDNAME).append(" (").append(
30: prodRB.getString("productname")).append(" ").append(
31: prodRB.getString("productversion")).append(") ")
32: .append(COMMANDVERSION);
33: vinfo.append("\n").append(prodRB.getString("copyright"));
34: return vinfo.toString();
35: }
36: }
|