FileDocCategorySizeDatePackage
Version.javaAPI DocApache Axis 1.42313Sat Apr 22 18:57:28 BST 2006org.apache.axis

Version

public class Version extends Object
Little utility to get the version and build date of the axis.jar. The messages referenced here are automatically kept up-to-date by the build.xml.
author
Glen Daniels (gdaniels@apache.org)

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.StringgetVersion()
Get the version of this AXIS.

return
the version of this axis

        return Messages.getMessage("axisVersion") + "\n" +
               Messages.getMessage("builtOn");
    
public static java.lang.StringgetVersionText()
Returns the Axis Version number and build date.

Example output: 1.1 Jul 08, 2003 (09:00:12 EDT)

return
the full version of this axis

        return Messages.getMessage("axisVersionRaw") + " " + Messages.getMessage("axisBuiltOnRaw");
    
public static voidmain(java.lang.String[] args)
Entry point.

Calling this with no arguments returns the version of the client-side axis.jar. Passing a URL which points to a remote Axis server will attempt to retrieve the version of the server via a SOAP call.

        if (args.length != 1)
            System.out.println(getVersion());
        else
            try {
                Call call = new Call(args[0]);
                String result = (String)call.invoke("Version", "getVersion",
                                                    null);
                System.out.println(result);
            } catch (Exception e) {
                e.printStackTrace();
            }