diff options
Diffstat (limited to 'src/main/java/org/apache/maven/plugin/nar/Linker.java')
-rw-r--r-- | src/main/java/org/apache/maven/plugin/nar/Linker.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/Linker.java b/src/main/java/org/apache/maven/plugin/nar/Linker.java index 951e06b..053462d 100644 --- a/src/main/java/org/apache/maven/plugin/nar/Linker.java +++ b/src/main/java/org/apache/maven/plugin/nar/Linker.java @@ -155,9 +155,13 @@ public class Linker { this.name = name; } + + public final String getName() { + return name; + } public final String getName( Properties defaults, String prefix ) - throws MojoFailureException + throws MojoFailureException, MojoExecutionException { if ( ( name == null ) && ( defaults != null ) && ( prefix != null ) ) { @@ -165,7 +169,7 @@ public class Linker } if ( name == null ) { - throw new MojoFailureException( "NAR: One of two things may be wrong here:\n\n" + throw new MojoExecutionException( "NAR: One of two things may be wrong here:\n\n" + "1. <Name> tag is missing inside the <Linker> tag of your NAR configuration\n\n" + "2. no linker is defined in the aol.properties file for '" + prefix + "linker'\n" ); } |