Listing A
public class MyApp {
    public static final String RELEASE = "@RELEASE@";
    public static final String APP_NAME = "MyApp";
    public static final String VERSION =  "1.0";
 
 
    public static String getVersionString() {
        return APP_NAME + " " + VERSION + " ("
            + System.getProperty("os.arch")+"; "+System.getProperty("os.name")
            + ((("@REL" + "EASE@").equals(RELEASE))?"":("; " + RELEASE))
            + ")";
    }
 
 
    public static void main(String[] args) {
        System.out.println(getVersionString());
    }
}