Skip to content

Commit

Permalink
Use --spec-file post 1.25.0 (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
wisechengyi authored Feb 12, 2020
1 parent d095b8b commit 99c189b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,12 @@ private GeneralCommandLine getPantsExportCommand(final File outputFile, @NotNull
targetSpecsFileWriter.write('\n');
}
}
commandLine.addParameter("--target-spec-file=" + targetSpecsFile.getPath());
if (PantsUtil.isCompatiblePantsVersion(getProjectPath(), "1.25.0")) {
commandLine.addParameter("--spec-file=" + targetSpecsFile.getPath());
}
else {
commandLine.addParameter("--target-spec-file=" + targetSpecsFile.getPath());
}
commandLine.addParameter("--no-quiet");

if (PantsUtil.isCompatiblePantsVersion(getProjectPath(), "1.24.0")) {
Expand Down

0 comments on commit 99c189b

Please sign in to comment.