forked from aleksandr-m/gitflow-maven-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes aleksandr-m#8 - Enable to customize commit messages
- Loading branch information
1 parent
798d8bb
commit ecd0b2e
Showing
9 changed files
with
185 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
170 changes: 170 additions & 0 deletions
170
src/main/java/com/amashchenko/maven/plugin/gitflow/CommitMessages.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
/* | ||
* Copyright 2014-2015 Aleksandr Mashchenko. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.amashchenko.maven.plugin.gitflow; | ||
|
||
/** | ||
* Git commit messages. | ||
* | ||
* @author Aleksandr Mashchenko | ||
* | ||
*/ | ||
public class CommitMessages { | ||
private String featureStartMessage; | ||
private String featureFinishMessage; | ||
|
||
private String hotfixStartMessage; | ||
private String hotfixFinishMessage; | ||
|
||
private String releaseStartMessage; | ||
private String releaseFinishMessage; | ||
|
||
private String tagHotfixMessage; | ||
private String tagReleaseMessage; | ||
|
||
public CommitMessages() { | ||
featureStartMessage = "updating versions for feature branch"; | ||
featureFinishMessage = "updating versions for development branch"; | ||
|
||
hotfixStartMessage = "updating versions for hotfix"; | ||
hotfixFinishMessage = "updating for next development version"; | ||
|
||
releaseStartMessage = "updating versions for release"; | ||
releaseFinishMessage = "updating for next development version"; | ||
|
||
tagHotfixMessage = "tagging hotfix"; | ||
tagReleaseMessage = "tagging release"; | ||
} | ||
|
||
/** | ||
* @return the featureStartMessage | ||
*/ | ||
public String getFeatureStartMessage() { | ||
return featureStartMessage; | ||
} | ||
|
||
/** | ||
* @param featureStartMessage | ||
* the featureStartMessage to set | ||
*/ | ||
public void setFeatureStartMessage(String featureStartMessage) { | ||
this.featureStartMessage = featureStartMessage; | ||
} | ||
|
||
/** | ||
* @return the featureFinishMessage | ||
*/ | ||
public String getFeatureFinishMessage() { | ||
return featureFinishMessage; | ||
} | ||
|
||
/** | ||
* @param featureFinishMessage | ||
* the featureFinishMessage to set | ||
*/ | ||
public void setFeatureFinishMessage(String featureFinishMessage) { | ||
this.featureFinishMessage = featureFinishMessage; | ||
} | ||
|
||
/** | ||
* @return the hotfixStartMessage | ||
*/ | ||
public String getHotfixStartMessage() { | ||
return hotfixStartMessage; | ||
} | ||
|
||
/** | ||
* @param hotfixStartMessage | ||
* the hotfixStartMessage to set | ||
*/ | ||
public void setHotfixStartMessage(String hotfixStartMessage) { | ||
this.hotfixStartMessage = hotfixStartMessage; | ||
} | ||
|
||
/** | ||
* @return the hotfixFinishMessage | ||
*/ | ||
public String getHotfixFinishMessage() { | ||
return hotfixFinishMessage; | ||
} | ||
|
||
/** | ||
* @param hotfixFinishMessage | ||
* the hotfixFinishMessage to set | ||
*/ | ||
public void setHotfixFinishMessage(String hotfixFinishMessage) { | ||
this.hotfixFinishMessage = hotfixFinishMessage; | ||
} | ||
|
||
/** | ||
* @return the releaseStartMessage | ||
*/ | ||
public String getReleaseStartMessage() { | ||
return releaseStartMessage; | ||
} | ||
|
||
/** | ||
* @param releaseStartMessage | ||
* the releaseStartMessage to set | ||
*/ | ||
public void setReleaseStartMessage(String releaseStartMessage) { | ||
this.releaseStartMessage = releaseStartMessage; | ||
} | ||
|
||
/** | ||
* @return the releaseFinishMessage | ||
*/ | ||
public String getReleaseFinishMessage() { | ||
return releaseFinishMessage; | ||
} | ||
|
||
/** | ||
* @param releaseFinishMessage | ||
* the releaseFinishMessage to set | ||
*/ | ||
public void setReleaseFinishMessage(String releaseFinishMessage) { | ||
this.releaseFinishMessage = releaseFinishMessage; | ||
} | ||
|
||
/** | ||
* @return the tagHotfixMessage | ||
*/ | ||
public String getTagHotfixMessage() { | ||
return tagHotfixMessage; | ||
} | ||
|
||
/** | ||
* @param tagHotfixMessage | ||
* the tagHotfixMessage to set | ||
*/ | ||
public void setTagHotfixMessage(String tagHotfixMessage) { | ||
this.tagHotfixMessage = tagHotfixMessage; | ||
} | ||
|
||
/** | ||
* @return the tagReleaseMessage | ||
*/ | ||
public String getTagReleaseMessage() { | ||
return tagReleaseMessage; | ||
} | ||
|
||
/** | ||
* @param tagReleaseMessage | ||
* the tagReleaseMessage to set | ||
*/ | ||
public void setTagReleaseMessage(String tagReleaseMessage) { | ||
this.tagReleaseMessage = tagReleaseMessage; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters