@Test public void params() throws Exception { final ParametersMojo mojo = mojo(ParametersMojo.class); final long id = mojo.getOrCreateOperator().start("simple", new Properties() {{ setProperty("a", "b"); }}); waitForEnd(mojo.getOrCreateOperator(), id); mojo.executionId = id; mojo.execute(); final String output = BatchEEMojoTestFactory.output(mojo).toLowerCase(Locale.ENGLISH); assertTrue(output.contains("parameters")); assertTrue(output.contains("a = b")); }
@Override public void execute() throws MojoExecutionException, MojoFailureException { final Properties parameters = getOrCreateOperator().getParameters(executionId); getLog().info("Job parameters for execution #" + executionId + ":"); for (final String key : parameters.stringPropertyNames()) { getLog().info(" - " + key + " = " + parameters.getProperty(key)); } }
ParametersMojo extends BatchEEMojoBase { @Override public void execute() throws MojoExecutionException, MojoFailureException { final Properties parameters = getOrCreateOperator().getParameters(executionId); getLog().info("Job parameters for execution #" + executionId + ":"); for (final String key : parameters.stringPropertyNames()) { getLog().info(" - " + key + " = " + parameters.getProperty(key)); } } }
ParametersMojo extends BatchEEMojoBase { @Override public void execute() throws MojoExecutionException, MojoFailureException { final Properties parameters = getOrCreateOperator().getParameters(executionId); getLog().info("Job parameters for execution #" + executionId + ":"); for (final String key : parameters.stringPropertyNames()) { getLog().info(" - " + key + " = " + parameters.getProperty(key)); } }  }
ParametersMojo extends BatchEEMojoBase { @Override public void execute() throws MojoExecutionException, MojoFailureException { final Properties parameters = getOrCreateOperator().getParameters(executionId); getLog().info("Job parameters for execution #" + executionId + ":"); for (final String key : parameters.stringPropertyNames()) { getLog().info(" - " + key + " = " + parameters.getProperty(key)); } }  @Override void execute(); }
ParametersMojo extends BatchEEMojoBase { @Override public void execute() throws MojoExecutionException, MojoFailureException { final Properties parameters = getOrCreateOperator().getParameters(executionId); getLog().info("Job parameters for execution #" + executionId + ":"); for (final String key : parameters.stringPropertyNames()) { getLog().info(" - " + key + " = " + parameters.getProperty(key)); } }  @Override void execute();  }