diff options
author | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2010-01-08 09:54:16 +0100 |
---|---|---|
committer | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2010-01-08 09:54:16 +0100 |
commit | 09c5256f5c8270a4fc5f8493616d9f0229e3284c (patch) | |
tree | 0335f69e11235746b540dd5d2a9a82803c3ad00c /src | |
parent | 11d70333d325cd542f4c44f2b62a1e1e242b058d (diff) | |
download | maven-nar-plugin-09c5256f5c8270a4fc5f8493616d9f0229e3284c.tar.gz maven-nar-plugin-09c5256f5c8270a4fc5f8493616d9f0229e3284c.tar.bz2 maven-nar-plugin-09c5256f5c8270a4fc5f8493616d9f0229e3284c.tar.xz maven-nar-plugin-09c5256f5c8270a4fc5f8493616d9f0229e3284c.zip |
Readded classifier as parameter
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/apache/maven/plugin/nar/NarAssemblyMojo.java | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/NarAssemblyMojo.java b/src/main/java/org/apache/maven/plugin/nar/NarAssemblyMojo.java index ed3fffd..05414e8 100644 --- a/src/main/java/org/apache/maven/plugin/nar/NarAssemblyMojo.java +++ b/src/main/java/org/apache/maven/plugin/nar/NarAssemblyMojo.java @@ -44,9 +44,11 @@ public class NarAssemblyMojo /** * List of classifiers which you want to assemble. Example ppc-MacOSX-g++-static, x86-Windows-msvc-shared, - * i386-Linux-g++-executable, .... + * i386-Linux-g++-executable, .... not setting means all. + * + * @parameter */ - private List classifiers; + private List classifiers = null; /** * Copies the unpacked nar libraries and files into the projects target area @@ -55,7 +57,7 @@ public class NarAssemblyMojo throws MojoExecutionException, MojoFailureException { List narArtifacts = getNarManager().getNarDependencies( "compile" ); - + List dependencies = getNarManager().getAttachedNarDependencies( narArtifacts, classifiers ); // this may make some extra copies... @@ -69,12 +71,11 @@ public class NarAssemblyMojo // of getBaseVersion, called in pathOf. dependency.isSnapshot(); - File srcDir = getLayout().getNarUnpackDirectory( - getUnpackDirectory(), - getNarManager().getNarFile( dependency )); -// File srcDir = new File( getLocalRepository().pathOf( dependency ) ); -// srcDir = new File( getLocalRepository().getBasedir(), srcDir.getParent() ); -// srcDir = new File( srcDir, "nar/" ); + File srcDir = + getLayout().getNarUnpackDirectory( getUnpackDirectory(), getNarManager().getNarFile( dependency ) ); + // File srcDir = new File( getLocalRepository().pathOf( dependency ) ); + // srcDir = new File( getLocalRepository().getBasedir(), srcDir.getParent() ); + // srcDir = new File( srcDir, "nar/" ); File dstDir = getTargetDirectory(); try @@ -88,8 +89,8 @@ public class NarAssemblyMojo } catch ( IOException ioe ) { - throw new MojoExecutionException( "Failed to copy directory for dependency " + dependency - + " from " + srcDir + " to " + dstDir, ioe ); + throw new MojoExecutionException( "Failed to copy directory for dependency " + dependency + " from " + + srcDir + " to " + dstDir, ioe ); } } } |