hudson.plugins.groovy
Interface ScriptSource

All Superinterfaces:
hudson.model.Describable<ScriptSource>
All Known Implementing Classes:
FileScriptSource, StringScriptSource

public interface ScriptSource
extends hudson.model.Describable<ScriptSource>

Base interface for Groovy script sources.

Author:
dvrzalik

Field Summary
static hudson.util.DescriptorList<ScriptSource> SOURCES
           
 
Method Summary
 hudson.FilePath getScriptFile(hudson.FilePath projectWorkspace)
          In the end, every script is a file...
 java.io.InputStream getScriptStream(hudson.FilePath projectWorkspace)
           
 
Methods inherited from interface hudson.model.Describable
getDescriptor
 

Field Detail

SOURCES

static final hudson.util.DescriptorList<ScriptSource> SOURCES
Method Detail

getScriptFile

hudson.FilePath getScriptFile(hudson.FilePath projectWorkspace)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
In the end, every script is a file...

Parameters:
Project - workspace (useful when the source has to create temporary file)
Returns:
Path to the executed script file
Throws:
java.io.IOException
java.lang.InterruptedException

getScriptStream

java.io.InputStream getScriptStream(hudson.FilePath projectWorkspace)
                                    throws java.io.IOException,
                                           java.lang.InterruptedException
Returns:
Stream containing the script
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2008. All Rights Reserved.