diff --git a/ntcore.gradle b/ntcore.gradle index 1072a5439f..623e085c5c 100644 --- a/ntcore.gradle +++ b/ntcore.gradle @@ -83,11 +83,8 @@ def ntcoreZipTask = { project -> from(binary.sharedLibraryFile) { into getPlatformPath(binary) } - def debugFile = new File(binary.sharedLibraryFile.absolutePath + ".debug") - if (debugFile.exists()) { - from(debugFile) { - into getPlatformPath(binary) - } + from(new File(binary.sharedLibraryFile.absolutePath + ".debug")) { + into getPlatformPath(binary) } } } diff --git a/wpiutil.gradle b/wpiutil.gradle index a31d8dbf30..d87f2ca22f 100644 --- a/wpiutil.gradle +++ b/wpiutil.gradle @@ -52,11 +52,8 @@ def wpiutilZipTask = { project -> from(binary.sharedLibraryFile) { into getPlatformPath(binary) } - def debugFile = new File(binary.sharedLibraryFile.absolutePath + ".debug") - if (debugFile.exists()) { - from(debugFile) { - into getPlatformPath(binary) - } + from(new File(binary.sharedLibraryFile.absolutePath + ".debug")) { + into getPlatformPath(binary) } } }