org.jibx.binding.ant
Class CompileTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.jibx.binding.ant.CompileTask

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

Class alters user defined class files for JiBX functionality.

Author:
aglover, pledbrook

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
CompileTask()
           
 
Method Summary
 void addBindingFileSet(org.apache.tools.ant.types.FileSet bfSet)
           
 void addClassPathSet(org.apache.tools.ant.types.FileSet fSet)
           
 org.apache.tools.ant.types.Path createClasspath()
          Creates the classpath for this task and returns it.
 void execute()
          Hook method called by Ant.
 org.apache.tools.ant.types.Path getClasspath()
          Returns the current classpath.
 void init()
          Hook method called by ant framework to handle task initialization.
 void setBinding(String file)
           
 void setClasspath(org.apache.tools.ant.types.Path classpath)
          Sets the classpath for this task.
 void setLoad(boolean bool)
           
 void setVerbose(boolean bool)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
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

CompileTask

public CompileTask()
Method Detail

init

public void init()
          throws org.apache.tools.ant.BuildException
Hook method called by ant framework to handle task initialization.

Overrides:
init in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Hook method called by Ant. Method first determines class file path from user defined value, then determines all binding files for class file weaving.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

addClassPathSet

public void addClassPathSet(org.apache.tools.ant.types.FileSet fSet)
Parameters:
fSet -

getClasspath

public org.apache.tools.ant.types.Path getClasspath()
Returns the current classpath.


setClasspath

public void setClasspath(org.apache.tools.ant.types.Path classpath)
Sets the classpath for this task. Multiple calls append the new classpath to the current one, rather than overwriting it.

Parameters:
classpath - The new classpath as a Path object.

createClasspath

public org.apache.tools.ant.types.Path createClasspath()
Creates the classpath for this task and returns it. If the classpath has already been created, the method just returns that one.


setBinding

public void setBinding(String file)
Parameters:
file -

addBindingFileSet

public void addBindingFileSet(org.apache.tools.ant.types.FileSet bfSet)
Parameters:
bfSet -

setLoad

public void setLoad(boolean bool)
Parameters:
bool -

setVerbose

public void setVerbose(boolean bool)
Parameters:
bool -


Copyright © 2005-2011 jibx.org. All Rights Reserved.