Cernunnos Manual


<mkdirs>

Description:

Creates any missing directories in the specified path on the local filesystem.

Reagents:

Name XPath Description Reagent Type Expected Type Required
PATH @path Path expression describing the directories to make on the filesystem. May be absolute or relative. PHRASE java.lang.String Yes

Examples:

Tests to see if the first argument on the command line contains the colon (':') character; if so, the argument is sepparated into tokens and a new directory is created using each token:

 
       
        <with-attribute key="Attributes.STRING" value="${$1}"> 
          <if test="${groovy(Attributes.STRING.contains(':'))}"> 
            <token-iterator regex=":"> 
              <mkdirs path="${Attributes.STRING}"/> 
            </token-iterator> 
          </if> 
        </with-attribute>