public class CreatorUtilities
extends java.lang.Object
Constructor and Description |
---|
CreatorUtilities() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
appendPaths(java.lang.String delimiter,
java.util.List<java.lang.String> paths)
Create a PATH style string separated by the specified delimiter (';' for
windows, ':' for UNIX) Note that this method prepends the delimiter to the
front of the string.
|
static java.lang.String |
createEclipseExtraLaunchPaths(java.util.List<java.lang.String> extraClassPaths)
Create the extra path entries for an Eclipse '.launch' file in XML format.
|
static boolean |
isValidModuleName(java.lang.String moduleName)
Returns
true if moduleName is a valid module
name. |
static boolean |
validatePathsAndModules(java.lang.String userJar,
java.util.List<java.lang.String> pathList,
java.util.List<java.lang.String> moduleList)
Check to see that the userJar and pathList files all exist, and that the
moduleList entries can be found within the jars.
|
public static java.lang.String appendPaths(java.lang.String delimiter, java.util.List<java.lang.String> paths)
delimiter
- The delimiter string to place between variables.paths
- The list of paths to concatenate together.public static java.lang.String createEclipseExtraLaunchPaths(java.util.List<java.lang.String> extraClassPaths) throws java.io.FileNotFoundException
extraClassPaths
- a list of paths/.jar files to add to the class pathjava.io.FileNotFoundException
public static boolean isValidModuleName(java.lang.String moduleName)
true
if moduleName
is a valid module
name.public static boolean validatePathsAndModules(java.lang.String userJar, java.util.List<java.lang.String> pathList, java.util.List<java.lang.String> moduleList)
userJar
- The full path to gwt-user.jarpathList
- A list of jar files to add to the class path.moduleList
- A list of GWT module names to add as 'inherits' tagstrue
if all validations pass.