Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,19 @@ public class StartContainerMojo extends AbstractMojo {
@Parameter
private String[] vmOptions;

/**
* If true, skip execution.
*/
@Parameter
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@parameter(property = "maven.paxexam.start.skip", defaultValue = "false") ?

private boolean skip;


@Override
public void execute() throws MojoExecutionException, MojoFailureException {
if (skip) {
return;
}

getLog().debug("classpath for forked process:");
for (String cp : classpathElements) {
getLog().debug(cp);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,18 @@ public class StopContainerMojo extends AbstractMojo {
@Parameter(defaultValue = "${mojoExecution}", readonly = true)
private MojoExecution mojoExecution;

/**
* If true, skip execution.
*/
@Parameter
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@parameter(property = "maven.paxexam.stop.skip", defaultValue = "false") ?

private boolean skip;

@Override
public void execute() throws MojoExecutionException, MojoFailureException {
if (skip) {
return;
}

Object object = getPluginContext().get(TEST_CONTAINER_RUNNER_KEY + mojoExecution.getExecutionId());
if (object == null) {
throw new MojoExecutionException(
Expand Down