Skip to content

Commit

Permalink
Merge 5a96aab into 08e214b
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloren committed Feb 26, 2019
2 parents 08e214b + 5a96aab commit d6c69fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions asciidoc-confluence-publisher-doc/etc/docs/00-index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ The Confluence Publisher is configured with the help of a Maven plugin. A typica
| The documentation root folder with the AsciiDoc file structure.
| mandatory

| skip
| Defines whether execution of plugin should be skipped.
| optional (defaults to false)

| sourceEncoding
| The encoding of the AsciiDoc files.
| optional (defaults to UTF-8)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,16 @@ public class AsciidocConfluencePublisherMojo extends AbstractMojo {
@Parameter
private String pageTitleSuffix;

@Parameter(defaultValue = "false")
private boolean skip;

@SuppressWarnings("ResultOfMethodCallIgnored")
@Override
public void execute() throws MojoExecutionException {
if (skip) {
getLog().info("Publishing to Confluence skipped");
return;
}
try {
PageTitlePostProcessor pageTitlePostProcessor = new PrefixAndSuffixPageTitlePostProcessor(this.pageTitlePrefix, this.pageTitleSuffix);

Expand Down

0 comments on commit d6c69fc

Please sign in to comment.