Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.tools.weaving.jpa
Class StaticWeave

java.lang.Object
  extended by org.eclipse.persistence.tools.weaving.jpa.StaticWeave


public class StaticWeave
extends java.lang.Object

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


Field Summary
private  java.lang.String[] argv
           
private  java.lang.String[] classpaths
           
private  int loglevel
           
private  java.io.Writer logWriter
           
private  java.lang.String persistenceinfopath
           
private  java.lang.String persistenceXmlLocation
           
private  java.lang.String source
           
private  java.lang.String target
           
private  java.io.PrintStream vout
           

 

Constructor Summary
StaticWeave(java.lang.String[] argv)
           

 

Method Summary
private  java.lang.ClassLoader getClassLoader()
           
static void main(java.lang.String[] argv)
           
private  void printUsage()
           
(package private)  void processCommandLine()
           
 void start()
          Invoke StaticWeaveProcessor to perform weaving.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

argv

private java.lang.String[] argv

source

private java.lang.String source

persistenceinfopath

private java.lang.String persistenceinfopath

persistenceXmlLocation

private java.lang.String persistenceXmlLocation

target

private java.lang.String target

loglevel

private int loglevel

logWriter

private java.io.Writer logWriter

vout

private java.io.PrintStream vout

classpaths

private java.lang.String[] classpaths

Constructor Detail

StaticWeave

public StaticWeave(java.lang.String[] argv)

Method Detail

main

public static void main(java.lang.String[] argv)

start

public void start()
           throws java.lang.Exception
Invoke StaticWeaveProcessor to perform weaving.
Throws:
java.lang.Exception

processCommandLine

void processCommandLine()
                  throws java.lang.Exception
Throws:
java.lang.Exception

printUsage

private void printUsage()

getClassLoader

private java.lang.ClassLoader getClassLoader()
                                      throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.