This commit is contained in:
Leijurv 2023-06-17 20:12:05 -07:00
parent fef7ba4701
commit 94027d17f2
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 20 additions and 20 deletions

View File

@ -66,7 +66,7 @@ class BaritoneGradleTask extends DefaultTask {
this.proguardOut = this.getTemporaryFile(PROGUARD_EXPORT_PATH); this.proguardOut = this.getTemporaryFile(PROGUARD_EXPORT_PATH);
if (!Files.exists(this.artifactPath)) { if (!Files.exists(this.artifactPath)) {
throw new IllegalStateException("Artifact not found! Run build first!"); throw new IllegalStateException("Artifact not found! Run build first! " + this.artifactPath);
} }
} }
@ -82,7 +82,7 @@ class BaritoneGradleTask extends DefaultTask {
} }
protected Path getRelativeFile(String file) { protected Path getRelativeFile(String file) {
return Paths.get(new File(file).getAbsolutePath()); return Paths.get(this.getProject().file(file).getAbsolutePath());
} }
protected Path getTemporaryFile(String file) { protected Path getTemporaryFile(String file) {