|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cloudbees.maven.license.CompleterDelegate
public class CompleterDelegate
Base class for completer scripts that define convenience methods.
The completion phase runs on each dependency to complete the missing license information, accept one from dual-licensed libraries, etc.
| Field Summary | |
|---|---|
org.apache.maven.project.MavenProject |
dependency
|
org.apache.maven.project.MavenProject |
project
|
| Constructor Summary | |
|---|---|
CompleterDelegate(org.apache.maven.project.MavenProject dependency,
org.apache.maven.project.MavenProject project)
|
|
| Method Summary | |
|---|---|
void |
accept(String name)
From the multi-licensed modules, accept one of them. |
org.apache.maven.model.License |
license(String name,
String url)
Creates a new license object. |
void |
match(Object criteria,
groovy.lang.Closure body)
If the current dependency matches the given groupId/artifactId, execute the body |
void |
rewriteLicense(Collection<org.apache.maven.model.License> expected,
org.apache.maven.model.License to)
Verifies that the license of the current dependency is the ones listed in the 'expected' argument, rewrite it with the specified one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public org.apache.maven.project.MavenProject dependency
public org.apache.maven.project.MavenProject project
| Constructor Detail |
|---|
public CompleterDelegate(org.apache.maven.project.MavenProject dependency,
org.apache.maven.project.MavenProject project)
| Method Detail |
|---|
public void match(Object criteria,
groovy.lang.Closure body)
criteria - A string like "groupId:artifactId" that matches the current dependency
("*" is allowed for wildcard), or a collection/array of them.
public void rewriteLicense(Collection<org.apache.maven.model.License> expected,
org.apache.maven.model.License to)
public org.apache.maven.model.License license(String name,
String url)
public void accept(String name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||