net.sf.ant4eclipse.ant.util
Class TaskHelper

java.lang.Object
  extended by net.sf.ant4eclipse.ant.util.TaskHelper

public class TaskHelper
extends java.lang.Object


Field Summary
static java.lang.String JRE_CONTAINER
           
static java.lang.String WTP_WEBCONTAINER
           
 
Constructor Summary
TaskHelper()
           
 
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
 

Field Detail

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
Constructor Detail

TaskHelper

public TaskHelper()
Method Detail

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.