File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/main/java/com/e_gineering/maven/gitflowhelper Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 8
8
import javax .script .ScriptEngineManager ;
9
9
import java .util .function .BiFunction ;
10
10
11
+ /**
12
+ * Helper for mapping the GIT branch name
13
+ */
11
14
public class PropertyMapper
12
15
{
13
16
private String propertyName ;
@@ -44,6 +47,12 @@ public void setMapper(final String mapper)
44
47
this .mapper = mapper ;
45
48
}
46
49
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
+ */
47
56
String map (GitBranchInfo gitBranchInfo ) throws MojoExecutionException
48
57
{
49
58
if (StringUtils .isBlank (getPropertyName ())) {
@@ -93,7 +102,6 @@ String map(GitBranchInfo gitBranchInfo) throws MojoExecutionException
93
102
94
103
Invocable inv = (Invocable ) engine ;
95
104
96
- // invoke the function named "hello" with "Scripting!" as the argument
97
105
Object ret = inv .invokeFunction ("map" , gitBranchInfo .getName (), gitBranchInfo .getType ());
98
106
if (ret == null ) {
99
107
return null ;
You can’t perform that action at this time.
0 commit comments