Pass arguments to Claritas via an argFile to bypass cli length limits. (#16)

This commit is contained in:
Daniel Scalzi
2020-08-02 16:01:04 -04:00
parent 0e83a071d7
commit f287388931
6 changed files with 70 additions and 56 deletions

View File

@@ -21,10 +21,11 @@ export abstract class JarExecutor<T> {
protected abstract getJarPath(): string
protected executeJar(...args: string[]): Promise<T> {
protected executeJar(vmOptions: string[], ...args: string[]): Promise<T> {
this.lastExecutionResult = undefined!
return new Promise((resolve, reject) => {
const child = spawn(JavaUtil.getJavaExecutable(), [
...vmOptions,
'-jar',
this.getJarPath(),
...args