summaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorVolker Schumacher <volker@antenna500.local>2009-12-18 06:32:46 +0800
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2010-01-07 23:52:46 +0800
commita16d818f5317d58ed0908450d7c24394360607b6 (patch)
tree8cb77fcaba9b7b4650bd690ce913a21f04c118d6 /src/main/java/org
parente2aff1b62fc090d3336adc9b6185dd5d70381eef (diff)
downloadmaven-nar-plugin-a16d818f5317d58ed0908450d7c24394360607b6.tar.gz
maven-nar-plugin-a16d818f5317d58ed0908450d7c24394360607b6.tar.bz2
maven-nar-plugin-a16d818f5317d58ed0908450d7c24394360607b6.tar.xz
maven-nar-plugin-a16d818f5317d58ed0908450d7c24394360607b6.zip
when lib-dir has subdirs called static or shared, look there for the respective libs.
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/apache/maven/plugin/nar/AbstractResourcesMojo.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/AbstractResourcesMojo.java b/src/main/java/org/apache/maven/plugin/nar/AbstractResourcesMojo.java
index 15f4119..b925d30 100644
--- a/src/main/java/org/apache/maven/plugin/nar/AbstractResourcesMojo.java
+++ b/src/main/java/org/apache/maven/plugin/nar/AbstractResourcesMojo.java
@@ -124,6 +124,10 @@ public abstract class AbstractResourcesMojo
{
Library library = (Library) i.next();
String type = library.getType();
+
+ File typedLibDir = new File( libDir, type );
+ if ( typedLibDir.exists() ) libDir = typedLibDir;
+
File libDstDir =
getLayout().getLibDirectory( getTargetDirectory(), getMavenProject().getArtifactId(),
getMavenProject().getVersion(), aol, type );