Add UrlScriptSource
This commit is contained in:
@@ -47,6 +47,13 @@ open class FileScriptSource(val file: File) : ExternalSourceCode {
|
||||
override val text: String by lazy { file.readText() }
|
||||
}
|
||||
|
||||
/**
|
||||
* The implementation of the SourceCode for a script location pointed by the URL
|
||||
*/
|
||||
open class UrlScriptSource(override val externalLocation: URL) : ExternalSourceCode {
|
||||
override val text: String by lazy { externalLocation.readText() }
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts the file into the SourceCode
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user