
org.jsoftware.maven.CommandSingleConfMojoAdapter Maven / Gradle / Ivy
package org.jsoftware.maven;
import org.jsoftware.command.AbstractSingleConfDbPatchCommand;
/**
*
* @execute phase="process-resources"
* @author szalik
*/
//see http://maven.apache.org/developers/mojo-api-specification.html
public abstract class CommandSingleConfMojoAdapter extends CommandMojoAdapter {
/**
* Chosen configuration. Use with property "configFile".
* @parameter
*/
private String selectedConfiguration;
protected CommandSingleConfMojoAdapter(T command) {
super(command);
}
public void setSelectedConfiguration(String selectedConfiguration) {
this.selectedConfiguration = selectedConfiguration;
}
@Override
protected void setup(AbstractSingleConfDbPatchCommand command) {
command.setSelectedConfiguration(selectedConfiguration);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy