use of com.itemis.maven.plugins.cdi.annotations.MojoInject in project unleash-maven-plugin by shillner.
the class AbstractUnleashMojo method getReleaseArgs.
@MojoProduces
@Named("releaseArgs")
@MojoInject
private Properties getReleaseArgs(Log log) {
Properties args = new Properties();
Splitter splitter = Splitter.on('=');
for (String arg : this.releaseArgs) {
List<String> split = splitter.splitToList(arg);
if (split.size() == 2) {
args.put(split.get(0), split.get(1));
} else {
log.warn("Could not set '" + arg + "' as a Property for the Maven release build.");
}
}
// Add default property indicating that the unleash plugin is triggering the build
args.put("isUnleashBuild", "true");
return args;
}
Aggregations