1 16 17 package org.apache.axis; 18 19 import org.apache.axis.client.Call; 20 import org.apache.axis.utils.Messages; 21 22 30 public class Version { 31 36 public static String getVersion() 37 { 38 return Messages.getMessage("axisVersion") + "\n" + 39 Messages.getMessage("builtOn"); 40 } 41 42 49 public static String getVersionText() 50 { 51 return Messages.getMessage("axisVersionRaw") + " " + Messages.getMessage("axisBuiltOnRaw"); 52 } 53 54 61 public static void main(String [] args) { 62 if (args.length != 1) 63 System.out.println(getVersion()); 64 else 65 try { 66 Call call = new Call(args[0]); 67 String result = (String )call.invoke("Version", "getVersion", 68 null); 69 System.out.println(result); 70 } catch (Exception e) { 71 e.printStackTrace(); 72 } 73 } 74 } 75 | Popular Tags |