o Added setMojos(List) and setDependencies(List), each of which make defensive copies of the lists, to support non-xstream component-set-descriptor generation (esp. for script-based mojos).

o This will support the marmalade-plugin loader.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162942 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2004-08-10 02:39:59 +00:00
parent 3b4c0fb912
commit 2e4cad175b
1 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,7 @@ package org.apache.maven.plugin.descriptor;
* limitations under the License.
*/
import java.util.LinkedList;
import java.util.List;
/**
@ -40,6 +41,10 @@ public class PluginDescriptor
{
return mojos;
}
public void setMojos(List mojos) {
this.mojos = new LinkedList(mojos);
}
public String getId()
{
@ -59,6 +64,10 @@ public class PluginDescriptor
{
return dependencies;
}
public void setDependencies(List dependencies) {
this.dependencies = new LinkedList(dependencies);
}
public boolean isIsolatedRealm()
{