Search in sources :

Example 6 with Version

use of alien4cloud.utils.version.Version in project alien4cloud by alien4cloud.

the class Csar method setVersion.

/**
 * In the context of parsing you can not override version when already provided (in case of tosca meta).
 *
 * @param version The new version of the archive.
 */
public void setVersion(String version) {
    if (this.version == null || !ParsingContextExecution.exist()) {
        this.version = version;
        this.nestedVersion = new Version(version);
    }
}
Also used : Version(alien4cloud.utils.version.Version)

Aggregations

Version (alien4cloud.utils.version.Version)6 AlreadyExistException (alien4cloud.exception.AlreadyExistException)1 ServiceChangedEvent (org.alien4cloud.alm.service.events.ServiceChangedEvent)1 ComplexPropertyValue (org.alien4cloud.tosca.model.definitions.ComplexPropertyValue)1 PropertyDefinition (org.alien4cloud.tosca.model.definitions.PropertyDefinition)1 PropertyValue (org.alien4cloud.tosca.model.definitions.PropertyValue)1 ScalarPropertyValue (org.alien4cloud.tosca.model.definitions.ScalarPropertyValue)1 NodeType (org.alien4cloud.tosca.model.types.NodeType)1 Test (org.junit.Test)1