Skip to content

Commit 60a04d5

Browse files
committed
Skipping compile requires touching the test binary.
1 parent 8e4a3b0 commit 60a04d5

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)