mirror of https://github.com/apache/maven.git
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:
parent
3b4c0fb912
commit
2e4cad175b
|
@ -16,6 +16,7 @@ package org.apache.maven.plugin.descriptor;
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
@ -41,6 +42,10 @@ public class PluginDescriptor
|
|||
return mojos;
|
||||
}
|
||||
|
||||
public void setMojos(List mojos) {
|
||||
this.mojos = new LinkedList(mojos);
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
|
@ -60,6 +65,10 @@ public class PluginDescriptor
|
|||
return dependencies;
|
||||
}
|
||||
|
||||
public void setDependencies(List dependencies) {
|
||||
this.dependencies = new LinkedList(dependencies);
|
||||
}
|
||||
|
||||
public boolean isIsolatedRealm()
|
||||
{
|
||||
return isolatedRealm;
|
||||
|
|
Loading…
Reference in New Issue