com.zeroturnaround.liverebel.util.exec
Class Script
java.lang.Object
com.zeroturnaround.liverebel.util.exec.Script
public class Script
- extends Object
Script that may be executed.
- Author:
- shelajev
- See Also:
liverebel.common.exec.ScriptExecutor
Script
public Script(String name,
ScriptSource source)
- default timeout is 1 hour
Script
public Script(String name,
ScriptSource source,
long timeout)
- Parameters:
timeout - - in milliseconds
hasValidSource
public boolean hasValidSource()
getSourceString
public String getSourceString()
throws IOException
- Throws:
IOException
getName
public String getName()
getSource
public ScriptSource getSource()
getTimeout
public long getTimeout()
- Returns:
- timeout - in milliseconds
fillFile
public boolean fillFile(File file)
throws IOException,
UnresolvedPropertyException
- Throws:
IOException
UnresolvedPropertyException
toString
public String toString()
- Overrides:
toString in class Object
setTimeout
public void setTimeout(long timeout)
- Parameters:
timeout - - in milliseconds
Copyright © 2013. All Rights Reserved.