JML

org.multijava.util
Class ClassPathContains

java.lang.Object
  extended byorg.multijava.util.ClassPathContains

public class ClassPathContains
extends Object

This class is a command-line utility to test for the presence of a given class on the CLASSPATH. It is invoked like: java org.multijava.util.Classpath {pack.subpack.Class}+ It returns an error code of 0 if all the listed classes exist on the CLASSPATH and 1 otherwise. Alternatively, with an option of -d as the first argument, it interprets argument 2 as a file or directory name, and tests which of arguments 3 and following contain argument 2, printing the first such argument that does contain it. It exits with 0 if one is found, and 1 if none is found. - DRCok 11/9/2003

Version:
$Revision: 1.4 $
Author:
Curtis Clifton

Constructor Summary
ClassPathContains()
           
 
Method Summary
private static boolean classExists(String fullyQualifiedClassName)
           
private static void find(String[] args)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPathContains

public ClassPathContains()
Method Detail

main

public static void main(String[] args)

classExists

private static boolean classExists(String fullyQualifiedClassName)

find

private static void find(String[] args)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.