|
| <depends> |
|
Description
-
Depends node provides a way to control a file generation by checking if its
last modified time (LMT) is inferior to the maximum LMT of other files.
...
<depends uri="out.java" on="input.xml,filter.xsl,template.xsl">
<source uri="input.xml"/>
<filter uri="filter.xsl"/>
<template uri="template.xsl" save="out.java"/>
</depends>
... |
In the above sample, out.java will be generated if and only if it does
not exists or if its LMT is inferior to at least one of the input.xml,
filter.xsl or template.xsl LMTs. Note that the entire block
execution is skipped if out.java is newer than all other files:
input.xml will not be parsed, filter.xsl will not be applied,
etc.
Attribute Summary
Name | Default Value | Optional | Accepted Values |
---|
force | no | true | no | yes | on | | false | | separators | , | true | | uri | | false | |
Attribute Detail
- force
-
force the generation in any case (yes) or not (default is no).
- on
-
set of file names on which the generation depends (by comparing last modified
times).
- separators
-
file separators used in the on attribute value (default is ",").
- uri
-
name of the file to be generated.
Children
- catch, choose, depends, echo, filter, finally, foreach, if, remove, save, sax, source, template, try, variable
|
|