Skip to content

Commit

Permalink
Try to fix issue with local Apollo codegen CLI not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
sav007 committed May 13, 2019
1 parent 3e702c4 commit 8ca91c9
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ class ApolloLocalCodegenGenerationTask extends NodeTask {

@Override
void exec() {
File apolloScript = new File(getProject().getBuildDir(), APOLLO_CODEGEN)
if (!apolloScript.isFile()) {
throw new GradleException(
"Apollo-codegen was not found in node_modules. Please run the installApolloCodegen task.")
}
setScript(apolloScript)
setScript(new File(getProject().getBuildDir(), APOLLO_CODEGEN))

List<CodegenGenerationTaskCommandArgsBuilder.CommandArgs> args = new CodegenGenerationTaskCommandArgsBuilder(
this, schemaFilePath.get(), outputPackageName.get(), outputDir.get().asFile, variant, sourceSetNames
Expand Down

0 comments on commit 8ca91c9

Please sign in to comment.