org.multijava.util
Class ClassPathContains
java.lang.Object
org.multijava.util.ClassPathContains
- public class ClassPathContains
- extends java.lang.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
|
Method Summary |
private static boolean |
classExists(java.lang.String fullyQualifiedClassName)
|
private static void |
find(java.lang.String[] args)
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassPathContains
public ClassPathContains()
main
public static void main(java.lang.String[] args)
classExists
private static boolean classExists(java.lang.String fullyQualifiedClassName)
find
private static void find(java.lang.String[] args)
mjc is Copyright (C) 2000-2004 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. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.