it.haefelinger.flaka
Class WhichFlaka

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by it.haefelinger.flaka.Task
              extended by it.haefelinger.flaka.WhichFlaka
All Implemented Interfaces:
Cloneable

public class WhichFlaka
extends Task

Since:
1.0
Author:
merzedes

Field Summary
protected  Path classpath
           
protected  String resource
           
protected  String varname
           
 
Fields inherited from class it.haefelinger.flaka.Task
debug, el
 
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
WhichFlaka()
           
 
Method Summary
 Path createClasspath()
          Adds a path to the classpath.
 void execute()
          execute it
 void setClasspath(Path cp)
          Set the classpath to be used for this compilation.
 void setResource(String s)
          name the resource to look for
 void setVar(String s)
          the property to fill with the URL of the resource or class
 
Methods inherited from class it.haefelinger.flaka.Task
debug, debug, error, error, getProperty, getref, info, log, setDebug, setEl, throwbx, throwbx, toFile, verbose, warn, warn
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, 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

resource

protected String resource

varname

protected String varname

classpath

protected Path classpath
Constructor Detail

WhichFlaka

public WhichFlaka()
Method Detail

setClasspath

public void setClasspath(Path cp)
Set the classpath to be used for this compilation.

Parameters:
cp - the classpath to be used.

createClasspath

public Path createClasspath()
Adds a path to the classpath.

Returns:
a classpath to be configured.

execute

public void execute()
             throws BuildException
execute it

Overrides:
execute in class Task
Throws:
BuildException - on error

setResource

public void setResource(String s)
name the resource to look for


setVar

public void setVar(String s)
the property to fill with the URL of the resource or class