Skip to content

Commit

Permalink
Поменял хак на нормальный метод.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanovEV committed Jan 22, 2024
1 parent e512a03 commit 4d7efed
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,11 @@ class GetExtensions implements Serializable {

steps.installLocalDependencies();


String vrunnerPath = initVRunnerPath();


Logger.println("Сборка расширений")

String sourceDirName = ""

if (config.sourceFormat == SourceFormat.EDT) {
sourceDirName = "$env.WORKSPACE/$EdtToDesignerFormatTransformation.EXTENSION_DIR"
}
Expand All @@ -46,6 +43,8 @@ class GetExtensions implements Serializable {
}
extractConvertedExtensions(sourceDirName, steps)

steps.createDir(EXTENSIONS_OUT_DIR)

config.initInfoBaseOptions.extensions.each {
if (it.initMethod == InitMethod.SOURCE) {
Logger.println("Сборка расширения ${it.name} из исходников")
Expand All @@ -59,9 +58,6 @@ class GetExtensions implements Serializable {
}

private void buildExtension(Extension extension, String srcDir, String vrunnerPath, IStepExecutor steps) {
// ТУТ ГРЯЗНЫЙ ХАК
VRunner.exec("mkdir -p $EXTENSIONS_OUT_DIR")
// ТУТ КОНЕЦ ГРЯЗНОГО ХАКА

def compileExtCommand = "$vrunnerPath compileexttocfe --src ${srcDir} --out $EXTENSIONS_OUT_DIR/${extension.name}.cfe"
List<String> logosConfig = ["LOGOS_CONFIG=$config.logosConfig"]
Expand Down

0 comments on commit 4d7efed

Please sign in to comment.