File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
build-tools-lib/src/main/kotlin/org/modelix/buildtools/runner Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ package org.modelix.buildtools.runner
22
33import org.modelix.buildtools.BuildScriptGenerator
44import org.modelix.buildtools.ModulesMiner
5+ import org.modelix.buildtools.ProcessExecutor
56import org.modelix.buildtools.buildXmlString
7+ import org.modelix.buildtools.findExecutableAbsolutePath
68import org.modelix.buildtools.newChild
79import java.io.File
810import java.util.Properties
@@ -100,6 +102,12 @@ class MPSRunner(
100102 generateAntScriptFile()
101103 }
102104
105+ fun run () {
106+ generateAll()
107+ val ant = ProcessExecutor ()
108+ ant.exec(listOf (findExecutableAbsolutePath(" ant" ), " -f" , getAntScriptFile().canonicalPath))
109+ }
110+
103111 private fun getMpsBuildPropertiesFile () = config.mpsHome!! .resolve(" build.properties" )
104112 private fun getMpsLanguagesDir () = config.mpsHome!! .resolve(" languages" )
105113 private fun getFileNamePrefix (): String = " runMPS_" + config.moduleId.toString().replace(" -" , " _" )
You can’t perform that action at this time.
0 commit comments