Typo fixes and command clarifications/cleanup.

Also re-disable the gradle daemon. It doesn't always play nice with
ForgeGradle and hogs ram.
This commit is contained in:
wizjany
2019-07-03 13:01:59 -04:00
parent 625cbe5e3d
commit a2b3aabbbf
9 changed files with 45 additions and 24 deletions

View File

@ -27,13 +27,13 @@ import java.util.regex.Pattern;
public class YYMMDDHHIISSParser implements SnapshotDateParser {
protected Pattern patt =
private Pattern datePattern =
Pattern.compile("([0-9]+)[^0-9]?([0-9]+)[^0-9]?([0-9]+)[^0-9]?"
+ "([0-9]+)[^0-9]?([0-9]+)[^0-9]?([0-9]+)");
+ "([0-9]+)[^0-9]?([0-9]+)[^0-9]?([0-9]+)(\\..*)?");
@Override
public Calendar detectDate(File file) {
Matcher matcher = patt.matcher(file.getName());
Matcher matcher = datePattern.matcher(file.getName());
if (matcher.matches()) {
int year = Integer.parseInt(matcher.group(1));
int month = Integer.parseInt(matcher.group(2));