Пример #1
0
 /**
  * Indicates whether the given canonical path matches the given Ant-style pattern
  *
  * @param antPattern the pattern to check against (can't be blank)
  * @param canonicalPath the path to check (can't be blank)
  * @return see above
  * @deprecated use {@link FileUtils#matchesAntPath(String, String)} instead
  */
 @Deprecated
 public static boolean matchesAntPath(final String antPattern, final String canonicalPath) {
   return FileUtils.matchesAntPath(antPattern, canonicalPath);
 }
Пример #2
0
 /**
  * Indicates whether this file's canonical path matches the given Ant-style pattern.
  *
  * <p>The presented path must be in Ant syntax. It should include a full prefix that is consistent
  * with the {@link #getCanonicalPath()} method.
  *
  * @param antPattern the pattern to check this file against (cannot be blank)
  * @return whether the path matches or not
  */
 public boolean matchesAntPath(final String antPattern) {
   return FileUtils.matchesAntPath(antPattern, getCanonicalPath());
 }