public class PackageGappTask
extends org.apache.tools.ant.Task
Modifier and Type | Class and Description |
---|---|
class |
PackageGappTask.MappingHint
Class to represent a nested
hint element. |
static class |
PackageGappTask.UnresolvedAction
Enumeration of the actions to take when there are unresolved
resources.
|
Modifier and Type | Field and Description |
---|---|
static Comparator<URL> |
PATH_COMPARATOR
Comparator to compare URLs by lexicographic ordering of their
getPath() values.
|
Constructor and Description |
---|
PackageGappTask() |
Modifier and Type | Method and Description |
---|---|
void |
addExtraResourcesPath(org.apache.tools.ant.types.Path path)
Add a path containing extra resources that should be treated as if
they had been referenced by relpaths within the gapp file.
|
PackageGappTask.MappingHint |
createHint()
Create and add the representation for a nested <hint from="X"
to="Y" /> element.
|
void |
execute() |
File |
getDestFile()
Get the destination file to which the modified gapp will be
written.
|
File |
getGateHome()
Get the location of the GATE home directory, used to resolve $gatehome$
relative paths in the GAPP file.
|
File |
getMavenCache()
Location where the task should create a local cache of any referenced Maven plugins
and their dependencies.
|
PackageGappTask.UnresolvedAction |
getOnUnresolved()
Get the action performed when there are unresolved resources.
|
File |
getResourcesHome()
Get the location of the resources home directory, used to resolve $resourceshome$
relative paths in the GAPP file.
|
File |
getSrc()
Get the original gapp file that is to be modified.
|
boolean |
isCopyPlugins()
Will the task copy the complete contents of referenced plugins into
the target location?
|
boolean |
isCopyResourceDirs()
Will the task copy the complete contents of directories containing
referenced resources into the target location or just the
referenced resources themselves?
|
void |
setCopyPlugins(boolean copyPlugins)
Will the task copy the complete contents of referenced plugins into
the target location? If false, only the bare minimum will be copied
(the creole.xml files, any JARs referenced therein, and any
directly referenced resource files).
|
void |
setCopyResourceDirs(boolean copyResourceDirs)
Will the task copy the complete contents of directories containing
referenced resources into the target location? By default it does
not do this, but only includes the directly-referenced resource
files - for example, if the gapp refers to a
.def
file defining gazetteer lists, the lists themselves will not be
included. |
void |
setDestFile(File destFile)
Set the destination file to which the modified gapp will be
written.
|
void |
setGateHome(File gateHome)
Set the location of the GATE home directory, used to resolve $gatehome$
relative paths in the GAPP file.
|
void |
setMavenCache(File mavenCache)
Set the location where the task should create a local cache of any referenced
Maven plugins and their dependencies.
|
void |
setOnUnresolved(PackageGappTask.UnresolvedAction onUnresolved)
What should we do if there are unresolved relpaths within the gapp
file? By default the build will fail, but instead you can opt to
have the relative paths replaced by absolute paths to the same URL,
or to have the task recover by putting the files into an
"application-resources" directory.
|
void |
setResourcesHome(File resourcesHome)
Set the location of the resources home directory, used to resolve $resourceshome$
relative paths in the GAPP file.
|
void |
setSrc(File src)
Set the location of the original gapp file which is to be modified.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public static final Comparator<URL> PATH_COMPARATOR
null
compares less-than anything
not null
.public File getDestFile()
public void setDestFile(File destFile)
public File getSrc()
public void setSrc(File src)
public File getGateHome()
public void setGateHome(File gateHome)
public File getResourcesHome()
public void setResourcesHome(File resourcesHome)
public File getMavenCache()
null
, in which case no cache will be
created.public void setMavenCache(File mavenCache)
null
, in which
case no cache will be created.public boolean isCopyPlugins()
public void setCopyPlugins(boolean copyPlugins)
public boolean isCopyResourceDirs()
public void setCopyResourceDirs(boolean copyResourceDirs)
.def
file defining gazetteer lists, the lists themselves will not be
included. If copyResourceDirs is false, the additional resources
will need to be included using an appropriate
<extraresourcespath>.public PackageGappTask.UnresolvedAction getOnUnresolved()
public void setOnUnresolved(PackageGappTask.UnresolvedAction onUnresolved)
public PackageGappTask.MappingHint createHint()
public void addExtraResourcesPath(org.apache.tools.ant.types.Path path)
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Copyright © 2024 GATE. All rights reserved.