hudson.plugins.msbuild
Class MsBuildBuilder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by hudson.plugins.msbuild.MsBuildBuilder
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class MsBuildBuilder
extends hudson.tasks.Builder

Sample Builder.

When the user configures the project and enables this builder, Descriptor.newInstance(StaplerRequest) is invoked and a new MsBuildBuilder is created. The created instance is persisted to the project configuration XML by using XStream, so this allows you to use instance fields (like #name) to remember the configuration.

When a build is performed, the BuildStepCompatibilityLayer.perform(Build, Launcher, BuildListener) method will be invoked.

Author:
kyle.sweeney@valtech.com 2009/03/01 -- Gregory Boissinot - Zenika - Add the possibility to manage multiple Msbuild version 2009/05/20 - Fix #3610

Nested Class Summary
static class MsBuildBuilder.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static MsBuildBuilder.DescriptorImpl DESCRIPTOR
          Descriptor should be singleton.
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
MsBuildBuilder(String msBuildName, String msBuildFile, String cmdLineArgs)
          When this builder is created in the project configuration step, the builder object will be created from the strings below.
 
Method Summary
 String getCmdLineArgs()
           
 hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
           
 MsBuildInstallation getMsBuild()
           
 String getMsBuildFile()
           
 String getMsBuildName()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, 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, getProjectActions, prebuild
 

Field Detail

DESCRIPTOR

@Extension
public static final MsBuildBuilder.DescriptorImpl DESCRIPTOR
Descriptor should be singleton.

Constructor Detail

MsBuildBuilder

@DataBoundConstructor
public MsBuildBuilder(String msBuildName,
                                           String msBuildFile,
                                           String cmdLineArgs)
When this builder is created in the project configuration step, the builder object will be created from the strings below.

Parameters:
msName - The Visual studio logical identifiant name
msBuildFile - The name/location of the msbuild file
targets - Whitespace separated list of command line arguments
Method Detail

getCmdLineArgs

public String getCmdLineArgs()

getMsBuildFile

public String getMsBuildFile()

getMsBuildName

public String getMsBuildName()

getMsBuild

public MsBuildInstallation getMsBuild()

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
InterruptedException

getDescriptor

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


Copyright © 2004-2011. All Rights Reserved.