hudson.plugins.analysis.util
Class PackageDetectors
java.lang.Object
hudson.plugins.analysis.util.PackageDetectors
public final class PackageDetectors
- extends Object
Provides convenient methods to determine the package or namespace names of a
file.
- Author:
- Ulli Hafner
|
Method Summary |
static String |
detectPackageName(String fileName)
Detects the package name of the specified file based on several detector
strategies. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNDEFINED_PACKAGE
public static final String UNDEFINED_PACKAGE
- If no package could be assigned this value is used as package name.
- See Also:
- Constant Field Values
detectPackageName
public static String detectPackageName(String fileName)
- Detects the package name of the specified file based on several detector
strategies.
- Parameters:
fileName - the filename of the file to scan
- Returns:
- the package name or an empty string
Copyright © 2004-2012 Hudson. All Rights Reserved.