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.
This commit is contained in:
Peter Johnson
2016-10-23 13:18:01 -07:00
committed by GitHub
parent 353041535c
commit b0ab351f7f
2 changed files with 4 additions and 10 deletions

View File

@@ -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)
}
}
}

View File

@@ -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)
}
}
}