Search in sources :

Example 1 with MavenActivation

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;
}
Also used : MavenActivation(org.eclipse.che.maven.data.MavenActivation) Activation(org.apache.maven.model.Activation)

Example 2 with MavenActivation

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;
}
Also used : MavenActivation(org.eclipse.che.maven.data.MavenActivation)

Aggregations

MavenActivation (org.eclipse.che.maven.data.MavenActivation)2 Activation (org.apache.maven.model.Activation)1