Skip to content

Commit

Permalink
Merge pull request #197 from xtext/cd_issue196
Browse files Browse the repository at this point in the history
fix SkipWhenEmpty. Fixes #196
  • Loading branch information
oehme authored Feb 8, 2022
2 parents a897d07 + ba26d86 commit 1738f18
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import org.gradle.api.DefaultTask
import org.gradle.api.JavaVersion
import org.gradle.api.file.FileCollection
import org.gradle.api.tasks.Classpath
import org.gradle.api.tasks.IgnoreEmptyDirectories
import org.gradle.api.tasks.InputFiles
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.Nested
Expand Down Expand Up @@ -63,7 +64,7 @@ class XtextGenerate extends DefaultTask {
sources.files
}

@InputFiles @SkipWhenEmpty
@InputFiles @SkipWhenEmpty @IgnoreEmptyDirectories
def getMainSources() {
val extensions = languages.filter[!generator.outlets.empty].map[fileExtensions].flatten.map["**/*." + it]
sources.files.matching[include(extensions)]
Expand Down

0 comments on commit 1738f18

Please sign in to comment.