mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Fix from files.
This commit is contained in:
parent
2b179abf49
commit
12f4123fb6
1 changed files with 3 additions and 2 deletions
|
@ -39,8 +39,9 @@ public class JarUtils {
|
||||||
foundFiles.forEach { foundFile ->
|
foundFiles.forEach { foundFile ->
|
||||||
|
|
||||||
// Turn the found file into the local physical file that will be put in the jar file
|
// Turn the found file into the local physical file that will be put in the jar file
|
||||||
val localFile = if (File(foundFile.path).isAbsolute) File(foundFile.path)
|
val fromFile = file.from(foundFile.path)
|
||||||
else File(directory, file.from(foundFile.path).path)
|
val localFile = if (fromFile.isAbsolute) fromFile
|
||||||
|
else File(directory, fromFile.path)
|
||||||
|
|
||||||
if (!localFile.exists()) {
|
if (!localFile.exists()) {
|
||||||
throw AssertionError("File should exist: $localFile")
|
throw AssertionError("File should exist: $localFile")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue