Package org.apache.maven.shared.release.policy.version

Examples of org.apache.maven.shared.release.policy.version.VersionPolicyResult


    public VersionPolicyResult getReleaseVersion( VersionPolicyRequest request )
        throws PolicyException, VersionParseException
    {
        String releaseVersion = new DefaultVersionInfo( request.getVersion() ).getReleaseVersionString();
        return new VersionPolicyResult().setVersion( releaseVersion );
    }
View Full Code Here


    public VersionPolicyResult getDevelopmentVersion( VersionPolicyRequest request )
        throws PolicyException, VersionParseException
    {
        String developmentVersion = new DefaultVersionInfo( request.getVersion() ).getNextVersion().getSnapshotVersionString();
        return new VersionPolicyResult().setVersion( developmentVersion );
    }
View Full Code Here

        }

        String nextVersion = development ? suggestedVersionInfo.getSnapshotVersionString()
                                         : suggestedVersionInfo.getReleaseVersionString();

        return new VersionPolicyResult().setVersion( nextVersion );
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.shared.release.policy.version.VersionPolicyResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.