From 3dca89f0015613ab3f287945965e9f92a6079cd8 Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Tue, 6 Oct 2009 14:44:29 +0200 Subject: Reformat all source files and add licenses to tests --- .../java/org/apache/maven/plugin/nar/Test.java | 62 +++++++++++----------- 1 file changed, 32 insertions(+), 30 deletions(-) (limited to 'src/main/java/org/apache/maven/plugin/nar/Test.java') diff --git a/src/main/java/org/apache/maven/plugin/nar/Test.java b/src/main/java/org/apache/maven/plugin/nar/Test.java index 3f4edaa..e943c6b 100644 --- a/src/main/java/org/apache/maven/plugin/nar/Test.java +++ b/src/main/java/org/apache/maven/plugin/nar/Test.java @@ -26,60 +26,62 @@ import org.apache.maven.plugin.MojoFailureException; /** * Sets up a test to create - * + * * @author Mark Donszelmann */ -public class Test implements Executable { +public class Test + implements Executable +{ /** * Name of the test to create - * + * * @required * @parameter expression="" */ protected String name = null; /** - * Type of linking used for this test - * Possible choices are: "shared" or "static". - * Defaults to "shared". + * Type of linking used for this test Possible choices are: "shared" or "static". Defaults to "shared". * * @parameter expression="" */ protected String link = Library.SHARED; /** - * When true run this test. - * Defaults to true; + * When true run this test. Defaults to true; * * @parameter expresssion="" */ - protected boolean run=true; - - /** - * Arguments to be used for running this test. - * Defaults to empty list. This option is - * only used if run=true. - * - * @parameter expression="" - */ - protected List/**/ args = new ArrayList(); - - public String getName() throws MojoFailureException { - if (name == null) throw new MojoFailureException("NAR: Please specify as part of "); + protected boolean run = true; + + /** + * Arguments to be used for running this test. Defaults to empty list. This option is only used if run=true. + * + * @parameter expression="" + */ + protected List/* */args = new ArrayList(); + + public String getName() + throws MojoFailureException + { + if ( name == null ) + throw new MojoFailureException( "NAR: Please specify as part of " ); return name; } - - public String getLink() { + + public String getLink() + { return link; } - - public boolean shouldRun() { - return run; + + public boolean shouldRun() + { + return run; } - - public List/**/ getArgs() { - return args; + + public List/* */getArgs() + { + return args; } } - -- cgit v1.2.3