Class CurrentDirectoryResolver

    • Constructor Detail

      • CurrentDirectoryResolver

        public CurrentDirectoryResolver()
    • Method Detail

      • resolveCurrentDirectory

        public IVariables resolveCurrentDirectory​(IVariables parentVariables,
                                                  String filename)
        The logic of this method:

        We return the child var variables with directory extracted from filename if we do not have a filename we will return the child var variables without updates

        Parameters:
        parentVariables - - parent variable variables which can be inherited
        filename - - is file which we use at this moment
        Returns:
        new var variables if inherit was set false or child var variables with updated system variables
      • normalizeSlashes

        public String normalizeSlashes​(String str)