19f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/*
29f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Licensed to the Apache Software Foundation (ASF) under one
39f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * or more contributor license agreements. See the NOTICE file
49f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * distributed with this work for additional information
59f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * regarding copyright ownership. The ASF licenses this file
69f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * to you under the Apache License, Version 2.0 (the  "License");
79f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * you may not use this file except in compliance with the License.
89f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * You may obtain a copy of the License at
99f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson *
109f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson *     http://www.apache.org/licenses/LICENSE-2.0
119f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson *
129f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Unless required by applicable law or agreed to in writing, software
139f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * distributed under the License is distributed on an "AS IS" BASIS,
149f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
159f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * See the License for the specific language governing permissions and
169f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * limitations under the License.
179f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */
189f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/*
199f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * $Id: XSLProcessorVersion.src 468640 2006-10-28 06:53:53Z minchau $
209f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */
219f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonpackage org.apache.xalan.processor;
229f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
239f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/**
249f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Administrative class to keep track of the version number of
259f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * the Xalan release.
269f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * <P>See also: org/apache/xalan/res/XSLTInfo.properties</P>
279f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @deprecated To be replaced by org.apache.xalan.Version.getVersion()
289f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @xsl.usage general
299f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */
309f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonpublic class XSLProcessorVersion
319f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson{
329f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
339f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  /**
349f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Print the processor version to the command line.
359f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *
369f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * @param argv command line arguments, unused.
379f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   */
389f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  public static void main(String argv[])
399f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  {
409f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson    System.out.println(S_VERSION);
419f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  }
429f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
439f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  /**
449f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Constant name of product.
459f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   */
469f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  public static final String PRODUCT = "Xalan";
479f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
489f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  /**
499f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Implementation Language.
509f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   */
519f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  public static final String LANGUAGE = "Java";
529f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
539f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  /**
549f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Major version number.
559f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Version number. This changes only when there is a
569f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          significant, externally apparent enhancement from
579f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          the previous release. 'n' represents the n'th
589f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          version.
599f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *
609f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          Clients should carefully consider the implications
619f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          of new versions as external interfaces and behaviour
629f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          may have changed.
639f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   */
649f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  public static final int VERSION = @version.VERSION@;
659f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
669f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  /**
679f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Release Number.
689f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Release number. This changes when:
699f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *            -  a new set of functionality is to be added, eg,
709f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *               implementation of a new W3C specification.
719f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *            -  API or behaviour change.
729f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *            -  its designated as a reference release.
739f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   */
749f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  public static final int RELEASE = @version.RELEASE@;
759f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
769f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  /**
779f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Maintenance Drop Number.
789f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Optional identifier used to designate maintenance
799f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          drop applied to a specific release and contains
809f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          fixes for defects reported. It maintains compatibility
819f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          with the release and contains no API changes.
829f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          When missing, it designates the final and complete
839f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          development drop for a release.
849f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   */
859f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  public static final int MAINTENANCE = @version.MINOR@;
869f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
879f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  /**
889f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Development Drop Number.
899f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Optional identifier designates development drop of
909f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          a specific release. D01 is the first development drop
919f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          of a new release.
929f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *
939f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          Development drops are works in progress towards a
949f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          compeleted, final release. A specific development drop
959f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          may not completely implement all aspects of a new
969f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          feature, which may take several development drops to
979f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          complete. At the point of the final drop for the
989f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          release, the D suffix will be omitted.
999f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *
1009f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          Each 'D' drops can contain functional enhancements as
1019f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          well as defect fixes. 'D' drops may not be as stable as
1029f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   *          the final releases.
1039f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   */
1049f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  public static final int DEVELOPMENT = 0;
1059f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
1069f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  /**
1079f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * Version String like <CODE>"<B>Xalan</B> <B>Language</B>
1089f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * v.r[.dd| <B>D</B>nn]"</CODE>.
1099f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   * <P>Semantics of the version string are identical to the Xerces project.</P>
1109f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   */
1119f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson  public static final String S_VERSION = PRODUCT+" "+LANGUAGE+" "
1129f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                                   +VERSION+"."+RELEASE+"."
1139f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                                   +(DEVELOPMENT > 0 ? ("D"+DEVELOPMENT)
1149f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                                     : (""+MAINTENANCE));
1159f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
1169f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson}
117