public static ActivationProperty cloneActivationProperty( ActivationProperty src ) { if ( src == null ) { return null; } ActivationProperty result = new ActivationProperty(); result.setName( src.getName() ); result.setValue( src.getValue() ); return result; }
activationProperty.setValue( interpolatedTrimmed( parser.nextText(), "value" ) );
activationProperty.setValue( interpolatedTrimmed( parser.nextText(), "value" ) );
public ProfileBuilder activeForPropertyValue(String name, String value) { ActivationProperty activationProperty = new ActivationProperty(); activationProperty.setName(name); activationProperty.setValue(value); getActivation().setProperty(activationProperty); return this; }
prop.setValue( profileProp.getValue() );
prop.setValue( settingsProp.getValue() );
activationProperty.setValue( getTrimmedValue( value ) );
private static ActivationProperty asActivationProperty(org.apache.maven.settings.ActivationProperty property) { ActivationProperty mavenProperty = new ActivationProperty(); if (property != null) { mavenProperty.setName(property.getName()); mavenProperty.setValue(property.getValue()); } return mavenProperty; }
private static ActivationProperty asActivationProperty(org.apache.maven.settings.ActivationProperty property) { ActivationProperty mavenProperty = new ActivationProperty(); if (property != null) { mavenProperty.setName(property.getName()); mavenProperty.setValue(property.getValue()); } return mavenProperty; }
ActivationProperty prop = new ActivationProperty(); prop.setName(PROPERTY_PROFILE); prop.setValue("true"); //NOI18N act.setProperty(prop); publicProfile.setActivation(act);
activationProperty.setValue( getTrimmedValue( parser.nextText() ) );
activationProperty.setValue( getTrimmedValue( parser.nextText() ) );
private org.apache.maven.model.Activation createModelActivation( Activation activation) { org.apache.maven.model.Activation modelActivation = new org.apache.maven.model.Activation(); modelActivation.setActiveByDefault(activation.isActiveByDefault()); if (activation.getFile() != null) { ActivationFile activationFile = new ActivationFile(); activationFile.setExists(activation.getFile().getExists()); activationFile.setMissing(activation.getFile().getMissing()); modelActivation.setFile(activationFile); } modelActivation.setJdk(activation.getJdk()); if (activation.getOs() != null) { ActivationOS os = new ActivationOS(); os.setArch(activation.getOs().getArch()); os.setFamily(activation.getOs().getFamily()); os.setName(activation.getOs().getName()); os.setVersion(activation.getOs().getVersion()); modelActivation.setOs(os); } if (activation.getProperty() != null) { ActivationProperty property = new ActivationProperty(); property.setName(activation.getProperty().getName()); property.setValue(activation.getProperty().getValue()); modelActivation.setProperty(property); } return modelActivation; }
private org.apache.maven.model.Activation createModelActivation( Activation activation) { org.apache.maven.model.Activation modelActivation = new org.apache.maven.model.Activation(); modelActivation.setActiveByDefault(activation.isActiveByDefault()); if (activation.getFile() != null) { ActivationFile activationFile = new ActivationFile(); activationFile.setExists(activation.getFile().getExists()); activationFile.setMissing(activation.getFile().getMissing()); modelActivation.setFile(activationFile); } modelActivation.setJdk(activation.getJdk()); if (activation.getOs() != null) { ActivationOS os = new ActivationOS(); os.setArch(activation.getOs().getArch()); os.setFamily(activation.getOs().getFamily()); os.setName(activation.getOs().getName()); os.setVersion(activation.getOs().getVersion()); modelActivation.setOs(os); } if (activation.getProperty() != null) { ActivationProperty property = new ActivationProperty(); property.setName(activation.getProperty().getName()); property.setValue(activation.getProperty().getValue()); modelActivation.setProperty(property); } return modelActivation; }
private org.apache.maven.model.Activation createModelActivation( Activation activation) { org.apache.maven.model.Activation modelActivation = new org.apache.maven.model.Activation(); modelActivation.setActiveByDefault(activation.isActiveByDefault()); if (activation.getFile() != null) { ActivationFile activationFile = new ActivationFile(); activationFile.setExists(activation.getFile().getExists()); activationFile.setMissing(activation.getFile().getMissing()); modelActivation.setFile(activationFile); } modelActivation.setJdk(activation.getJdk()); if (activation.getOs() != null) { ActivationOS os = new ActivationOS(); os.setArch(activation.getOs().getArch()); os.setFamily(activation.getOs().getFamily()); os.setName(activation.getOs().getName()); os.setVersion(activation.getOs().getVersion()); modelActivation.setOs(os); } if (activation.getProperty() != null) { ActivationProperty property = new ActivationProperty(); property.setName(activation.getProperty().getName()); property.setValue(activation.getProperty().getValue()); modelActivation.setProperty(property); } return modelActivation; }