Skip to content

Commit 1cd48f3

Browse files
committed
Merge pull request #82 from advayDev1/skipCompileToo
compileSkip: fix bug with non-existent test binary
2 parents 0f2a51e + 60a04d5 commit 1cd48f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

j2objc.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,11 @@ class J2objcCompileTask extends DefaultTask {
764764
@TaskAction
765765
def compile() {
766766
if (project.j2objcConfig.compileSkip) {
767+
assert project.j2objcConfig.testSkip
768+
// TODO: When we use task.enabled, dependencies will handle
769+
// this correctly. Currently, touching the file is required to
770+
// avoid j2objcTest from complaining about a lack of input files.
771+
destFile.createNewFile()
767772
logger.debug "Skipping j2objcCompile"
768773
return
769774
}

0 commit comments

Comments
 (0)