Class PathConvert.MapEntry

Enclosing class:

public class PathConvert.MapEntry extends Object
Helper class, holds the nested <map> values. Elements will look like this: <map from="d:" to="/foo"/> When running on windows, the prefix comparison will be case insensitive.
  • Constructor Details

    • MapEntry

      public MapEntry()
  • Method Details

    • setFrom

      public void setFrom(String from)
      Set the "from" attribute of the map entry.
      from - the prefix string to search for; required. Note that this value is case-insensitive when the build is running on a Windows platform and case-sensitive when running on a Unix platform.
    • setTo

      public void setTo(String to)
      Set the replacement text to use when from is matched; required.
      to - new prefix.
    • apply

      public String apply(String elem)
      Apply this map entry to a given path element.
      elem - Path element to process.
      String Updated path element after mapping.