hudson.tasks
Class BatchFile

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by hudson.tasks.CommandInterpreter
              extended by hudson.tasks.BatchFile
All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep

public class BatchFile
extends CommandInterpreter

Executes commands by using Windows batch file.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class BatchFile.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.tasks.CommandInterpreter
command
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
BatchFile(String command)
           
 
Method Summary
 String[] buildCommandLine(FilePath script)
           
protected  String getContents()
           
protected  String getFileExtension()
           
 
Methods inherited from class hudson.tasks.CommandInterpreter
createScriptFile, getCommand, perform, perform
 
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, 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
 

Constructor Detail

BatchFile

@DataBoundConstructor
public BatchFile(String command)
Method Detail

buildCommandLine

public String[] buildCommandLine(FilePath script)
Specified by:
buildCommandLine in class CommandInterpreter

getContents

protected String getContents()
Specified by:
getContents in class CommandInterpreter

getFileExtension

protected String getFileExtension()
Specified by:
getFileExtension in class CommandInterpreter


Copyright © 2004-2013. All Rights Reserved.