// Title:        SEPASAL web interface
// Copyright:    Copyright (c) 2000
// Company:      Royal Botanic Gardens Kew
// Author:       Joe Gittings
// File:         JonathanDotPropTest.java

package uk.org.rbgkew.sepasal.ejb;

import java.io.*;
import java.util.*;
import uk.org.rbgkew.sepasal.util.ejb.*;

/**Test class to see if jonathan.prop is in the classpath and correct.*/
public class JonathanDotPropTest
{
	public static void main(String args[])
   {
   	java.io.File test = new java.io.File("");
      System.out.println("Current dir is " + test.getAbsolutePath());
      System.out.flush();

      Properties testProps = new Properties() ;
      try
      {
	      InputStream is = (ClassLoader.getSystemResourceAsStream("jonathan.prop")) ;
         testProps.load(is);
         System.out.println("jonathan.prop contains " + testProps.size() + " props");
      }
      catch (Exception e)
      {
   	   e.printStackTrace();
         System.out.println("Unable to find jonathan.prop in classpath");
      }
   }
}

