Method Summary |
|
public static String | baseClassName(String name) |
public static String | baseName(String name) Return basename of a string similar to unix basename command. |
public static void | copyFile(File src, File dst) |
public static void | copyFileRecursive(File source, File dest) |
public static boolean | deleteRecursive(File dir) Deletes all files and subdirectories under dir. |
public static Project | fileToProject(File projectDir) Returns a NB Project for a project directory or else null if not a project. |
public static File | findUniqueFile(File dir, String baseFileName, String suffix) Find unique file name within a directory which can either be a plain file or a directory.
Parameters: dir - eg. |
public static File | freeJarFile(File origFile) Possibly make a copy of a file to workaround a problem on Windows where a jar file can be
locked and not allow the user to remove it. |
public static Project | getActiveProject() Return the Project that is currently active according to the Designer. |
public static String | getCodeNameBase() Returns the NetBeans module code name base. |
public static File | getComplibStateDir() Get the directory where state of this module is kept. |
public static Logger | getLogger() Returns the Logger for this NB module. |
public static File | getNetBeansInstallDirectory() |
public static File | getProjectLibraryDirectory(Project project) Returns a directory under the project root under which library resources such as jar files
can be managed by the IDE. |
public static File | getRaveSamplesDirectory() |
public static void | logError(Throwable th) |
public static void | logError(String msg) |
public static void | logError(String msg, Throwable cause) |
public static void | logWarning(Throwable th) |
public static void | logWarning(String msg) |
public static void | logWarning(String msg, Throwable cause) |
public static void | printDebug(String msg) |
public static String | removeExtension(String name) Return the non-extension part of a filename. |
public static String | removeWhiteSpace(String str) |
public static void | runAntTask(File antScript, String target, Properties props) |
public static void | unzip(File zipFile, File dest) Unzip a zip or jar file into a dest directory. |