public class Migration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Migration.State
The tool state.
|
| Constructor and Description |
|---|
Migration()
Construct a new migration tool instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExclude(String exclude)
Add specified resource exclusion.
|
void |
execute()
Execute migration operation.
|
EESpecProfile |
getEESpecProfile()
Get the Jakarta EE profile being used.
|
boolean |
hasConverted()
NOTE:
this method is not to indicate that no changes were made,
but that the source can be used and satisfy the selected profile.
|
void |
setDestination(File destination)
Set destination file.
|
void |
setEESpecProfile(EESpecProfile profile)
Set the Jakarta EE specifications that should be used.
|
void |
setEnableDefaultExcludes(boolean enableDefaultExcludes)
Enable the default exclusion list for the tool.
|
void |
setMatchExcludesAgainstPathName(boolean matchExcludesAgainstPathName)
Enable exclude matching against the path name.
|
void |
setSource(File source)
Set source file.
|
void |
setZipInMemory(boolean zipInMemory)
Buffer all conversion operations for compressed archives in memory.
|
public void setEESpecProfile(EESpecProfile profile)
profile - the Jakarta EE specification profilepublic EESpecProfile getEESpecProfile()
public void setEnableDefaultExcludes(boolean enableDefaultExcludes)
enableDefaultExcludes - true to enable the defaultpublic void setMatchExcludesAgainstPathName(boolean matchExcludesAgainstPathName)
matchExcludesAgainstPathName - true to match excludes against the path name instead of the file namepublic void setZipInMemory(boolean zipInMemory)
zipInMemory - true to buffer in memorypublic void addExclude(String exclude)
exclude - the exclude to addpublic void setSource(File source)
source - the source filepublic void setDestination(File destination)
destination - the destination filepublic boolean hasConverted()
public void execute()
throws IOException
IOException - when an exception occursCopyright © 2020–2022 The Apache Software Foundation. All rights reserved.