All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----javabuildtools.Utils
Given a directory and an array of extensions...
Given a directory.
Given a filename.
public static final String version
public Utils()
public static String[] getPackageNames(String javafilename) throws Exception
Given a filename. Finds the root folder, and then determines what java packages exists throughout the hierarchy.
A package is identified by determining files with a .java file in them and if they have one, makes sure its "package" reference is correct.
public static String[] getPackageNames(File directory) throws Exception
Given a directory. Finds the root folder, and then determines what java packages exists throughout the hierarchy.
A package is identified by determining files with a .java file in them and if they have one, makes sure its "package" reference is correct.
public static String getPackageName(String fileName) throws Exception
public static String getBaseDirectory(String filename) throws Exception
public static String[] getFilesFromExtension(String directory, String extensions[])
Given a directory and an array of extensions... return an array of compliant files.
The given extensions should be like "java" and not like ".java"
public static String globalStringReplace(String original, String find, String replacement)
private static Vector blendFilesToVector(Vector v, String files[])
private static boolean isValidFile(String file, String extensions[])
public static String getFullClassname(String javafile) throws Exception
All Packages Class Hierarchy This Package Previous Next Index