use of com.itemis.maven.plugins.cdi.annotations.MojoProduces in project unleash-maven-plugin by shillner.
the class AbstractUnleashMojo method getUnleashOutputFolder.
@MojoProduces
@Named("unleashOutputFolder")
private File getUnleashOutputFolder() {
File folder = new File(this.project.getBuild().getDirectory(), "unleash");
folder.mkdirs();
return folder;
}
use of com.itemis.maven.plugins.cdi.annotations.MojoProduces 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