hudson.plugins.groovy
Class StringScriptSource

java.lang.Object
  extended by hudson.plugins.groovy.StringScriptSource
All Implemented Interfaces:
hudson.model.Describable<ScriptSource>, ScriptSource

public class StringScriptSource
extends java.lang.Object
implements ScriptSource

Groovy script specified by command string.

Author:
dvrzalik

Nested Class Summary
static class StringScriptSource.DescriptorImpl
           
 
Field Summary
static StringScriptSource.DescriptorImpl DESCRIPTOR
           
 
Fields inherited from interface hudson.plugins.groovy.ScriptSource
SOURCES
 
Constructor Summary
StringScriptSource(java.lang.String command)
           
 
Method Summary
 java.lang.String getCommand()
           
 hudson.model.Descriptor getDescriptor()
           
 hudson.FilePath getScriptFile(hudson.FilePath projectWorkspace)
          In the end, every script is a file...
 java.io.InputStream getScriptStream(hudson.FilePath projectWorkspace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR

public static final StringScriptSource.DescriptorImpl DESCRIPTOR
Constructor Detail

StringScriptSource

@DataBoundConstructor
public StringScriptSource(java.lang.String command)
Method Detail

getScriptStream

public java.io.InputStream getScriptStream(hudson.FilePath projectWorkspace)
Specified by:
getScriptStream in interface ScriptSource
Returns:
Stream containing the script

getScriptFile

public hudson.FilePath getScriptFile(hudson.FilePath projectWorkspace)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
Description copied from interface: ScriptSource
In the end, every script is a file...

Specified by:
getScriptFile in interface ScriptSource
Returns:
Path to the executed script file
Throws:
java.io.IOException
java.lang.InterruptedException

getCommand

public java.lang.String getCommand()

getDescriptor

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


Copyright © 2008. All Rights Reserved.