hudson.plugins.antexec
Class AntExec

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

public class AntExec
extends hudson.tasks.Builder

Invokes the Apache Ant script entered on the hudson build configuration.

Author:
Milos Svasek

Nested Class Summary
static class AntExec.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
protected static String buildXml
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
AntExec(String scriptSource, String extendedScriptSource, String scriptName, String properties, String antName, String antOpts, Boolean verbose, Boolean emacs)
           
 
Method Summary
 String getAntOpts()
          Returns content of text field with java/ant options from job configuration screen.
 AntExec.DescriptorImpl getDescriptor()
           
 Boolean getEmacs()
          Returns checkbox boolean from job configuration screen
 String getExtendedScriptSource()
          Returns content of text area with script source from job configuration screen
 String getProperties()
          Returns content of text field with properties from job configuration screen
 String getScriptName()
          Returns content of text area with script name from job configuration screen
 String getScriptSource()
          Returns content of text area with script source from job configuration screen
 Boolean getVerbose()
          Returns checkbox boolean from job configuration screen
 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

buildXml

protected static final String buildXml
See Also:
Constant Field Values
Constructor Detail

AntExec

@DataBoundConstructor
public AntExec(String scriptSource,
                                    String extendedScriptSource,
                                    String scriptName,
                                    String properties,
                                    String antName,
                                    String antOpts,
                                    Boolean verbose,
                                    Boolean emacs)
Method Detail

getScriptSource

public String getScriptSource()
Returns content of text area with script source from job configuration screen

Returns:
String scriptSource

getExtendedScriptSource

public String getExtendedScriptSource()
Returns content of text area with script source from job configuration screen

Returns:
String extendedScriptSource

getScriptName

public String getScriptName()
Returns content of text area with script name from job configuration screen

Returns:
String scriptName

getProperties

public String getProperties()
Returns content of text field with properties from job configuration screen

Returns:
String properties

getAntOpts

public String getAntOpts()
Returns content of text field with java/ant options from job configuration screen. It will be used for ANT_OPTS environment variable

Returns:
String antOpts

getVerbose

public Boolean getVerbose()
Returns checkbox boolean from job configuration screen

Returns:
Boolean verbose

getEmacs

public Boolean getEmacs()
Returns checkbox boolean from job configuration screen

Returns:
Boolean verbose

perform

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

getDescriptor

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


Copyright © 2004-2012. All Rights Reserved.