public class StaticWeaveAntTask
extends 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 EclipseLink static weaving"/>
<taskdef name="weave" classname="org.eclipse.persistence.tools.weaving.jpa.StaticWeaveAntTask"/>
</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(Path path)
Add the dependent classpath in order to load classes from the specified input jar.
|
void |
execute()
Execute ant task.
|
void |
setLog(java.lang.String logFile)
Set the log file.
|
void |
setLogLevel(java.lang.String logLevel) |
void |
setPersistenceinfo(java.lang.String persistenceinfo) |
void |
setpersistencexml(java.lang.String persistenceXMLLocation) |
void |
setSource(java.lang.String source)
Set the input archive to be used to weave.
|
void |
setTarget(java.lang.String target)
Set output archive to be used to weave to.
|
public void setSource(java.lang.String source)
public void setTarget(java.lang.String target)
public void setLog(java.lang.String logFile) throws java.io.IOException
java.io.IOException
public void setLogLevel(java.lang.String logLevel)
public void setPersistenceinfo(java.lang.String persistenceinfo)
public void setpersistencexml(java.lang.String persistenceXMLLocation)
public void addClasspath(Path path)
public void execute()