1 /* 2 * Copyright 2001-2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 /* 17 * $Id: ProcessorVersion.java,v 1.3 2004/02/16 20:54:58 minchau Exp $ 18 */ 19 20 package org.apache.xalan.xsltc; 21 22 23 /** 24 * Admin class that assigns a version number to the XSLTC software. 25 * The version number is made up from three fields as in: 26 * MAJOR.MINOR[.DELTA]. Fields are incremented based on the following: 27 * DELTA field: changes for each bug fix, developer fixing the bug should 28 * increment this field. 29 * MINOR field: API changes or a milestone culminating from several 30 * bug fixes. DELTA field goes to zero and MINOR is 31 * incremented such as: {1.0,1.0.1,1.0.2,1.0.3,...1.0.18,1.1} 32 * MAJOR field: milestone culminating in fundamental API changes or 33 * architectural changes. MINOR field goes to zero 34 * and MAJOR is incremented such as: {...,1.1.14,1.2,2.0} 35 * Stability of a release follows: X.0 > X.X > X.X.X 36 * @author G. Todd Miller 37 */ 38 public class ProcessorVersion { 39 private static int MAJOR = 1; 40 private static int MINOR = 0; 41 private static int DELTA = 0; 42 43 public static void main(String[] args) { 44 System.out.println("XSLTC version " + MAJOR + "." + MINOR + 45 ((DELTA > 0) ? ("."+DELTA) : (""))); 46 } 47 } 48