public class StaticWeaveAntTask
extends org.apache.tools.ant.Task
Description: This is the static weave ant task definition class that verifies the value of specified attributes and invokes StaticWeaveProcessor to weave classes.
Usage:
<target name="define.task" description="New task definition for toplink static weaving"/>
<taskdef name="weave" classname="oracle.toplink.essentials.weaving.StaticWeaverAntTask"/>
</target>
<target name="weaving" description="perform weaving." depends="define.task">
<weave source= "c:\foo.jar" target = "c:\wovenfoo.jar" persistenceinfo="c:\foo-containing-persistenceinfo.jar">
<classpath>
<pathelement path="c:\foo-dependent.jar"/>
</classpath>
</weave>
</target>
Constructor and Description |
---|
StaticWeaveAntTask() |
Modifier and Type | Method and Description |
---|---|
void |
addClasspath(org.apache.tools.ant.types.Path path)
Add the dependent classpath in order to load classes from the specified input jar.
|
void |
execute()
Execute ant task
|
void |
setLog(String logFile)
Set the archive containing persistence.xml while input archive does not contain it.
|
void |
setLogLevel(String logLevel) |
void |
setPersistenceinfo(String persistenceinfo) |
void |
setSource(String source)
Set the input archive to be used to weave.
|
void |
setTarget(String target)
Set output archive to be used to weave to
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setSource(String source)
inputJarFile
- public void setTarget(String target)
outputJarFile
- public void setLog(String logFile) throws IOException
inputMainJarFile
- IOException
public void setLogLevel(String logLevel)
public void setPersistenceinfo(String persistenceinfo)
public void addClasspath(org.apache.tools.ant.types.Path path)
path
- public void execute()
execute
in class org.apache.tools.ant.Task
Copyright © 2021. All rights reserved.