org.apache.avalon.tools.model
Class MagicPath

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.types.DataType
          extended byorg.apache.tools.ant.types.Path
              extended byorg.apache.avalon.tools.model.MagicPath
All Implemented Interfaces:
Cloneable

public class MagicPath
extends org.apache.tools.ant.types.Path

An ant datatype that represent a typical ant path created using transitive magic dependencies.

Version:
$Revision: 1.2 $ $Date: 2004/03/17 10:30:09 $
Author:
Avalon Development Team

Nested Class Summary
 
Nested classes inherited from class org.apache.tools.ant.types.Path
org.apache.tools.ant.types.Path.PathElement
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.types.Path
systemClasspath
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
MagicPath(org.apache.tools.ant.Project project)
          Creation of a new path relative to a supplied project.
 
Method Summary
 void setKey(String key)
          Set the key identifying the magic resource that will be used for path construction.
 void setMode(String mode)
          Set the path creation mode.
 
Methods inherited from class org.apache.tools.ant.types.Path
add, addDirset, addExisting, addExisting, addExtdirs, addFilelist, addFileset, addJavaRuntime, append, clone, concatSystemClasspath, concatSystemClasspath, createPath, createPathElement, dieOnCircularReference, list, setLocation, setPath, setRefid, size, toString, translateFile, translateFileSep, translatePath
 
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, tooManyAttributes
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MagicPath

public MagicPath(org.apache.tools.ant.Project project)
Creation of a new path relative to a supplied project.

Parameters:
project - the current ant project
Method Detail

setKey

public void setKey(String key)
Set the key identifying the magic resource that will be used for path construction. If not declared the kley defaults to the key of the current project.

Parameters:
key - the resource key

setMode

public void setMode(String mode)
Set the path creation mode. A mode value may be one of ANY, BUILD, TEST or RUNTIME.

Parameters:
mode - the mode value