org.apache.hivemind.ant
Class ManifestClassPath

java.lang.Object
  extended byTask
      extended byorg.apache.hivemind.ant.ManifestClassPath

public class ManifestClassPath
extends Task

Utility used to create a manifest class path. It takes, as input, a reference to a path. It converts this into a space-separated list of file names. The default behavior is to simply strip off the directory portion of each file entirely.

The final result is assigned to the property.

Author:
Howard Lewis Ship
See Also:
Serialized Form

Constructor Summary
ManifestClassPath()
           
 
Method Summary
 Path createClasspath()
           
 void execute()
           
protected  java.lang.String filter(java.lang.String value)
          Classpath entries must use a forward slash, regardless of what the local filesystem uses.
 java.io.File getDirectory()
           
 java.lang.String getProperty()
           
 void setDirectory(java.io.File file)
          Sets a containing directory.
 void setProperty(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManifestClassPath

public ManifestClassPath()
Method Detail

createClasspath

public Path createClasspath()

getProperty

public java.lang.String getProperty()

setProperty

public void setProperty(java.lang.String string)

execute

public void execute()

getDirectory

public java.io.File getDirectory()

setDirectory

public void setDirectory(java.io.File file)
Sets a containing directory. This has two effects:


filter

protected java.lang.String filter(java.lang.String value)
Classpath entries must use a forward slash, regardless of what the local filesystem uses.