Skip to content

Commit

Permalink
Add skip option to UpdateExtensionDocPageMojo to be able to workaround
Browse files Browse the repository at this point in the history
ppalaga committed Jun 30, 2020
1 parent 5d61dbe commit 085984d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -49,6 +49,7 @@
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

@Mojo(name = "update-extension-doc-page", threadSafe = true)
public class UpdateExtensionDocPageMojo extends AbstractDocGeneratorMojo {
@@ -57,8 +58,15 @@ public class UpdateExtensionDocPageMojo extends AbstractDocGeneratorMojo {
private static List<String> list2;
private static final Map<String, Boolean> nativeSslActivators = new ConcurrentHashMap<>();

@Parameter(defaultValue = "false", property = "camel-quarkus.update-extension-doc-page.skip")
boolean skip = false;

@Override
public void execute() throws MojoExecutionException, MojoFailureException {
if (skip) {
getLog().info("Skipping per user request");
return;
}
final Charset charset = Charset.forName(encoding);
final Path basePath = baseDir.toPath();

0 comments on commit 085984d

Please sign in to comment.