net.sf.ant4eclipse.ant.util
Class TaskHelper
java.lang.Object
net.sf.ant4eclipse.ant.util.TaskHelper
public class TaskHelper
- extends java.lang.Object
Method Summary |
static Path |
convertToPath(ResolvedPathEntry[] entries,
Project project)
Converts the supplied resolved pathes to a Path instance. |
static java.lang.String |
convertToString(ResolvedPathEntry[] entries,
java.lang.String separator,
Project project)
Converts an array of ResolvedClasspathEntry-objects to a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WTP_WEBCONTAINER
public static final java.lang.String WTP_WEBCONTAINER
- See Also:
- Constant Field Values
JRE_CONTAINER
public static final java.lang.String JRE_CONTAINER
- See Also:
- Constant Field Values
TaskHelper
public TaskHelper()
convertToString
public static final java.lang.String convertToString(ResolvedPathEntry[] entries,
java.lang.String separator,
Project project)
- Converts an array of ResolvedClasspathEntry-objects to a String.
The entries are separated by the separator char.
This method can be used to convert a complete eclipse classpath to a
String, which could be used in an ant property.
- Parameters:
entries
- The resolved pathes that shall be converted.separator
- The separator which shall be used for each path element.project
- The associated project.
- Returns:
- A String containing the pathes.
convertToPath
public static final Path convertToPath(ResolvedPathEntry[] entries,
Project project)
- Converts the supplied resolved pathes to a Path instance.
- Parameters:
entries
- The resolved pathes that shall be converted.project
- The associated project.
- Returns:
- The Path instance containing the supplied pathes.