Description: This is the static weave command line processing class that verifies command options and invokes StaticWeaveProcessor to statically weave the classes.
Usage:
StaticWeave [options] source target
Options:
-classpath
Set the user class path, use ";" as the delimiter in Window system and ":" in Unix system.
-log
The path of log file, the standard output will be the default.
-loglevel
Specify a literal value for eclipselink log level(OFF,SEVERE,WARNING,INFO,CONFIG,FINE,FINER,FINEST). The default value is OFF.
-persistenceinfo
The path contains META-INF/persistence.xml. This is ONLY required when the source does not include it.
The classpath must contain all the classes necessary in oder to perform weaving.
The weaving will be performed in place if source and target point to the same location. Weaving in place is ONLY applicable for directory-based sources.
Example:
To weave all entities contained in c:\foo-source.jar with its persistence.xml contained within c:\foo-containing-persistence-xml.jar, and output to c:\\foo-target.jar,
StaticWeave -persistenceinfo c:\foo-containing-persistencexml.jar -classpath c:\classpath1;c:\classpath2 c:\foo-source.jar c:\foo-target.jar
| Modifier and Type | Field and Description |
|---|---|
| private String[] | |
| private String[] | |
| private int | |
| private Writer | |
| private String | |
| private String | |
| private String | |
| private String | |
| private PrintStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private ClassLoader | |
| public static void | |
| private void | |
| pack-priv void | |
| public void |
| argv | back to summary |
|---|---|
| private String[] argv | |
| classpaths | back to summary |
|---|---|
| private String[] classpaths | |
| loglevel | back to summary |
|---|---|
| private int loglevel | |
| logWriter | back to summary |
|---|---|
| private Writer logWriter | |
| persistenceinfopath | back to summary |
|---|---|
| private String persistenceinfopath | |
| persistenceXmlLocation | back to summary |
|---|---|
| private String persistenceXmlLocation | |
| source | back to summary |
|---|---|
| private String source | |
| target | back to summary |
|---|---|
| private String target | |
| vout | back to summary |
|---|---|
| private PrintStream vout | |
| StaticWeave | back to summary |
|---|---|
| public StaticWeave(String[] argv) | |
| getClassLoader | back to summary |
|---|---|
private ClassLoader getClassLoader() throws MalformedURLException
| |
| main | back to summary |
|---|---|
| public static void main(String[] argv) | |
| printUsage | back to summary |
|---|---|
| private void printUsage() | |
| processCommandLine | back to summary |
|---|---|
| pack-priv void processCommandLine() throws Exception | |
| start | back to summary |
|---|---|
| public void start() throws Exception Invoke StaticWeaveProcessor to perform weaving. | |