From b0ab351f7fb8984d82174e63c04f5e84aa34cb7c Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 23 Oct 2016 13:18:01 -0700 Subject: [PATCH] Don't check for existence in distributing .debug files. (#137) This check is unnecessary and is run during task creation, so prevents the .debug file from being included the first time gradle is run. --- ntcore.gradle | 7 ++----- wpiutil.gradle | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) 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) } } }