KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quartz > helpers > VersionPrinter


1
2 /*
3  * Copyright 2004-2005 OpenSymphony
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6  * use this file except in compliance with the License. You may obtain a copy
7  * of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14  * License for the specific language governing permissions and limitations
15  * under the License.
16  *
17  */

18
19 /*
20  * Previously Copyright (c) 2001-2004 James House
21  */

22 package org.quartz.helpers;
23
24 import org.quartz.core.QuartzScheduler;
25
26 /**
27  * <p>
28  * Prints the version of Quartz on stdout.
29  * </p>
30  *
31  * @author James House
32  */

33 public class VersionPrinter {
34
35     /**
36      * Private constructor because this is a pure utility class.
37      */

38     private VersionPrinter() {
39     }
40
41     /*
42      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43      *
44      * Interface.
45      *
46      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
47      */

48
49     public static void main(String JavaDoc[] args) {
50         System.out.println("Quartz version: " + QuartzScheduler.getVersionMajor()
51                 + "." + QuartzScheduler.getVersionMinor() + "."
52                 + QuartzScheduler.getVersionIteration());
53     }
54 }
55
Popular Tags