Skip to content

Commit

Permalink
Improved script runner api
Browse files Browse the repository at this point in the history
  • Loading branch information
pditommaso committed Dec 5, 2018
1 parent e9cbc14 commit da4a6c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/groovy/nextflow/script/ScriptRunner.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class ScriptRunner {
}
}

protected void init(Path scriptPath, List<String> args = null) {
protected ScriptRunner init(Path scriptPath, List<String> args = null) {

session.init(scriptPath)

Expand Down Expand Up @@ -285,6 +285,7 @@ class ScriptRunner {
compilerConfig.addCompilationCustomizers( new ASTTransformationCustomizer(NextflowXform))

compilerConfig.setTargetDirectory(session.classesDir.toFile())
return this
}

protected BaseScript parseScript( File file ) {
Expand Down

0 comments on commit da4a6c1

Please sign in to comment.