org.codehaus.aspectwerkz.compiler
Class AspectWerkzCTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.codehaus.aspectwerkz.compiler.AspectWerkzCTask
- public class AspectWerkzCTask
- extends org.apache.tools.ant.Task
AspectWerkzC offline Ant task.
Use the following parameters to configure the task:
- verbose: [optional] flag marking the weaver verbosity [true / false]
- taskverbose: [optional] flag marking the task verbose [true / false]
- definition: [optional] path to aspect definition xml file (optional, can be found on the path as META-INF/aop.xml - even several)
Use the following parameters to configure the classpath and to point to the classes to be weaved. Those can be specified
with nested elements as well / instead:
- classpath: classpath to use
- classpathref: classpath reference to use
- targetdir: directory where to find classes to weave
- targetpath: classpath where to find classes to weave
- targetpathref: classpath reference where to find classes to weave
Nested elements are similar to the "java" task when you configure a classpath:
- classpath: Path-like structure for the classpath to be used by the weaver. Similar to "java" task classpath
- targetpath: Path-like structure for the class to be weaved
Some rarely used options are also available:
- backupdir: directory where to backup original classes during compilation, defautls to ./_aspectwerkzc
- preprocessor: fully qualified name of the preprocessor. If not set the default is used.
- Author:
- the_mindstorm(at)evolva(dot)ro, Alexandre Vasseur
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 |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, 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 |
AspectWerkzCTask
public AspectWerkzCTask()
setDefinition
public void setDefinition(File defFile)
- definition=..
- Parameters:
defFile
-
setVerbose
public void setVerbose(boolean verbose)
- verbose=..
- Parameters:
verbose
-
setTaskVerbose
public void setTaskVerbose(boolean verbose)
- compilerverbose=..
- Parameters:
verbose
-
createTarget
public org.apache.tools.ant.types.Path createTarget()
setTargetdir
public void setTargetdir(org.apache.tools.ant.types.Path srcDir)
setTargetpath
public void setTargetpath(org.apache.tools.ant.types.Path targetpath)
createTargetpath
public org.apache.tools.ant.types.Path createTargetpath()
setTargetpathRef
public void setTargetpathRef(org.apache.tools.ant.types.Reference r)
setBackupdir
public void setBackupdir(File backupDir)
- backupdir=..
- Parameters:
backupDir
-
setPreprocessor
public void setPreprocessor(String preprocessorFqn)
- preprocessor=..
- Parameters:
preprocessorFqn
-
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path classpath)
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.