/***************************************************************************** * Copyright (C) 2008 EnterpriseDB Corporation. * Copyright (C) 2011 Stado Global Development Group. * * This file is part of Stado. * * Stado is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Stado is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Stado. If not, see <http://www.gnu.org/licenses/>. * * You can find Stado at http://www.stado.us * ****************************************************************************/ package org.postgresql.driver.util; import org.postgresql.driver.Driver; /** * This class holds the current build number and a utility program to print * it and the file it came from. The primary purpose of this is to keep * from filling the cvs history of Driver.java.in with commits simply * changing the build number. The utility program can also be helpful for * people to determine what version they really have and resolve problems * with old and unknown versions located somewhere in the classpath. */ public class PSQLDriverVersion { public final static int buildNumber = 801; public static void main(String args[]) { java.net.URL url = Driver.class.getResource("/org/postgresql/Driver.class"); System.out.println(Driver.getVersion()); System.out.println("Found in: " + url); } }