01: /*
02: * Copyright 2001-2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: * Admin class that assigns a version number to the XSLTC software.
24: * The version number is made up from three fields as in:
25: * MAJOR.MINOR[.DELTA]. Fields are incremented based on the following:
26: * DELTA field: changes for each bug fix, developer fixing the bug should
27: * increment this field.
28: * MINOR field: API changes or a milestone culminating from several
29: * bug fixes. DELTA field goes to zero and MINOR is
30: * incremented such as: {1.0,1.0.1,1.0.2,1.0.3,...1.0.18,1.1}
31: * MAJOR field: milestone culminating in fundamental API changes or
32: * architectural changes. MINOR field goes to zero
33: * and MAJOR is incremented such as: {...,1.1.14,1.2,2.0}
34: * Stability of a release follows: X.0 > X.X > X.X.X
35: * @author G. Todd Miller
36: */
37: public class ProcessorVersion {
38: private static int MAJOR = 1;
39: private static int MINOR = 0;
40: private static int DELTA = 0;
41:
42: public static void main(String[] args) {
43: System.out.println("XSLTC version " + MAJOR + "." + MINOR
44: + ((DELTA > 0) ? ("." + DELTA) : ("")));
45: }
46: }
|