blob: f5cbb87296dbb4f2ecd4b1786047458a32a6fc4f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - Initial API and implementation
* Angelo Zerr <angelo.zerr@gmail.com> - Jetty packages
*******************************************************************************/
package org.eclipse.jst.server.jetty.core.internal;
/**
* Utility class to check for the existence of a class given as an argument.
*/
public class ClassDetector
{
public static void main(String[] args)
{
if (args == null || args.length != 1)
{
System.out.println("Usage: ClassDetector [className]");
return;
}
try
{
Class.forName(args[0]);
System.out.println("true");
}
catch (Exception e)
{
System.out.println("false");
}
}
}