org.apache.felix.ipojo.plugin
Class ManipulatorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.felix.ipojo.plugin.ManipulatorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class ManipulatorMojo
extends org.apache.maven.plugin.AbstractMojo

Packages an OSGi jar "bundle" as an "iPOJO bundle".

Version:
$Rev$, $Date$
Author:
Felix Project Team

Field Summary
private  java.lang.String m_buildDirectory
          The directory for the generated JAR.
private  java.lang.String m_classifier
          If set, the manipulated jar will be attached to the project as a separate artifact.
private  org.apache.maven.project.MavenProjectHelper m_helper
          Used for attaching new artifacts.
private  boolean m_ignoreAnnotations
          Ignore annotations parameter.
private  boolean m_ignoreEmbeddedXSD
          Ignore embedded XSD parameter.
private  java.lang.String m_jarName
          The name of the generated JAR file.
private  java.lang.String m_metadata
          Location of the metadata file or iPOJO metadata configuration.
private  java.io.File m_outputDirectory
          The directory containing generated classes.
private  org.apache.maven.project.MavenProject m_project
          The Maven project.
private  java.util.List m_supportedProjectTypes
          Project types which this plugin supports.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ManipulatorMojo()
           
 
Method Summary
 void execute()
          Execute method : this method launches the pojoization.
protected  org.apache.maven.project.MavenProject getProject()
           
private  void initializeSaxDriver()
          If Maven runs with Java 1.4, we should use the Maven Xerces.
private  boolean isXML()
           
 
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
 

Field Detail

m_buildDirectory

private java.lang.String m_buildDirectory
The directory for the generated JAR.


m_outputDirectory

private java.io.File m_outputDirectory
The directory containing generated classes.


m_jarName

private java.lang.String m_jarName
The name of the generated JAR file.


m_metadata

private java.lang.String m_metadata
Location of the metadata file or iPOJO metadata configuration.


m_classifier

private java.lang.String m_classifier
If set, the manipulated jar will be attached to the project as a separate artifact.


m_project

private org.apache.maven.project.MavenProject m_project
The Maven project.


m_helper

private org.apache.maven.project.MavenProjectHelper m_helper
Used for attaching new artifacts.


m_supportedProjectTypes

private java.util.List m_supportedProjectTypes
Project types which this plugin supports.


m_ignoreAnnotations

private boolean m_ignoreAnnotations
Ignore annotations parameter.


m_ignoreEmbeddedXSD

private boolean m_ignoreEmbeddedXSD
Ignore embedded XSD parameter.

Constructor Detail

ManipulatorMojo

public ManipulatorMojo()
Method Detail

getProject

protected org.apache.maven.project.MavenProject getProject()

isXML

private boolean isXML()

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Execute method : this method launches the pojoization.

Throws:
org.apache.maven.plugin.MojoExecutionException - : an exception occurs during the manipulation.
See Also:
Mojo.execute()

initializeSaxDriver

private void initializeSaxDriver()
If Maven runs with Java 1.4, we should use the Maven Xerces. To achieve that, we set the org.xml.sax.driver property. Otherwise, the JVM sets the org.xml.sax.driver property.



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