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>
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private int | |
| private Writer | |
| private String | |
| private String | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addClasspath(Path path)
Add the dependent classpath in order to load classes from the specified input jar. |
| public void | |
| private List | |
| private URL[] | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| private void |
| classPaths | back to summary |
|---|---|
| private List<Path> classPaths | |
| logLevel | back to summary |
|---|---|
| private int logLevel | |
| logWriter | back to summary |
|---|---|
| private Writer logWriter | |
| persistenceinfo | back to summary |
|---|---|
| private String persistenceinfo | |
| persistencexml | back to summary |
|---|---|
| private String persistencexml | |
| source | back to summary |
|---|---|
| private String source | |
| target | back to summary |
|---|---|
| private String target | |
| StaticWeaveAntTask | back to summary |
|---|---|
| public StaticWeaveAntTask() Default constructor. | |
| addClasspath | back to summary |
|---|---|
| public void addClasspath(Path path) Add the dependent classpath in order to load classes from the specified input jar. | |
| execute | back to summary |
|---|---|
| public void execute() Overrides org. Execute ant task.
| |
| getPathElement | back to summary |
|---|---|
| private List Parse the class path element and store them into vector. | |
| getURLs | back to summary |
|---|---|
| private URL[] getURLs() Convert the path element into the URL which further pass into the classloader. | |
| setLog | back to summary |
|---|---|
| public void setLog(String logFile) throws IOException Set the log file. | |
| setLogLevel | back to summary |
|---|---|
| public void setLogLevel(String logLevel) | |
| setPersistenceinfo | back to summary |
|---|---|
| public void setPersistenceinfo(String persistenceinfo) | |
| setpersistencexml | back to summary |
|---|---|
| public void setpersistencexml(String persistenceXMLLocation) | |
| setSource | back to summary |
|---|---|
| public void setSource(String source) Set the input archive to be used to weave. | |
| setTarget | back to summary |
|---|---|
| public void setTarget(String target) Set output archive to be used to weave to. | |
| start | back to summary |
|---|---|
| private void start() Invoke weaving process. | |
| verifyOptions | back to summary |
|---|---|
| private void verifyOptions() throws BuildException Verify the value of attributes. | |