| java.lang.Object org.eclipse.pde.internal.build.Utils
Method Summary | |
public static File[] | asFile(String[] target) | public static File[] | asFile(URL[] target) | public static URL[] | asURL(String[] target) Converts an array of strings into an array of URLs. | public static URL[] | asURL(Collection target) | public static Collection | copyFiles(String fromDir, String toDir) | public static List | extractPlugins(List initialList, List toExtract) | public static Collection | findFiles(File from, String foldername, String filename) | public static void | generatePermissions(Properties featureProperties, Config aConfig, String targetRootProperty, AntScript script) | public static String[] | getArrayFromString(String list, String separator) Convert a list of tokens into an array. | public static String[] | getArrayFromString(String list) Return a string array constructed from the given list of comma-separated
tokens. | public static String[] | getArrayFromStringWithBlank(String list, String separator) Convert a list of tokens into an array. | public static IPluginEntry[] | getPluginEntry(IFeature feature, String pluginId, boolean raw) | public static String | getPropertyFormat(String propertyName) Return a string with the given property name in the format:
${propertyName} . | public static String | getStringFromArray(String[] values, String separator) Return a string which is a concatination of each member of the given
array, separated by the given separator. | public static String | getStringFromCollection(Collection collection, String separator) Return a string which is a concatination of each member of the given
collection, separated by the given separator. | public static boolean | isBinary(BundleDescription bundle) | public static boolean | isIn(IPluginEntry[] array, IPluginEntry element) | public static int | isStringIn(String[] searched, String toSearch) | public static IPath | makeRelative(IPath location, IPath base) Return a path which is equivalent to the given location relative to the
specified base path. | public static Object[] | parseExtraBundlesString(String input, boolean onlyId) | public static String | removeEndingSlashes(String value) | public static void | transferStreams(InputStream source, OutputStream destination) Transfers all available bytes from the given input stream to the given
output stream. |
asURL | public static URL[] asURL(String[] target) throws CoreException(Code) | | Converts an array of strings into an array of URLs.
Parameters: target - URL[] throws: CoreException - |
getArrayFromString | public static String[] getArrayFromString(String list, String separator)(Code) | | Convert a list of tokens into an array. The list separator has to be
specified.
|
getArrayFromString | public static String[] getArrayFromString(String list)(Code) | | Return a string array constructed from the given list of comma-separated
tokens.
Parameters: list - the list to convert the array of strings |
getArrayFromStringWithBlank | public static String[] getArrayFromStringWithBlank(String list, String separator)(Code) | | Convert a list of tokens into an array. The list separator has to be
specified. The spcecificity of this method is that it returns an empty
element when to same separators are following each others. For example
the string a,,b returns the following array [a, ,b]
|
getPluginEntry | public static IPluginEntry[] getPluginEntry(IFeature feature, String pluginId, boolean raw)(Code) | | |
getPropertyFormat | public static String getPropertyFormat(String propertyName)(Code) | | Return a string with the given property name in the format:
${propertyName} .
Parameters: propertyName - the name of the property String |
getStringFromArray | public static String getStringFromArray(String[] values, String separator)(Code) | | Return a string which is a concatination of each member of the given
array, separated by the given separator.
Parameters: values - the array to concatinate Parameters: separator - the separator to use String |
getStringFromCollection | public static String getStringFromCollection(Collection collection, String separator)(Code) | | Return a string which is a concatination of each member of the given
collection, separated by the given separator.
Parameters: collection - the collection to concatinate Parameters: separator - the separator to use String |
isBinary | public static boolean isBinary(BundleDescription bundle)(Code) | | |
isIn | public static boolean isIn(IPluginEntry[] array, IPluginEntry element)(Code) | | |
makeRelative | public static IPath makeRelative(IPath location, IPath base)(Code) | | Return a path which is equivalent to the given location relative to the
specified base path.
Parameters: location - the location to convert Parameters: base - the base path IPath |
parseExtraBundlesString | public static Object[] parseExtraBundlesString(String input, boolean onlyId)(Code) | | |
transferStreams | public static void transferStreams(InputStream source, OutputStream destination) throws IOException(Code) | | Transfers all available bytes from the given input stream to the given
output stream. Regardless of failure, this method closes both streams.
Parameters: source - Parameters: destination - throws: IOException - |
|
|