Package org.codehaus.mojo.natives.plugin
Class NativeUnZipIncMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.natives.plugin.AbstractNativeMojo
org.codehaus.mojo.natives.plugin.NativeUnZipIncMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="unzipinc",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=COMPILE)
public class NativeUnZipIncMojo
extends AbstractNativeMojo
Unpack any .inczip dependencies to be included as system include path
- Since:
- 1.0-alpha-4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.codehaus.plexus.archiver.manager.ArchiverManager
Internal component for archiving purposesprivate File
InternalFields inherited from class org.codehaus.mojo.natives.plugin.AbstractNativeMojo
dependencyIncludeDirectory, EMPTY_FILE_LIST, envFactoryManager, INCZIP_FOUND, INCZIP_TYPE, LINKER_INPUT_LIST_NAME, LINKER_OUTPUT_PATH, project, workingDirectory
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
private List
<org.apache.maven.artifact.Artifact> Get all .inczip compile time dependenciesprivate boolean
protected void
unpackZipFile
(File zipFile) Methods inherited from class org.codehaus.mojo.natives.plugin.AbstractNativeMojo
getAllCompilersOutputFileList, getEnvFactory, getProject, removeEmptyOptions, saveCompilerOutputFilePaths
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
dependencyIncZipMarkerDirectory
@Parameter(defaultValue="${project.build.directory}/native/markers", required=true) private File dependencyIncZipMarkerDirectoryInternal- Since:
- 1.0-alpha-4
-
archiverManager
@Component private org.codehaus.plexus.archiver.manager.ArchiverManager archiverManagerInternal component for archiving purposes- Since:
- 1.0-alpha-4
-
-
Constructor Details
-
NativeUnZipIncMojo
public NativeUnZipIncMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
unpackIncZipDepenedencies
private boolean unpackIncZipDepenedencies() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
unpackZipFile
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getIncZipDependencies
Get all .inczip compile time dependencies- Returns:
-