com.rshtech.ant.taskdefs
Class ManifestClasspathEntryTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.rshtech.ant.taskdefs.ManifestClasspathEntryTask
All Implemented Interfaces:
java.lang.Cloneable

public class ManifestClasspathEntryTask
extends org.apache.tools.ant.Task

Takes a given Path or set of Paths and generates a "Class-Path" entry for a manifest file for all the jars found in the Path(s). This task will skip any references to class directories, as the explanation of Class-Path seems to imply only jars should appear in this entry. Even if you can reference a directory, it is probably not a good application packaging decision anyways.

Version:
$Revision: 3134 $
Author:
$Author: kostya $

Field Summary
static java.lang.String DEFAULT_PATH_PREFIX
           
static java.lang.String DEFAULT_PROPERTY
           
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
ManifestClasspathEntryTask()
           
 
Method Summary
 void addConfiguredPath(org.apache.tools.ant.types.Path path)
           
 void execute()
           
 java.lang.String getClasspathValue()
           
 java.util.Set<org.apache.tools.ant.types.Path> getPaths()
           
 java.lang.String getPrefix()
           
 java.lang.String getProperty()
           
 void init()
           
 void setPaths(java.util.Set<org.apache.tools.ant.types.Path> val)
           
 void setPrefix(java.lang.String pathPrefix)
           
 void setProperty(java.lang.String classPathProperty)
           
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROPERTY

public static final java.lang.String DEFAULT_PROPERTY
See Also:
Constant Field Values

DEFAULT_PATH_PREFIX

public static final java.lang.String DEFAULT_PATH_PREFIX
See Also:
Constant Field Values
Constructor Detail

ManifestClasspathEntryTask

public ManifestClasspathEntryTask()
Method Detail

init

public void init()
Overrides:
init in class org.apache.tools.ant.Task

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

getPaths

public java.util.Set<org.apache.tools.ant.types.Path> getPaths()

setPaths

public void setPaths(java.util.Set<org.apache.tools.ant.types.Path> val)

addConfiguredPath

public void addConfiguredPath(org.apache.tools.ant.types.Path path)

getProperty

public java.lang.String getProperty()

setProperty

public void setProperty(java.lang.String classPathProperty)

getPrefix

public java.lang.String getPrefix()

setPrefix

public void setPrefix(java.lang.String pathPrefix)

getClasspathValue

public java.lang.String getClasspathValue()