Top Description Fields Constructors Methods
org.apache.tomcat.jakartaee

public Class MigrationTask

extends Task
Class Inheritance
Imports
java.io.File, .IOException, java.util.logging.Handler, .Logger, org.apache.tools.ant.BuildException, .Task

Ant task for the Jakarta EE migration tool.

Field Summary

Modifier and TypeField and Description
private File
private String
private boolean
private String
private File
private boolean
Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public
MigrationTask()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public void
execute()

Overrides org.apache.tools.ant.Task.execute.

Called by the project to let the task do its work.
public void
setDest(File
the destination file
dest
)

Set the destination file.

public void
setExcludes(String
Comma separated, case sensitive list of glob patterns for files to exclude
excludes
)

Set exclusion patterns.

public void
setMatchExcludesAgainstPathName(boolean
true to match excludes against the path name instead of the file name
matchExcludesAgainstPathName
)

Enable exclude matching against the path name.

public void
setProfile(String
the profile to be used
profile
)

Set the profile that should be used.

public void
setSrc(File
the source file
src
)

Set the source file.

public void
setZipInMemory(boolean
true to buffer in memory
zipInMemory
)

Set the option to handle compressed archive entries in memory.

Inherited from org.apache.tools.ant.Task:
bindToOwnergetOwningTargetgetRuntimeConfigurableWrappergetTaskNamegetTaskTypegetWrapperhandleErrorFlushhandleErrorOutputhandleFlushhandleInputhandleOutputinitisInvalidloglogloglogmaybeConfigureperformreconfiguresetOwningTargetsetRuntimeConfigurableWrappersetTaskNamesetTaskType

Field Detail

destback to summary
private File dest
excludesback to summary
private String excludes
matchExcludesAgainstPathNameback to summary
private boolean matchExcludesAgainstPathName
profileback to summary
private String profile
srcback to summary
private File src
zipInMemoryback to summary
private boolean zipInMemory

Constructor Detail

MigrationTaskback to summary
public MigrationTask()

Default constructor.

Method Detail

executeback to summary
public void execute() throws BuildException

Overrides org.apache.tools.ant.Task.execute.

Doc from org.apache.tools.ant.Task.execute.

Called by the project to let the task do its work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running "ant target1 target2" will run all tasks in target3 twice.

Annotations
@Override
Exceptions
BuildException:
if something goes wrong with the build.
setDestback to summary
public void setDest(File dest)

Set the destination file.

Parameters
dest:File

the destination file

setExcludesback to summary
public void setExcludes(String excludes)

Set exclusion patterns.

Parameters
excludes:String

Comma separated, case sensitive list of glob patterns for files to exclude

setMatchExcludesAgainstPathNameback to summary
public void setMatchExcludesAgainstPathName(boolean matchExcludesAgainstPathName)

Enable exclude matching against the path name.

Parameters
matchExcludesAgainstPathName:boolean

true to match excludes against the path name instead of the file name

setProfileback to summary
public void setProfile(String profile)

Set the profile that should be used.

Parameters
profile:String

the profile to be used

setSrcback to summary
public void setSrc(File src)

Set the source file.

Parameters
src:File

the source file

setZipInMemoryback to summary
public void setZipInMemory(boolean zipInMemory)

Set the option to handle compressed archive entries in memory.

Parameters
zipInMemory:boolean

true to buffer in memory