Skip to content

Commit c1a29a2

Browse files
author
Hierlmeier, Richard
committed
Some comments added
1 parent decffc7 commit c1a29a2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/java/com/e_gineering/maven/gitflowhelper/PropertyMapper.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
import javax.script.ScriptEngineManager;
99
import java.util.function.BiFunction;
1010

11+
/**
12+
* Helper for mapping the GIT branch name
13+
*/
1114
public class PropertyMapper
1215
{
1316
private String propertyName;
@@ -44,6 +47,12 @@ public void setMapper(final String mapper)
4447
this.mapper = mapper;
4548
}
4649

50+
/**
51+
* Maps the Git branch name
52+
* @param gitBranchInfo the Git Info
53+
* @return the mapped branch name
54+
* @throws MojoExecutionException on error
55+
*/
4756
String map(GitBranchInfo gitBranchInfo) throws MojoExecutionException
4857
{
4958
if(StringUtils.isBlank(getPropertyName())) {
@@ -93,7 +102,6 @@ String map(GitBranchInfo gitBranchInfo) throws MojoExecutionException
93102

94103
Invocable inv = (Invocable) engine;
95104

96-
// invoke the function named "hello" with "Scripting!" as the argument
97105
Object ret = inv.invokeFunction("map", gitBranchInfo.getName(), gitBranchInfo.getType());
98106
if(ret == null) {
99107
return null;

0 commit comments

Comments
 (0)