public final class ScriptLocation extends Object implements Serializable
Constructor and Description |
---|
ScriptLocation(Directory directory,
File file)
Constructor.
|
ScriptLocation(File file)
Constructor, based on the current working directory.
|
public ScriptLocation(Directory directory, File file)
directory
- Script working directory. May be relative (to the CWD).file
- The script file. May be relative (to directory
).
If absolute, it needn't be below the root directory.public ScriptLocation(File file) throws EngineException
file
- The script file.EngineException
- If a file operation failed.public Directory getDirectory()
public File getFile()
File
always
represents an absolute path.public String toString()
public int hashCode()
Copyright © 2000-2014. All Rights Reserved.