Skip to content
Snippets Groups Projects
Commit c91228ba authored by Pierre Delagrave's avatar Pierre Delagrave
Browse files

Instead of the environment variable skipITs, now using a plugin specific...

Instead of the environment variable skipITs, now using a plugin specific parameter "embedmongo.skip" to allow skipping
parent d1b355ce
No related branches found
No related tags found
No related merge requests found
...@@ -207,16 +207,16 @@ public class StartEmbeddedMongoMojo extends AbstractMojo { ...@@ -207,16 +207,16 @@ public class StartEmbeddedMongoMojo extends AbstractMojo {
private MavenProject project; private MavenProject project;
/** /**
* @parameter expression="${skipITs}" default-value="false" * @parameter expression="${embedmongo.skip}" default-value="false"
*/ */
private boolean skipITs; private boolean skip;
@Override @Override
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public void execute() throws MojoExecutionException, MojoFailureException { public void execute() throws MojoExecutionException, MojoFailureException {
if (skipITs) { if (skip) {
getLog().info("skipITs detected, not starting embedmongo"); getLog().debug("skip=true, not starting embedmongo");
return; return;
} }
......
...@@ -31,13 +31,13 @@ import de.flapdoodle.embed.mongo.MongodProcess; ...@@ -31,13 +31,13 @@ import de.flapdoodle.embed.mongo.MongodProcess;
public class StopEmbeddedMongoMojo extends AbstractMojo { public class StopEmbeddedMongoMojo extends AbstractMojo {
/** /**
* @parameter expression="${skipITs}" default-value="false" * @parameter expression="${embedmongo.skip}" default-value="false"
*/ */
private boolean skipITs; private boolean skip;
@Override @Override
public void execute() throws MojoExecutionException, MojoFailureException { public void execute() throws MojoExecutionException, MojoFailureException {
if (skipITs) { if (skip) {
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment