All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jvnet.maven.plugin.antrun.GraphDefTask Maven / Gradle / Ivy

package org.jvnet.maven.plugin.antrun;

import org.apache.tools.ant.BuildException;

/**
 * Computes a dependency graph by applying a filter, then store it to the current project
 * so that it can be used later with <graphRef> filter.
 *
 * 

* The name is chosen to match with other xxxDef tasks in Ant, like taskDef, typeDef, etc. * * @author Kohsuke Kawaguchi */ public class GraphDefTask extends DependencyGraphTask { private String id; public void setId(String id) { this.id = id; } public void execute() throws BuildException { if(id==null) throw new BuildException("@id is required"); getProject().addReference(id,buildGraph()); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy