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.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -40,6 +41,10 @@ public class PluginDescriptor
|
||||||
{
|
{
|
||||||
return mojos;
|
return mojos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setMojos(List mojos) {
|
||||||
|
this.mojos = new LinkedList(mojos);
|
||||||
|
}
|
||||||
|
|
||||||
public String getId()
|
public String getId()
|
||||||
{
|
{
|
||||||
|
@ -59,6 +64,10 @@ public class PluginDescriptor
|
||||||
{
|
{
|
||||||
return dependencies;
|
return dependencies;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setDependencies(List dependencies) {
|
||||||
|
this.dependencies = new LinkedList(dependencies);
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isIsolatedRealm()
|
public boolean isIsolatedRealm()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue