1 package org.apache.maven.plugin.cxx.utils.release;
2
3 /*
4 * Copyright (C) 2011-2016, Neticoa SAS France - Tous droits réservés.
5 * Author(s) : Franck Bonin, Neticoa SAS France
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 */
20
21 import org.apache.maven.shared.release.config.ReleaseDescriptor;
22
23 /**
24 *
25 *
26 * ReleaseDescriptor :
27
28 MAP releaseVersions = MAP des versions release à tagger ou brancher, une par artefact
29 clé = ProjecId
30 valeur = string (une version)
31 MAP developmentVersions = MAP des versions dev auquelles revenir apres le tag ou la branche, une par artefact
32 clé = ProjecId
33 valeur = string (une version)
34 MAP resolvedSnapshotDependencies = MAP qui transforme les versions des dépendence encore en version SNAPSHOT vers
35 * des versions release. voir CheckDependencySnapshotsPhase,
36 clé = ProjecId
37 valeur = une map à deux entrées
38 Cle1 "ReleaseDescriptor.RELEASE_KEY"
39 valeur1 = string (la version release à tagger ou brancher)
40 Cle2 "ReleaseDescriptor.DEVELOPMENT_KEY"
41 valeur2 = string (la version dev à laquelle revenir apres le tag ou la branche)
42 * @author Franck bonin
43 **/
44 public class CxxReleaseDescriptor extends ReleaseDescriptor
45 {
46 /**
47 * run cycle in simulation mode
48 */
49 private boolean dryRun = true;
50
51 public void setDryRun( boolean dryRun )
52 {
53 this.dryRun = dryRun;
54 }
55
56 public boolean getDryRun( )
57 {
58 return dryRun;
59 }
60
61 /**
62 * new main artifactId if any
63 */
64 private String artifactId = null;
65
66 public void setArtifactId( String artifactId )
67 {
68 this.artifactId = artifactId;
69 }
70
71 public String getArtifactId( )
72 {
73 return artifactId;
74 }
75
76 /**
77 *
78 */
79 private boolean snapshotDevelopmentVersion = false;
80
81 public void setSnapshotDevelopmentVersion( boolean snapshotDevelopmentVersion )
82 {
83 this.snapshotDevelopmentVersion = snapshotDevelopmentVersion;
84 }
85
86 public boolean isSnapshotDevelopmentVersion( )
87 {
88 return snapshotDevelopmentVersion;
89 }
90
91 }