From a16d818f5317d58ed0908450d7c24394360607b6 Mon Sep 17 00:00:00 2001 From: Volker Schumacher Date: Fri, 18 Dec 2009 06:32:46 +0800 Subject: when lib-dir has subdirs called static or shared, look there for the respective libs. --- src/main/java/org/apache/maven/plugin/nar/AbstractResourcesMojo.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main') 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 ); -- cgit v1.2.3