Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict getOutputSourceDirectorySet() to directories only #523

Closed
wants to merge 9 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,16 @@ public abstract class GenerateProtoTask extends DefaultTask {
SourceDirectorySet srcSet
srcSet = objectFactory.sourceDirectorySet(srcSetName, srcSetName)
builtins.each { builtin ->
srcSet.srcDir new File(getOutputDir(builtin))
File dir = new File(getOutputDir(builtin))
if (!dir.name.endsWith(".zip") && !dir.name.endsWith(".jar")) {
srcSet.srcDir dir
}
}
plugins.each { plugin ->
srcSet.srcDir new File(getOutputDir(plugin))
File dir = new File(getOutputDir(plugin))
if (!dir.name.endsWith(".zip") && !dir.name.endsWith(".jar")) {
srcSet.srcDir dir
}
}
return srcSet
}
Expand Down