| java.lang.Object com.sun.portal.sra.admin.util.Util
Constructor Summary | |
public | Util() |
Method Summary | |
public static void | addFileToJar(String jarPath, String entryName, File file) | public static void | addJarToClasspath(String jarFileName) | public static void | appendLineEof(File file, String text, boolean checkIfExists) | public static boolean | appendLineInFile(File file, String match, String text) | public static void | changeFilePermission(String targetfile, String permission) | public static void | copyDir(String fromDirName, String toDirName) | public static void | copyFile(String fromFilename, String toFilename) | public static void | copyFile(File fromFile, File toFile) | public static void | copyFile(File fromFile, File toFile, boolean deleteSourceFile) | public static void | createSymbolicLink(String source, String target) | public static void | debug(String str) | public static String | decoratePath(String path) | public static boolean | deleteDir(String dirName) | public static boolean | deleteDir(File dir) | public static boolean | deleteFile(String filename) | public static boolean | deleteFile(File file) | public static void | deleteLineInFile(File file, String pattern) | public static void | deleteUntilBlankLineInFile(File file, String startPattern) | public static boolean | directoryExists(String dirName) | public static void | dos2unix(File file) | public static String | escapeSpaces(String str) | public static Reader | execute(String command, String[] args, Vector envs, File dir) | public static Reader | executeWindows(String command, String[] args, Vector envs, File dir) | public static File | extractFileFromJar(String jarPath, String filePath) | public static String | extractPattern(File file, String patternBegin, String patternEnd) | public static void | extractPatternFromFile(File file, StringBuffer target, String patternBegin, String patternEnd) | public static String | extractPatternTillEOL(File file, String key, String separator) | public static boolean | fileExists(String filename) | public static String | findTextInFile(File file, String text) | public static FilenameFilter | getExtensionFilter(String ext) | public static void | getFiles(File pwd, Vector allFiles) | public static void | getFilteredFiles(File pwd, Vector allFiles, String ext) | public static File[] | getSubDirectories(File parent) | public static boolean | isOS(String type) | public static boolean | isRoot() | public static boolean | is_hpux() | public static boolean | is_linux() | public static boolean | is_windows() | public static boolean | makeDir(String dirName) | public static boolean | match(String name) | public static boolean | match_os(String os_name) | public static void | moveFile(String fromFilename, String toFilename) | public static void | moveFile(File fromFile, File toFile) | public static void | renameDir(String fromDirName, String toDirName) | public static void | replaceAllInstancesOfTokenInFile(File file, String token, String newText) | public static void | replaceAllInstancesOfTokenInFile(File origFile, File newFile, String token, String newText) | public static void | replaceLineInFile(File file, String pattern, StringBuffer text) | public static String | replaceToken(String source, String token, String newText) | public static void | replaceTokenInFile(File origFile, File newFile, String token, String newText) | public static void | replaceTokenInFile(File file, String token, String newText) | public static void | replaceTokenInFile(File file, String[] tokens, String[] values) | public static String | replaceTokens(String source, String[] tokens, String[] values) | public static Reader | runCommandLine(String command) | public static Reader | runCommandLine(String command, String[] args) | public static Reader | runCommandLine(String command, String[] args, Vector envs) | public static Reader | runCommandLine(String command, String[] args, Vector envs, File dir) |
addJarToClasspath | public static void addJarToClasspath(String jarFileName)(Code) | | |
deleteDir | public static boolean deleteDir(String dirName)(Code) | | |
deleteDir | public static boolean deleteDir(File dir)(Code) | | |
deleteFile | public static boolean deleteFile(String filename)(Code) | | |
deleteFile | public static boolean deleteFile(File file)(Code) | | |
directoryExists | public static boolean directoryExists(String dirName)(Code) | | |
fileExists | public static boolean fileExists(String filename)(Code) | | |
getSubDirectories | public static File[] getSubDirectories(File parent)(Code) | | |
isRoot | public static boolean isRoot()(Code) | | |
is_hpux | public static boolean is_hpux()(Code) | | |
is_linux | public static boolean is_linux()(Code) | | |
is_windows | public static boolean is_windows()(Code) | | |
match_os | public static boolean match_os(String os_name)(Code) | | |
|
|