public class NarLayout20 extends AbstractNarLayout
nar/includue nar/bin nar/libthis layout was abandoned because there is no one-to-one relation between the nar file and its directory structure. Therefore SNAPSHOTS could not be fully deleted when replaced.
LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_VERBOSE, LOG_LEVEL_WARNING, NAR, NAR_AOL, NAR_EXTENSION, NAR_NO_ARCH, NAR_ROLE_HINT, NAR_TYPE
Constructor and Description |
---|
NarLayout20(org.apache.maven.plugin.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
void |
attachNars(File baseDir,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
org.apache.maven.project.MavenProjectHelper projectHelper,
org.apache.maven.project.MavenProject project)
Called to attach nars to main nar/jar file.
|
File |
getBinDirectory(File baseDir,
String artifactId,
String version,
String aol)
Specifies where binaries are stored
|
File |
getIncludeDirectory(File baseDir,
String artifactId,
String version)
Specifies where includes are stored
|
File |
getLibDirectory(File baseDir,
String artifactId,
String version,
String aol,
String type)
Specifies where libraries are stored
|
File |
getNarUnpackDirectory(File baseUnpackDirectory,
File narFile)
Returns the unpack directory of a specific nar file.
|
File |
getNoArchDirectory(File baseDir,
String artifactId,
String version)
Specifies where all the "no architecture" specific files are stored
|
void |
prepareNarInfo(File baseDir,
org.apache.maven.project.MavenProject project,
NarInfo narInfo,
AbstractNarMojo mojo)
Called to attach nars to main nar/jar file.
|
void |
unpackNar(File unpackDir,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
File file,
String os,
String linkerName,
AOL defaultAOL)
Called to unpack a nar file
|
attachNar, getLayout, getLog, unpackNarAndProcess
public final void attachNars(File baseDir, org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager, org.apache.maven.project.MavenProjectHelper projectHelper, org.apache.maven.project.MavenProject project) throws org.apache.maven.plugin.MojoExecutionException
NarLayout
org.apache.maven.plugin.MojoExecutionException
public final File getBinDirectory(File baseDir, String artifactId, String version, String aol)
NarLayout
public final File getIncludeDirectory(File baseDir, String artifactId, String version)
NarLayout
public final File getLibDirectory(File baseDir, String artifactId, String version, String aol, String type) throws org.apache.maven.plugin.MojoFailureException
NarLayout
org.apache.maven.plugin.MojoFailureException
public File getNarUnpackDirectory(File baseUnpackDirectory, File narFile)
NarLayout
public File getNoArchDirectory(File baseDir, String artifactId, String version) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
NarLayout
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public final void prepareNarInfo(File baseDir, org.apache.maven.project.MavenProject project, NarInfo narInfo, AbstractNarMojo mojo) throws org.apache.maven.plugin.MojoExecutionException
NarLayout
org.apache.maven.plugin.MojoExecutionException
public void unpackNar(File unpackDir, org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager, File file, String os, String linkerName, AOL defaultAOL) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
NarLayout
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2005-2016 NAR Maven Plugin developers. All Rights Reserved.