private String[] _getExcludes() { List<String> excludesList = ListUtil.fromString(GetterUtil.getString(System.getProperty("source.formatter.excludes"))); excludesList.addAll(getPropertyList("source.formatter.excludes")); String[] includes = new String[] {"**\\source_formatter.ignore"}; List<String> ignoreFileNames = getFileNames(new String[0], includes); for (String ignoreFileName : ignoreFileNames) { excludesList.add(ignoreFileName.substring(0, ignoreFileName.length() - 23) + "**"); } return excludesList.toArray(new String[excludesList.size()]); }
protected List<String> getPropertyList(String key) { return ListUtil.fromString(GetterUtil.getString(getProperty(key)), StringPool.COMMA); }