1 package org.apache.maven.plugin; 2 3 18 19 import org.apache.maven.plugin.descriptor.MojoDescriptor; 20 import org.codehaus.plexus.util.xml.Xpp3Dom; 21 22 import java.util.ArrayList ; 23 import java.util.List ; 24 25 31 public class MojoExecution 32 { 33 private final String executionId; 34 35 private final MojoDescriptor mojoDescriptor; 36 37 private Xpp3Dom configuration; 38 39 private List forkedExecutions = new ArrayList (); 40 41 private List reports; 42 43 public MojoExecution( MojoDescriptor mojoDescriptor ) 44 { 45 this.mojoDescriptor = mojoDescriptor; 46 this.executionId = null; 47 this.configuration = null; 48 } 49 50 public MojoExecution( MojoDescriptor mojoDescriptor, String executionId ) 51 { 52 this.mojoDescriptor = mojoDescriptor; 53 this.executionId = executionId; 54 this.configuration = null; 55 } 56 57 public MojoExecution( MojoDescriptor mojoDescriptor, Xpp3Dom configuration ) 58 { 59 this.mojoDescriptor = mojoDescriptor; 60 this.configuration = configuration; 61 this.executionId = null; 62 } 63 64 public String getExecutionId() 65 { 66 return executionId; 67 } 68 69 public MojoDescriptor getMojoDescriptor() 70 { 71 return mojoDescriptor; 72 } 73 74 public Xpp3Dom getConfiguration() 75 { 76 return configuration; 77 } 78 79 public void addMojoExecution( MojoExecution execution ) 80 { 81 forkedExecutions.add( execution ); 82 } 83 84 public void setReports( List reports ) 85 { 86 this.reports = reports; 87 } 88 89 public List getReports() 90 { 91 return reports; 92 } 93 94 public List getForkedExecutions() 95 { 96 return forkedExecutions; 97 } 98 99 public void setConfiguration( Xpp3Dom configuration ) 100 { 101 this.configuration = configuration; 102 } 103 } 104 | Popular Tags |