List of usage examples for org.apache.maven.plugin Mojo getLog
Log getLog();
From source file:ch.sourcepond.maven.release.providers.DefaultMavenComponentSingletons.java
License:Apache License
@Override public void initialize(final Mojo pMojo, final MavenProject pProject, final List<MavenProject> pReactorProjects) throws PluginException { setLog(pMojo.getLog()); setRootProject(pProject);// ww w . j a v a2 s . c o m setReactorProjects(pReactorProjects); setConfiguration(new ConfigurationAccessor(pMojo)); for (final Initializable initializable : initializables) { initializable.initialize(); } }
From source file:org.kuali.maven.plugins.externals.MojoHelper.java
License:Educational Community License
protected MojoHelper(Mojo mojo) { super();/*from w ww.j ava 2 s .co m*/ nf.setMaximumFractionDigits(3); nf.setMinimumFractionDigits(3); nf.setGroupingUsed(false); logger = mojo.getLog(); }
From source file:org.mybatis.generator.maven.MavenLogFactory.java
License:Apache License
MavenLogFactory(Mojo mojo) { logImplementation = new MavenLogImpl(mojo.getLog()); }
From source file:org.sonatype.install4j.maven.AntHelper.java
License:Open Source License
public AntHelper(final Mojo owner, final MavenProject project) { assert owner != null; assert project != null; this.owner = owner; this.log = owner.getLog(); this.project = project; ant = new Project(); ant.setBaseDir(project.getBasedir()); initAntLogger(ant);//w w w . ja va 2s . c o m ant.init(); // Inherit properties from Maven inheritProperties(); }
From source file:org.wisdom.maven.pipeline.Pipeline.java
License:Apache License
/** * Creates a new pipeline. Notice that the set of watchers cannot change. * @param mojo the 'run' mojo//w w w. j a v a 2 s .c o m * @param baseDir the base directory of the watched project * @param list the set of watchers plugged on the pipeline, the order of the list will be the notification order. * @param pomFileMonitoring flag enabling or disabling the pom file monitoring */ public Pipeline(Mojo mojo, File baseDir, List<? extends Watcher> list, boolean pomFileMonitoring) { this.mojo = mojo; this.baseDir = baseDir; this.pomFileMonitoring = pomFileMonitoring; mojo.getLog().debug("Initializing watch mode with " + list); watchers = new ArrayList<>(); for (Object o : list) { watchers.add(new WatcherDelegate(o)); } }
From source file:org.wisdom.maven.utils.DefensiveThreadFactory.java
License:Apache License
/** * Creates the defensive thread factory. * * @param name the prefix that will be used for all threads created from this factory. * @param mojo the mojo used to retrieve the log object. *//*from w w w .j a va 2 s . c o m*/ public DefensiveThreadFactory(String name, Mojo mojo) { factory = Executors.defaultThreadFactory(); prefix = name; log = mojo.getLog(); }