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

Prevent copying protos to extractedProtosDir #20

Open
janbruck opened this issue Sep 26, 2014 · 0 comments
Open

Prevent copying protos to extractedProtosDir #20

janbruck opened this issue Sep 26, 2014 · 0 comments

Comments

@janbruck
Copy link

Because of the way my protos are structured (in different directories with import statements assuming a specific path in the proto path parameter of the protoc command), I am getting duplicate proto errors when I try to use the plugin to compile my proto files. I believe because it is finding some protos in the directory specified in an import statement and in the local extractedProtosDir that the plugin creates.
Is there a way to tell the plugin to NOT copy the proto files specified in the dependencies into the extractedProtosDir? I've tried disabling the extractedProto task and the compile output shows that the extractedProto task is skipped while the generateProto task is run (shows as UP-TO-DATE), but no java files are actually generated. I'm not sure if this is because generateProto is dependent on extractedProto, but I've tried removing the dependency as well (using generateProto.dependsOn.remove("extractedProto")) with no success.
It would be great that if the extractedProtosDir is not specified that instead of using a default directory, it doesn't actually copy over the proto files at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant