hudson.ivy
Class IvyBuildTrigger

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.ivy.IvyBuildTrigger
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.DependecyDeclarer, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class IvyBuildTrigger
extends hudson.tasks.Publisher
implements hudson.model.DependecyDeclarer

Trigger the build of other project based on the Ivy dependency managment system.


Nested Class Summary
static class IvyBuildTrigger.DescriptorImpl
          The descriptor implementation of this trigger
static class IvyBuildTrigger.IvyConfiguration
          Container the configuration of Ivy
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
static IvyBuildTrigger.DescriptorImpl DESCRIPTOR
          The descriptor of this trigger
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
IvyBuildTrigger(java.lang.String ivyFile, java.lang.String ivyConfName)
          Constructor
 
Method Summary
 void buildDependencyGraph(hudson.model.AbstractProject owner, hudson.model.DependencyGraph graph)
           
 hudson.model.Descriptor<hudson.tasks.Publisher> getDescriptor()
           
 org.apache.ivy.Ivy getIvy()
           
 IvyBuildTrigger.IvyConfiguration getIvyConfiguration()
           
 java.lang.String getIvyConfName()
           
 java.lang.String getIvyFile()
           
 org.apache.ivy.core.module.descriptor.ModuleDescriptor getModuleDescriptor(hudson.model.AbstractProject p)
          Get the last computed Ivy module descriptor created from the ivy.xml of this trigger
 boolean perform(hudson.model.Build<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Publisher
getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, perform, prebuild
 

Field Detail

DESCRIPTOR

public static final IvyBuildTrigger.DescriptorImpl DESCRIPTOR
The descriptor of this trigger

Constructor Detail

IvyBuildTrigger

public IvyBuildTrigger(java.lang.String ivyFile,
                       java.lang.String ivyConfName)
Constructor

Parameters:
ivyFile - the ivy.xml file path within the workspace
ivyConfName - the Ivy configuration name to use
Method Detail

getIvyFile

public java.lang.String getIvyFile()
Returns:
the ivy.xml file path within the workspace

getIvyConfName

public java.lang.String getIvyConfName()
Returns:
the Ivy configuration name used

getIvyConfiguration

public IvyBuildTrigger.IvyConfiguration getIvyConfiguration()
Returns:
the IvyBuildTrigger.IvyConfiguration from the ivyConfName

getIvy

public org.apache.ivy.Ivy getIvy()
Returns:
the Ivy instance based on the ivyConfName
Throws:
java.text.ParseException
java.io.IOException

getModuleDescriptor

public org.apache.ivy.core.module.descriptor.ModuleDescriptor getModuleDescriptor(hudson.model.AbstractProject p)
Get the last computed Ivy module descriptor created from the ivy.xml of this trigger

Parameters:
p - the project this Trigger belongs to
Returns:
the Ivy module descriptor

perform

public boolean perform(hudson.model.Build<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws java.lang.InterruptedException,
                       java.io.IOException
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
java.lang.InterruptedException
java.io.IOException

buildDependencyGraph

public void buildDependencyGraph(hudson.model.AbstractProject owner,
                                 hudson.model.DependencyGraph graph)
Specified by:
buildDependencyGraph in interface hudson.model.DependecyDeclarer

getDescriptor

public hudson.model.Descriptor<hudson.tasks.Publisher> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>


Copyright © 2009. All Rights Reserved.