Class WorkflowDelegate.ProcessDelegate

java.lang.Object
org.savantbuild.parser.groovy.WorkflowDelegate.ProcessDelegate
Enclosing class:
WorkflowDelegate

public static class WorkflowDelegate.ProcessDelegate extends Object
Process delegate class that is used to configure Process instances for the FetchWorkflow and PublishWorkflow of the Workflow.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final org.savantbuild.output.Output
     
    final List<org.savantbuild.dep.workflow.process.Process>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProcessDelegate(org.savantbuild.output.Output output, List<org.savantbuild.dep.workflow.process.Process> processes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cache(Map<String,Object> attributes)
    Adds a CacheProcess to the workflow that uses the given attributes.
    void
    maven(Map<String,Object> attributes)
    Adds a MavenProcess to the workflow that uses the given attributes.
    void
    mavenCache(Map<String,Object> attributes)
    Adds a CacheProcess to the workflow that handles Maven-sourced artifacts (mavenDir set, savantDir null).
    void
    subversion(Map<String,Object> attributes)
    Adds a SVNProcess to the workflow that uses the given attributes.
    void
    url(Map<String,Object> attributes)
    Adds a URLProcess to the workflow that uses the given attributes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • output

      public final org.savantbuild.output.Output output
    • processes

      public final List<org.savantbuild.dep.workflow.process.Process> processes
  • Constructor Details

    • ProcessDelegate

      public ProcessDelegate(org.savantbuild.output.Output output, List<org.savantbuild.dep.workflow.process.Process> processes)
  • Method Details

    • cache

      public void cache(Map<String,Object> attributes)
      Adds a CacheProcess to the workflow that uses the given attributes. Creates a Savant-only cache (savantDir set, mavenDir null).
      Parameters:
      attributes - The attributes.
    • maven

      public void maven(Map<String,Object> attributes)
      Adds a MavenProcess to the workflow that uses the given attributes.
      Parameters:
      attributes - Optionally a map that contains a URL attribute.
    • mavenCache

      public void mavenCache(Map<String,Object> attributes)
      Adds a CacheProcess to the workflow that handles Maven-sourced artifacts (mavenDir set, savantDir null).
      Parameters:
      attributes - Optionally a map that contains a dir attribute.
    • subversion

      public void subversion(Map<String,Object> attributes)
      Adds a SVNProcess to the workflow that uses the given attributes.
      Parameters:
      attributes - The SVN attributes.
    • url

      public void url(Map<String,Object> attributes)
      Adds a URLProcess to the workflow that uses the given attributes.
      Parameters:
      attributes - The URL attributes.