From 6ea3096434b0ff6f3f2f29d0c5a53b1be0d3febf Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Wed, 1 Jun 2005 23:53:06 +0000 Subject: [PATCH] added back processing of isolatedRealm git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@179464 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/plugin/descriptor/PluginDescriptorBuilder.java | 7 +++++++ .../tools/plugin/generator/PluginDescriptorGenerator.java | 2 ++ 2 files changed, 9 insertions(+) diff --git a/maven-plugin-descriptor/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java b/maven-plugin-descriptor/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java index cf8f216fff..a36a0049f4 100755 --- a/maven-plugin-descriptor/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java +++ b/maven-plugin-descriptor/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java @@ -37,6 +37,13 @@ public class PluginDescriptorBuilder pluginDescriptor.setArtifactId( c.getChild( "artifactId" ).getValue() ); pluginDescriptor.setVersion( c.getChild( "version" ).getValue() ); pluginDescriptor.setGoalPrefix( c.getChild( "goalPrefix" ).getValue() ); + + String isolatedRealm = c.getChild( "isolatedRealm" ).getValue(); + + if( isolatedRealm != null ) + { + pluginDescriptor.setIsolatedRealm( Boolean.valueOf( isolatedRealm ).booleanValue() ); + } String inheritedByDefault = c.getChild( "inheritedByDefault" ).getValue(); diff --git a/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginDescriptorGenerator.java b/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginDescriptorGenerator.java index fd201edfb8..1f0166a055 100644 --- a/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginDescriptorGenerator.java +++ b/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginDescriptorGenerator.java @@ -69,6 +69,8 @@ public class PluginDescriptorGenerator element( w, "version", pluginDescriptor.getVersion() ); element( w, "goalPrefix", pluginDescriptor.getGoalPrefix() ); + + element( w, "isolatedRealm", "" + pluginDescriptor.isIsolatedRealm() ); element( w, "inheritedByDefault", "" + pluginDescriptor.isInheritedByDefault() );