01: /*
02: * Cobertura - http://cobertura.sourceforge.net/
03: *
04: * Copyright (C) 2003 jcoverage ltd.
05: * Copyright (C) 2005 Mark Doliner
06: * Copyright (C) 2005 Erik Dick
07: *
08: * Cobertura is free software; you can redistribute it and/or modify
09: * it under the terms of the GNU General Public License as published
10: * by the Free Software Foundation; either version 2 of the License,
11: * or (at your option) any later version.
12: *
13: * Cobertura is distributed in the hope that it will be useful, but
14: * WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: * General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public License
19: * along with Cobertura; if not, write to the Free Software
20: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21: * USA
22: */
23:
24: package net.sourceforge.cobertura.util;
25:
26: import java.io.PrintStream;
27:
28: public abstract class Header {
29:
30: public static String version() {
31: Package this Package = Header.class.getPackage();
32: return (this Package != null ? this Package
33: .getImplementationVersion() : "cvs");
34: }
35:
36: public static void print(PrintStream out) {
37: out
38: .println("Cobertura "
39: + version()
40: + " - GNU GPL License (NO WARRANTY) - See COPYRIGHT file");
41: }
42: }
|