Skip to content

Commit

Permalink
Fixed #50
Browse files Browse the repository at this point in the history
Fixed #50
Add a skip parameter.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>
  • Loading branch information
cescoffier committed Oct 4, 2013
1 parent 182a1f9 commit dc44c21
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -229,6 +229,14 @@ public class SiteMojo extends GitHubProjectMojo {
*/
private boolean dryRun;

/**
* Skip the site upload.
*
* @parameter expression="${github.site.skip}"
* default-value="false"
*/
private boolean skip;

/**
* Create blob
*
Expand Down Expand Up @@ -282,6 +290,11 @@ protected String createBlob(DataService service, RepositoryId repository,
}

public void execute() throws MojoExecutionException {
if (skip) {
info("Github Site Plugin execution skipped");
return;
}

RepositoryId repository = getRepository(project, repositoryOwner,
repositoryName);

Expand Down

0 comments on commit dc44c21

Please sign in to comment.