From fe4c4e7599c730ba8594d8da731894e37384fad4 Mon Sep 17 00:00:00 2001 From: sthelen Date: Sun, 16 May 2010 05:09:54 +0800 Subject: Fixed ClassCastException in NarAssemblyMojo when specifying classifiers. The untyped List that was used before this commit lead to a ClassCastException when it was cast to a String array in the NarManager. The mojo parameter is changed to directly be a String array which solves the problem. --- src/main/java/org/apache/maven/plugin/nar/NarAssemblyMojo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/org/apache/maven/plugin/nar/NarAssemblyMojo.java') 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 05414e8..c912743 100644 --- a/src/main/java/org/apache/maven/plugin/nar/NarAssemblyMojo.java +++ b/src/main/java/org/apache/maven/plugin/nar/NarAssemblyMojo.java @@ -21,6 +21,7 @@ package org.apache.maven.plugin.nar; import java.io.File; import java.io.IOException; +import java.util.Arrays; import java.util.Iterator; import java.util.List; @@ -48,7 +49,7 @@ public class NarAssemblyMojo * * @parameter */ - private List classifiers = null; + private String[] classifiers = null; /** * Copies the unpacked nar libraries and files into the projects target area -- cgit v1.2.3