001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one
003     * or more contributor license agreements. See the NOTICE file
004     * distributed with this work for additional information
005     * regarding copyright ownership. The ASF licenses this file
006     * to you under the Apache License, Version 2.0 (the  "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at
009     *
010     *     http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     */
018    /*
019     * $Id: ProcessorVersion.java 468648 2006-10-28 07:00:06Z minchau $
020     */
021    
022    package org.apache.xalan.xsltc;
023    
024    
025    /**
026     * Admin class that assigns a version number to the XSLTC software.
027     * The version number is made up from three fields as in:
028     * MAJOR.MINOR[.DELTA]. Fields are incremented based on the following:
029     * DELTA field: changes for each bug fix, developer fixing the bug should
030     *              increment this field.
031     * MINOR field: API changes or a milestone culminating from several
032     *              bug fixes. DELTA field goes to zero and MINOR is
033     *              incremented such as: {1.0,1.0.1,1.0.2,1.0.3,...1.0.18,1.1}
034     * MAJOR field: milestone culminating in fundamental API changes or 
035     *              architectural changes.  MINOR field goes to zero
036     *              and MAJOR is incremented such as: {...,1.1.14,1.2,2.0}
037     * Stability of a release follows: X.0 > X.X > X.X.X  
038     * @author G. Todd Miller 
039     */
040    public class ProcessorVersion {
041        private static int MAJOR = 1;
042        private static int MINOR = 0;
043        private static int DELTA = 0;
044    
045        public static void main(String[] args) {
046            System.out.println("XSLTC version " + MAJOR + "." + MINOR +
047                ((DELTA > 0) ? ("."+DELTA) : ("")));
048        }
049    }