Skip to Content.
Sympa Menu

freetds - DrvierInfo class file

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Edson Richter - Via Ápia <richter AT viaapia.com.br>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: DrvierInfo class file
  • Date: Wed, 2 Aug 2000 12:55:07 -0300

Thats just my 2 cents...
 
This class will search for a "version_info.txt" file into distribution directory (or Jar file)...
Will print out the properties for user instalation (including information about Operating system, JDK version, etc).
 
I think that this will help (this works fine for my apps).
 
[]s
 
Edson Richter
 

 

//
// Copyright 1998, 1999 CDS Networks, Inc., Medford Oregon
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by CDS Networks, Inc.
// 4. The name of CDS Networks, Inc. may not be used to endorse or promote
// products derived from this software without specific prior
// written permission.
//
// THIS SOFTWARE IS PROVIDED BY CDS NETWORKS, INC. ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL CDS NETWORKS, INC. BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//

package com.internetcds.jdbc.tds;

/**
* Print out informations about FreeTDS driver, and other usefull information
*
* @version $Revision: $
* @author Edson Carlos Ericksson Richter
*/

public class DriverInfo {
public static void main( String [] args ) {

try {
java.io.BufferedReader br = new
java.io.BufferedReader( new java.io.FileReader( "version_info.txt" ) );

try {
while( true )
System.out.println( br.readLine( ) );
} catch( java.io.IOException ioE ) {};
} catch( java.io.FileNotFoundException ioFNF ) {
System.err.println( "Info file cannot be found!!!" );
ioFNF.printStackTrace( System.err );
}

System.getProperties( ).list( System.out );
}
}


  • DrvierInfo class file, Edson Richter - Via Ápia, 08/02/2000

Archive powered by MHonArc 2.6.24.

Top of Page