summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Donszelmann <Mark.Donszelmann@gmail.com>2009-11-04 15:21:43 +0100
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2009-11-04 15:21:43 +0100
commit3ea795d8d745bf050e6d98b7aa0d42dc5f33fcef (patch)
tree713cea1b21e28ed5f8d8c65af7c2722af0c59101 /src
parent3150a268352850e65895a847ec502a9d1bbc2a41 (diff)
downloadmaven-nar-plugin-3ea795d8d745bf050e6d98b7aa0d42dc5f33fcef.tar.gz
maven-nar-plugin-3ea795d8d745bf050e6d98b7aa0d42dc5f33fcef.tar.bz2
maven-nar-plugin-3ea795d8d745bf050e6d98b7aa0d42dc5f33fcef.tar.xz
maven-nar-plugin-3ea795d8d745bf050e6d98b7aa0d42dc5f33fcef.zip
Packaging now better, but not yet good for NAR-90
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/apache/maven/plugin/nar/NarPackageMojo.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/NarPackageMojo.java b/src/main/java/org/apache/maven/plugin/nar/NarPackageMojo.java
index fcecec9..6645de1 100644
--- a/src/main/java/org/apache/maven/plugin/nar/NarPackageMojo.java
+++ b/src/main/java/org/apache/maven/plugin/nar/NarPackageMojo.java
@@ -72,13 +72,14 @@ public class NarPackageMojo
}
// create nar with binaries
- // FIXME NAR-90
+ /* OLD CODE
String bin = "bin";
String[] binAOLs = new File( getTargetDirectory(), bin ).list();
for ( int i = 0; i < ( binAOLs != null ? binAOLs.length : 0 ); i++ )
{
attachNarOld( bin + "/" + binAOLs[i], binAOLs[i], Library.EXECUTABLE );
}
+ */
// create nars for each type of library (static, shared).
String bindingType = null;
@@ -134,13 +135,12 @@ public class NarPackageMojo
* @param type
* @throws MojoExecutionException
*/
- private void attachNar( File dir, String string )
+ private void attachNar( File dir, String classifier )
throws MojoExecutionException
{
- String aolType = dir.getName();
- File narFile = new File( getOutputDirectory(), getFinalName() + "-" + dir.getName() + "." + NAR_EXTENSION );
+ File narFile = new File( getOutputDirectory(), getFinalName() + "-" + classifier + "." + NAR_EXTENSION );
nar( narFile, dir );
- projectHelper.attachArtifact( getMavenProject(), NAR_TYPE, aolType, narFile );
+ projectHelper.attachArtifact( getMavenProject(), NAR_TYPE, classifier, narFile );
}
private void attachNarOld( String dir, String aol, String type )