org.apache.maven.profiles.Activation profileActivation = profileXmlProfile.getActivation();
if ( profileActivation != null )
{
Activation activation = new Activation();
activation.setActiveByDefault( profileActivation.isActiveByDefault() );
activation.setJdk( profileActivation.getJdk() );
org.apache.maven.profiles.ActivationProperty profileProp = profileActivation.getProperty();
if ( profileProp != null )
{
ActivationProperty prop = new ActivationProperty();
prop.setName( profileProp.getName() );
prop.setValue( profileProp.getValue() );
activation.setProperty( prop );
}
ActivationOS profileOs = profileActivation.getOs();
if ( profileOs != null )
{
org.apache.maven.model.ActivationOS os = new org.apache.maven.model.ActivationOS();
os.setArch( profileOs.getArch() );
os.setFamily( profileOs.getFamily() );
os.setName( profileOs.getName() );
os.setVersion( profileOs.getVersion() );
activation.setOs( os );
}
org.apache.maven.profiles.ActivationFile profileFile = profileActivation.getFile();
if ( profileFile != null )
{
ActivationFile file = new ActivationFile();
file.setExists( profileFile.getExists() );
file.setMissing( profileFile.getMissing() );
activation.setFile( file );
}
profile.setActivation( activation );
}