1 package org.apache.maven.plugin; 2 3 18 19 import org.apache.maven.plugin.logging.Log; 20 import org.apache.maven.plugin.logging.SystemStreamLog; 21 22 import java.util.Map ; 23 24 27 public abstract class AbstractMojo 28 implements Mojo, ContextEnabled 29 { 30 private Log log; 31 private Map pluginContext; 32 33 public void setLog( Log log ) 34 { 35 this.log = log; 36 } 37 38 public Log getLog() 39 { 40 if ( log == null ) 41 { 42 log = new SystemStreamLog(); 43 } 44 45 return log; 46 } 47 48 public Map getPluginContext() 49 { 50 return pluginContext; 51 } 52 53 public void setPluginContext( Map pluginContext ) 54 { 55 this.pluginContext = pluginContext; 56 } 57 58 } 59 | Popular Tags |