Skip to content

Commit

Permalink
Update to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
machaval committed Dec 18, 2019
1 parent 8ab8cff commit 6516ec8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ class NativeRuntime(libDir: File, path: Array[File]) {

val dataWeaveScript =
if (profile) {
time(() => weaveScriptingEngine.compile(script, NameIdentifier.ANONYMOUS_NAME, inputs.entries().map((wi) => new InputType(wi, None)).toArray), "Compile")
time(() => weaveScriptingEngine.compile(script, NameIdentifier.ANONYMOUS_NAME, inputs.entries().map((wi) => new InputType(wi, None)).toArray, defaultOutputMimeType), "Compile")
} else {
weaveScriptingEngine.compile(script, NameIdentifier.ANONYMOUS_NAME, inputs.entries().map((wi) => new InputType(wi, None)).toArray)
weaveScriptingEngine.compile(script, NameIdentifier.ANONYMOUS_NAME, inputs.entries().map((wi) => new InputType(wi, None)).toArray, defaultOutputMimeType)
}
val serviceManager = ServiceManager(StdOutputLoggingService)
val result =
if (profile) {
time(() => dataWeaveScript.write(inputs, serviceManager, dataWeaveScript.declaredOutput().getOrElse(defaultOutputMimeType), Some(out)), "Execution")
time(() => dataWeaveScript.write(inputs, serviceManager, Some(out)), "Execution")
} else {
dataWeaveScript.write(inputs, serviceManager, dataWeaveScript.declaredOutput().getOrElse(defaultOutputMimeType), Some(out))
dataWeaveScript.write(inputs, serviceManager, Some(out))
}
WeaveSuccessResult(out, result.getCharset().name())
} catch {
Expand Down

0 comments on commit 6516ec8

Please sign in to comment.