[FELIX-2297] features-maven-plugin validate goal should be able to use configurable jre version

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@936596 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java b/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java
index c49c6db..9611607 100644
--- a/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java
+++ b/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java
@@ -84,6 +84,13 @@
      * @parameter default-value="config.properties"
      */
     private String karafConfig;
+    
+    /**
+     * which jre version we wanna parse to get jre exported package in config.properties
+     * 
+     * @parameter default-value="jre-1.5"
+     */
+    private String jreVersion;
 
     /**
      *  The repositories which are included from the plugin config   
@@ -243,7 +250,7 @@
         	properties.load(new FileInputStream(new File(karafConfig)));
         }
 
-        String packages = (String) properties.get("jre-1.5");
+        String packages = (String) properties.get(jreVersion);
         for (String pkg : packages.split(";")) {
             systemExports .add(pkg.trim());
         }