Class JexlFile

java.lang.Object
net.simplace.core.jexl.builder.JexlFile

public class JexlFile extends Object
File functions for JEXL rules and expressions (namespace file:), e.g. file:exists('sim/sim_resource.zip') or not file:exists(${_CACHEDIR_} + '/a.txt').
Author:
Andreas Enders
  • Constructor Details

    • JexlFile

      public JexlFile()
  • Method Details

    • exists

      public static Boolean exists(Object aPath)
      Used in JEXL like file:exists(path).
      Parameters:
      aPath - path of a file or directory, absolute or relative to the current directory, or a resource on the class path
      Returns:
      true if the file or directory exists, see IOHelper.doesFileExist(String, boolean); false for an empty path