From 8c892891ccf3d6427e26939d49a9b4a4cb066fe6 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Sat, 23 Oct 2004 23:06:06 +0000 Subject: [PATCH] o formatting git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163207 13f79535-47bb-0310-9956-ffa450edef68 --- .../plugin/descriptor/MojoDescriptor.java | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/maven-plugin/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java b/maven-plugin/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java index 393faeec1e..019e85d6c3 100644 --- a/maven-plugin/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java +++ b/maven-plugin/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java @@ -27,9 +27,9 @@ public class MojoDescriptor implements Cloneable { public static final String SINGLE_PASS_EXEC_STRATEGY = "once-per-session"; - + public static final String MULTI_PASS_EXEC_STRATEGY = "always"; - + private String implementation; private String description; @@ -41,7 +41,7 @@ public class MojoDescriptor private Map parameterMap; private String instantiationStrategy = "singleton"; - + private String executionStrategy = SINGLE_PASS_EXEC_STRATEGY; private String goal; @@ -188,28 +188,31 @@ public class MojoDescriptor this.goal = goal; } - public boolean alwaysExecute() { - return MULTI_PASS_EXEC_STRATEGY.equals(executionStrategy); + public boolean alwaysExecute() + { + return MULTI_PASS_EXEC_STRATEGY.equals( executionStrategy ); } - - public String getExecutionStrategy() { + + public String getExecutionStrategy() + { return executionStrategy; } - public void setExecutionStrategy(String executionStrategy) { + public void setExecutionStrategy( String executionStrategy ) + { this.executionStrategy = executionStrategy; } - + public MojoDescriptor copy() { try { - return (MojoDescriptor) this.clone(); + return (MojoDescriptor) this.clone(); } catch ( Exception e ) { } - + return null; } }