}
}
}
private void readConfiguration() throws IOException {
Xpp3Dom configuration = (Xpp3Dom) plugin.getConfiguration();
defaultBundleList = null;
jarWebSupport = null;
includeDefaultBundles = true;
bundleListFile = new File(project.getBasedir(), "src/main/bundles/list.xml");
if (configuration != null) {
includeDefaultBundles = nodeValue(configuration, "includeDefaultBundles", true);
Xpp3Dom defaultBundleListConfig = configuration.getChild("defaultBundleList");
if (defaultBundleListConfig != null) {
defaultBundleList = new ArtifactDefinition(defaultBundleListConfig);
}
Xpp3Dom jarWebSupportConfig = configuration.getChild("jarWebSupport");
if (jarWebSupportConfig != null) {
jarWebSupport = new ArtifactDefinition(jarWebSupportConfig);
}
Xpp3Dom bundleListFileConfig = configuration.getChild("bundleListFile");
if (bundleListFileConfig != null) {
bundleListFile = new File(project.getBasedir(), bundleListFileConfig.getValue());
}
configureAdditionalBundles(configuration);
}
for (PluginExecution execution : plugin.getExecutions()) {
Xpp3Dom executionConfiguration = (Xpp3Dom) execution.getConfiguration();
if (executionConfiguration != null) {
configureAdditionalBundles(executionConfiguration);
}
}