public class

CreatorUtilities

extends Object
java.lang.Object
   ↳ com.google.gwt.user.tools.util.CreatorUtilities

Class Overview

Utility methods used by ApplicationCreator.

Summary

Public Constructors
CreatorUtilities()
Public Methods
static String appendPaths(String delimiter, List<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 String createEclipseExtraLaunchPaths(List<String> extraClassPaths)
Create the extra path entries for an Eclipse '.launch' file in XML format.
static boolean isValidModuleName(String moduleName)
Returns true if moduleName is a valid module name.
static boolean validatePathsAndModules(String userJar, List<String> pathList, List<String> moduleList)
Check to see that the userJar and pathList files all exist, and that the moduleList entries can be found within the jars.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CreatorUtilities ()

Public Methods

public static String appendPaths (String delimiter, List<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. There is an existing path we want to append to.

Parameters
delimiter The delimiter string to place between variables.
paths The list of paths to concatenate together.
Returns
  • the concatenated list of paths as a single string.

public static String createEclipseExtraLaunchPaths (List<String> extraClassPaths)

Create the extra path entries for an Eclipse '.launch' file in XML format.

Parameters
extraClassPaths a list of paths/.jar files to add to the class path
Returns
  • A string formatted to include in the .launch file

public static boolean isValidModuleName (String moduleName)

Returns true if moduleName is a valid module name.

public static boolean validatePathsAndModules (String userJar, List<String> pathList, List<String> moduleList)

Check to see that the userJar and pathList files all exist, and that the moduleList entries can be found within the jars.

Parameters
userJar The full path to gwt-user.jar
pathList A list of jar files to add to the class path.
moduleList A list of GWT module names to add as 'inherits' tags
Returns
  • true if all validations pass.