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. package com.sun.org.apache.xalan.internal.xsltc;
  20. /**
  21. * Admin class that assigns a version number to the XSLTC software.
  22. * The version number is made up from three fields as in:
  23. * MAJOR.MINOR[.DELTA]. Fields are incremented based on the following:
  24. * DELTA field: changes for each bug fix, developer fixing the bug should
  25. * increment this field.
  26. * MINOR field: API changes or a milestone culminating from several
  27. * bug fixes. DELTA field goes to zero and MINOR is
  28. * incremented such as: {1.0,1.0.1,1.0.2,1.0.3,...1.0.18,1.1}
  29. * MAJOR field: milestone culminating in fundamental API changes or
  30. * architectural changes. MINOR field goes to zero
  31. * and MAJOR is incremented such as: {...,1.1.14,1.2,2.0}
  32. * Stability of a release follows: X.0 > X.X > X.X.X
  33. * @author G. Todd Miller
  34. */
  35. public class ProcessorVersion {
  36. private static int MAJOR = 1;
  37. private static int MINOR = 0;
  38. private static int DELTA = 0;
  39. public static void _main(String[] args) {
  40. System.out.println("XSLTC version " + MAJOR + "." + MINOR +
  41. ((DELTA > 0) ? ("."+DELTA) : ("")));
  42. }
  43. }