Class MsBuildTask


  • public class MsBuildTask
    extends com.atlassian.bamboo.specs.api.builders.task.Task<MsBuildTask,​MsBuildTaskProperties>
    Represents task that runs MSBuild command.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_PROJECT  
      • Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task

        conditions, description, requirements, taskEnabled
    • Constructor Summary

      Constructors 
      Constructor Description
      MsBuildTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected @NotNull MsBuildTaskProperties build()  
      MsBuildTask environmentVariables​(@Nullable java.lang.String environmentVariables)
      Specifies environment variables to be set when command is executed.
      boolean equals​(java.lang.Object o)  
      MsBuildTask executable​(@NotNull java.lang.String executable)
      Specifies MSBuild executable to be used.
      int hashCode()  
      MsBuildTask options​(@Nullable java.lang.String options)
      Specifies command line argument to be passed when command is executed.
      MsBuildTask projectFile​(@NotNull java.lang.String projectFile)
      Specifies the solution, project file or MSBuild project to execute when this Job Builds.
      MsBuildTask workingSubdirectory​(@Nullable java.lang.String workingSubdirectory)
      Specifies a working directory for the task.
      • Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task

        conditions, description, enabled, requirements, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • MsBuildTask

        public MsBuildTask()
    • Method Detail

      • executable

        public MsBuildTask executable​(@NotNull
                                      @NotNull java.lang.String executable)
        Specifies MSBuild executable to be used.

        Sets label (not a path) of command to be executed. This label must be first defined in the GUI on the Administration/Executables page. This field is mandatory

      • projectFile

        public MsBuildTask projectFile​(@NotNull
                                       @NotNull java.lang.String projectFile)
        Specifies the solution, project file or MSBuild project to execute when this Job Builds.
      • options

        public MsBuildTask options​(@Nullable
                                   @Nullable java.lang.String options)
        Specifies command line argument to be passed when command is executed.
      • environmentVariables

        public MsBuildTask environmentVariables​(@Nullable
                                                @Nullable java.lang.String environmentVariables)
        Specifies environment variables to be set when command is executed.
      • workingSubdirectory

        public MsBuildTask workingSubdirectory​(@Nullable
                                               @Nullable java.lang.String workingSubdirectory)
        Specifies a working directory for the task.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class com.atlassian.bamboo.specs.api.builders.task.Task<MsBuildTask,​MsBuildTaskProperties>