| 46 | } |
| 47 | |
| 48 | constructor(compilerInfo: PreliminaryCompilerInfo, env: CompilationEnvironment) { |
| 49 | super(compilerInfo, env); |
| 50 | // Use invalid Clojure filename to avoid clashing with name determined by namespace |
| 51 | this.compileFilename = `example-source${this.lang.extensions[0]}`; |
| 52 | this.javaHome = this.compilerProps<string>(`compiler.${this.compiler.id}.java_home`); |
| 53 | this.compilerWrapperPath = |
| 54 | this.compilerProps('compilerWrapper', '') || |
| 55 | utils.resolvePathFromAppRoot('etc', 'scripts', 'clojure_wrapper.clj'); |
| 56 | this.compiler.supportsClojureMacroExpView = true; |
| 57 | const repoDir = |
| 58 | this.compilerProps<string>(`compiler.${this.compiler.id}.repo_dir`) || |
| 59 | path.resolve(path.dirname(this.compiler.exe), '../.m2/repository'); |
| 60 | this.defaultDeps = `{:mvn/local-repo "${repoDir}"}`; |
| 61 | } |
| 62 | |
| 63 | override getDefaultExecOptions() { |
| 64 | const execOptions = super.getDefaultExecOptions(); |