Skip to content

Commit

Permalink
Try to fix issue with local Apollo codegen CLI not found error (#1294)
Browse files Browse the repository at this point in the history
Part of #1265
  • Loading branch information
sav007 authored May 13, 2019
1 parent 3e702c4 commit 8eaa80e
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 8eaa80e

Please sign in to comment.