diff options
author | Karl Berry <karl@freefriends.org> | 2019-09-16 22:06:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-09-16 22:06:50 +0000 |
commit | 2df6cdd1319db65426bc5b1d645c0fe8d7759528 (patch) | |
tree | 53c6c47246bebb29c74e37ffc5bc98f2791e22b1 /Master/texmf-dist/doc/support/arara/chapters/methods.tex | |
parent | 7372400fb86d4bd41833af4d447d68f04a8c60d9 (diff) |
arara (16sep19)
git-svn-id: svn://tug.org/texlive/trunk@52106 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/arara/chapters/methods.tex')
-rw-r--r-- | Master/texmf-dist/doc/support/arara/chapters/methods.tex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/arara/chapters/methods.tex b/Master/texmf-dist/doc/support/arara/chapters/methods.tex index 4570e01c7fc..b8cca6a5f3f 100644 --- a/Master/texmf-dist/doc/support/arara/chapters/methods.tex +++ b/Master/texmf-dist/doc/support/arara/chapters/methods.tex @@ -1037,6 +1037,12 @@ result = unsafelyExecuteSystemCommand(getCommand('ls')); Please \emph{do not abuse} this method! Keep in mind that this particular feature is included for very specific scenarios in which the command streams are needed ahead of time for proper decision making. \end{messagebox} +\item[\mdbox{R}{isSubdirectory(File directory)}{boolean}] This method checks whether the provided \rbox{File} reference is a valid subdirectory under the project hierarchy, return a corresponding boolean value. This is a check to impose a possible restriction in the rule scope, so that users can change down to subdirectories in their projects but not up, outside of the root directory. + +\begin{codebox}{Example}{teal}{\icnote}{white} +valid = isSubdirectory(toFile('chapters/')); +\end{codebox} + \item[\mdbox{R}{\parbox{0.62\textwidth}{mergeVelocityTemplate(File input, File output,\\\hspace*{1em} Map<String, Object> map)}}{void}] This method, as the name implies, merges the provided \rbox{File} template reference written in the Velocity Template Language 1.7 specification with the \rbox{Map} data object in order to produce a corresponding \rbox{File} output. It is important to observe that this method will raise an exception if the provided input file does not exist or if there is an error with the underlying template language. \begin{ncodebox}{Source file}{teal}{\icnote}{white}{input.txt} |