commit | 8e620e6ee87c5705dd721f8703733990dd12558a | [log] [tgz] |
---|---|---|
author | Freeman Yue Fang <ffang@apache.org> | Thu Apr 22 02:26:32 2010 +0000 |
committer | Freeman Yue Fang <ffang@apache.org> | Thu Apr 22 02:26:32 2010 +0000 |
tree | e88863d0937ff9c32a9d670e39d735087636c658 | |
parent | 7521e852ec948445dbd8fb931e930fa1086d1134 [diff] |
[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()); }