org.apache.maven.plugin.coreit
Class LoadResourceMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.coreit.LoadResourceMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class LoadResourceMojo
extends AbstractMojo

Loads resources from a class loader used to load a wagon provider. The wagon is merely used to access the extension class loader it came from which is otherwise not accessible to a plugin.

Version:
$Id: LoadResourceMojo.java 798744 2009-07-29 01:40:29Z brett $
Author:
Benjamin Bentmann
Is defined by the goal name:
load-resource
Is bound to the specified phase of the standard build lifecycle:
validate

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
LoadResourceMojo()
           
 
Method Summary
 void execute()
          Runs this mojo.
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadResourceMojo

public LoadResourceMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException
Runs this mojo.

Throws:
MojoFailureException - If the attached file has not been set.
MojoExecutionException


Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved.