[FIX] getter для UpdateRequest.dir

This commit is contained in:
Gravit 2019-05-20 23:36:43 +07:00
parent 00b6e4400c
commit 4371369dba
3 changed files with 9 additions and 2 deletions

View file

@ -75,7 +75,7 @@ public void postDiff(UpdateRequest request, UpdateRequestEvent e, HashedDir.Diff
//Возможно эта проверка избыточна //Возможно эта проверка избыточна
if(file.isSame(ret, true)) if(file.isSame(ret, true))
{ {
Path source = request.dir.resolve(path).resolve(name); Path source = request.getDir().resolve(path).resolve(name);
LogHelper.debug("Copy file %s to %s", source.toAbsolutePath().toString(), ret.toAbsolutePath().toString()); LogHelper.debug("Copy file %s to %s", source.toAbsolutePath().toString(), ret.toAbsolutePath().toString());
//Let's go! //Let's go!
Files.copy(ret, source); Files.copy(ret, source);

View file

@ -29,7 +29,9 @@ public void invoke(String... args) throws Exception {
default: default:
{ {
LogHelper.info("Features: [store]"); LogHelper.info("Features: [store]");
return;
} }
} }
LogHelper.info("Feature %s %s", args[0], enabled ? "enabled" : "disabled");
} }
} }

View file

@ -228,7 +228,12 @@ public UpdateRequestEvent requestDo(StandartClientWebSocketService service) thro
// Instance // Instance
@LauncherNetworkAPI @LauncherNetworkAPI
private final String dirName; private final String dirName;
public transient final Path dir; private transient final Path dir;
public Path getDir() {
return dir;
}
private transient final FileNameMatcher matcher; private transient final FileNameMatcher matcher;
private transient final boolean digest; private transient final boolean digest;