| “Strategies in (*)ability” | [iDareMedia] [JWare] [PET] [CI-Dashboard] |
The <almsdef> component lets you define custom settings for an ALMS instance. You must always associate an ALMS configuration object must with an ALMS instance through an ALMS dependent catalog; by itself, a ALMS configuration has no useful function. The two most important ALMS dependent catalogs are artifactdef catalogs and reactiondef catalogs.
| Attribute | Description | Required |
| refid | Reference to another <almsdef>. If defined, no other parameter or nested element is permitted. | No. |
The <searchpath> element lets you define a custom antlib search strategy for the ALMS instance. This element is the local name for a standard ALMS search path definition; read the <alms-searchpath> guide for a full description.
The <storagepolicy> element lets you define a custom storage policy for the ALMS instance. This element is the local name for a standard ALMS storage policy definition; read the <alms-storagepolicy> guide for a full description.
The <postfilters> element lets you define custom post filtering for downloaded antlib packages. This element is the local name for a standard ALMS module filters definition; read the <alms-postfilters> guide for a full description.
The following snippet declares a standalone <almsdef> that any number of ALMS dependent catalogs can use. The postfilter arms/metastamp is a builtin filter that tells SAM to create a special info file in each downloaded antlib’s local directory. In turn, this file will be used by the downloaded-today up-to-date test to determine if SAM should re-download a fresh copy of the antlib package.
<?xml version="1.0"?>
<run-configuration>
…
<almsdef id="ARMs.alms">
<storagepolicy
scratchdir="${build.scratch.dir}"
uploads="local-antlibs"
uptodate="downloaded-today"/>
<searchpath
<dirset dir="${build.libs.dir}">
<include name="vendorABC-latest"/>
<include name="vendor123-stable"/>
</dirset>
<defaultsearchpath/>
</searchpath>
<postfilters>
<module name="*">
<filter name="arms/metastamp"
haltiferror="yes"/>
</module>
</postfilters>
</almsdef>
…
</run-configuration>