use of org.eclipse.che.maven.data.MavenActivation in project che by eclipse.
the class MavenModelUtil method convertToMavenActivation.
private static Activation convertToMavenActivation(MavenActivation activation) {
if (activation != null) {
Activation result = new Activation();
result.setActiveByDefault(activation.isActiveByDefault());
result.setFile(convertToMavenActivationFile(activation.getFile()));
result.setJdk(activation.getJdk());
result.setOs(convertToMavenActivationOs(activation.getOs()));
result.setProperty(convertToMavenActivationProperty(activation.getProperty()));
return result;
}
return null;
}
use of org.eclipse.che.maven.data.MavenActivation in project che by eclipse.
the class MavenModelUtil method convertActivation.
private static MavenActivation convertActivation(Activation activation) {
if (activation == null) {
return null;
}
MavenActivation result = new MavenActivation();
result.setActiveByDefault(activation.isActiveByDefault());
result.setFile(convertFileActivation(activation.getFile()));
result.setJdk(activation.getJdk());
result.setOs(convertOsActivation(activation.getOs()));
result.setProperty(convertPropertyActivation(activation.getProperty()));
return result;
}
Aggregations