at.spardat.xma.boot.antext
Class GenPreloadFile.DeltaInfo
java.lang.Object
at.spardat.xma.boot.antext.GenPreloadFile.DeltaInfo
- Enclosing class:
- GenPreloadFile
- public static class GenPreloadFile.DeltaInfo
- extends java.lang.Object
Implements the subtag .
Each deltainfo corresponds to one versioned jar file for which delta download files are contained in
the web application. It is used for fine grained selection of the delta download files choosed for
preload. It supports minimal version, an include list of versions and and exclude list of versions.
Further it can exclude the full version file from the preload.
The objects are created by ant for any tag found inside this task and delivered by calling
GenPreloadFile.addConfiguredDeltaInfo(at.spardat.xma.boot.antext.GenPreloadFile.DeltaInfo). *
|
Method Summary |
boolean |
accept(java.lang.String major,
java.lang.String minor,
java.lang.String bugfix)
Determines if the version number given in the parameters is accepted according
to the settings of minversion, includes and excludes.
|
java.lang.String |
getName()
Get the name of the affected resource. |
boolean |
isPreloadfull()
Returns if the full version of the resource should be included in the preload. |
void |
setExcludes(java.lang.String excludes)
Sets a pattern for delta download files to exclude from the preload.
|
void |
setIncludes(java.lang.String includes)
Sets a pattern for delta download files to include into the preload.
|
void |
setMinversion(java.lang.String minversion)
Set the minimum version for delta download files to include in the preload.
|
void |
setName(java.lang.String name)
Set the name of the affected resource. |
void |
setPreloadfull(boolean preloadfull)
Set if the full version of the resource should be included in the preload. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenPreloadFile.DeltaInfo
public GenPreloadFile.DeltaInfo()
getName
public java.lang.String getName()
- Get the name of the affected resource.
setName
public void setName(java.lang.String name)
- Set the name of the affected resource. This name is the href of the concerned resource
without the version number and extention. E.g. for "clientrt/xmartclient_2.0.0.jar"
"clientrt/xmartclient" is used as name.
isPreloadfull
public boolean isPreloadfull()
- Returns if the full version of the resource should be included in the preload.
setPreloadfull
public void setPreloadfull(boolean preloadfull)
- Set if the full version of the resource should be included in the preload.
setMinversion
public void setMinversion(java.lang.String minversion)
- Set the minimum version for delta download files to include in the preload.
Delta files to older versions are omitted.
For the format of the version number see the constructor of Version.
Example: minversion="1.8.2"
Default is empty which means no restriction.
setExcludes
public void setExcludes(java.lang.String excludes)
- Sets a pattern for delta download files to exclude from the preload.
The pattern is a comma seperated list of version numbers and version ranges
|[,|]*
Version numbers may contain wildcards.
For the format of version numbers see the constructor of Version.
For the format of version ranges see VersionRange.parse().
Example: excludes="1.7.*,1.8.0-1.8.1"
Default is empty meaning no exclusions.
setIncludes
public void setIncludes(java.lang.String includes)
- Sets a pattern for delta download files to include into the preload.
The pattern is a comma seperated list of version numbers and version ranges
|[,|]*
Version numbers may contain wildcards.
For the format of version numbers see the constructor of Version.
For the format of version ranges see VersionRange.parse().
Example: includes="1.8.2-1.8.5,2.*.*"
Default is empty meaning all versions. (same as *.*.*)
accept
public boolean accept(java.lang.String major,
java.lang.String minor,
java.lang.String bugfix)
- Determines if the version number given in the parameters is accepted according
to the settings of minversion, includes and excludes.
If includes have been set, includes must contain the given number to accept it.
If excludes have been set, excludes must not contain the given number to accept it.
If the given number is contained in includes and excludes, it is not accepted.
If minversion have been set, the given number must always be greater or equal to
minversion to be accepted.