org.carrot2.ant.types
Class ComponentClasspath

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.carrot2.ant.types.ComponentClasspath

public class ComponentClasspath
extends Task

A custom task that creates and registers a Path under a given id. The path contains classpath files (JARs and folders) included from this component dependencies in a given profile.


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
ComponentClasspath()
           
 
Method Summary
 Path createDependencies()
          Crates a new path with a set of dependency files to scan.
 void execute()
           
 void setComponentDescriptor(File componentDescriptor)
          Sets component descriptor file.
 void setId(String id)
           
 void setProfile(String profile)
          Sets the dependency tracking profile.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentClasspath

public ComponentClasspath()
Method Detail

setId

public void setId(String id)

setProfile

public void setProfile(String profile)
Sets the dependency tracking profile.


createDependencies

public Path createDependencies()
Crates a new path with a set of dependency files to scan.


setComponentDescriptor

public void setComponentDescriptor(File componentDescriptor)
Sets component descriptor file.


execute

public void execute()
             throws BuildException
Overrides:
execute in class Task
Throws:
BuildException


Copyright (c) Dawid Weiss, Stanislaw Osinski