Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Zip file on a website.
    No Format
    sdjan03: http://www.example.com/path/to/sdjan03.zip
    
  2. Local directory.
    No Format
    sdjan03: file:/path/to/my/sdjan03/
    
  3. Local zip file.
    No Format
    sdjan03: file:/path/to/my/sdjan03.zip
    
  4. Alias to another detector name.
    No Format
    sdjan03_custom: sdjan03
    

In the case of an alias, the program will use the

Multiple detector tags can be used used in the same alias.properties file, but each detector tag should be listed only once.

...

  1. If the name is a URL with a protocol of file: protocol, the local file (zip format) or directory path specified is assumed to contain the conditions.
  2. If the name is a zip file at a remote URL, an attempt is made to download the file from that location, unless the zip file is already in the local cache (~/.lcsim/cache). In this case, the local copy is used instead.

Alias Lookup

If the translated name is not a URL, then it is assumed to be an alias, which is recursively translated.

Suppose the following is listed in the alias.properties.

No Format

a: b
b: c
c: http://www.example.com/d.zip

The final value of a will be

No Format
http://www.example.com/d.zip

The value after translation need not be a URL or file. It can be a tag.

In this case, the value of a will be d.

No Format

a: b
b: c
c: d

If the alias translation results in a URL, then the previous algorithm is used to look up the conditions.

Otherwise, the algorithm algorithm will searches for a directory or zip file with the final alias name in the following "canonical" locations:

...

If the translation does not result in a valid set of conditionsalias or URL, the program will fail to find any conditions and terminate with an error. (In Java, this is a ConditionsNotFoundException).

...