|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.turbine.util.migrator.Migrator
This utility class attempts to help Turbine developers migrate their wepapp sources across versions of Turbine by applying a series of regexes and rules to a source tree and creates a new source tree that is compatible with subsequent releases of Turbine.
| Field Summary | |
protected java.lang.String |
originalSourceFile
Source file currently being migrated. |
protected java.lang.String |
pathSeparator
Path separator property |
protected org.apache.oro.text.perl.Perl5Util |
perl
Regular expression tool |
protected java.lang.String[] |
res
|
| Constructor Summary | |
Migrator()
|
|
| Method Summary | |
java.lang.String |
convertSourceFile(java.lang.String sourceFile)
Apply find/replace regexes to our Turbine source file. |
static void |
main(java.lang.String[] args)
Main hook for the conversion process. |
void |
migrate(java.lang.String[] args)
Iterate through the set of find/replace regexes that will convert a given source tree from one |
void |
usage()
How to use this little puppy :-) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String originalSourceFile
protected org.apache.oro.text.perl.Perl5Util perl
protected java.lang.String pathSeparator
protected java.lang.String[] res
| Constructor Detail |
public Migrator()
| Method Detail |
public void migrate(java.lang.String[] args)
public void usage()
public java.lang.String convertSourceFile(java.lang.String sourceFile)
public static void main(java.lang.String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||